Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Rainer@krugs.de (Rainer M. Krug)
To: wgreenhouse@riseup.net (W. Greenhouse)
Cc: info-gnus-english@gnu.org
Subject: Re: How to deal with "Archive" and "delete" in gmail?
Date: Thu, 04 Apr 2013 10:09:18 +0200	[thread overview]
Message-ID: <874nfmsonl.fsf@krugs.de> (raw)
In-Reply-To: <871uarpsqj.fsf@riseup.net> (W. Greenhouse's message of "Wed, 03 Apr 2013 14:57:08 +0000")

wgreenhouse@riseup.net (W. Greenhouse) writes:

> Rainer@krugs.de (Rainer M. Krug) writes:
>
>> Hi
>>
>> I have a question about using Archive and Delete when accessing gmail
>> via gnus. I am aware, that Archiving can be achieved by "deleting" the
>> message in gnus from the e.g. inbox (B DEL), but then I always have to
>> confirm with "yes". Also, it might be dangerous when using this on other
>> accounts.
>>
>> In contrast, "Deleting" can be achieved by moving the message to the
>> folder [gmail]\bin (or what it is called in the locale one is using). 
>>
>> Now I am using Expire to move the emails to the bin folder, i.e. to
>> delete them. But is there something similar I could use to Archive them?
>> especially archiving several message becomes a pain. 
>>
>> Would it be possible, to define a key (possibly A) to archive, while E
>> still expires (i.e. deletes) the email?
>
> See the variable `gnus-move-split-methods.'  You can set [Gmail]/All
> Mail as the default move target for your Gmail nnimap groups, then when
> you mark a bunch of messages and do B m that will be the default choice
> for moving.
<#secure method=pgpmime mode=sign>
> In contrast, "Deleting" can be achieved by moving the message to the
> folder [gmail]\bin (or what it is called in the locale one is using). 
>
> Now I am using Expire to move the emails to the bin folder, i.e. to
> delete them. But is there something similar I could use to Archive them?
> especially archiving several message becomes a pain. 
>
> Would it be possible, to define a key (possibly A) to archive, while E
> still expires (i.e. deletes) the email?

See the variable `gnus-move-split-methods.'  You can set [Gmail]/All
Mail as the default move target for your Gmail nnimap groups, then when
you mark a bunch of messages and do B m that will be the default choice
for moving.

This looks like a good option. But I am still struggling with the regexp
for groups (maybe because I do not understand the naming of groups?).

So I have my gmail account defined as primary source:

(setq gnus-select-method 
               '(nnimap "gmail"
                        (nnimap-address "imap.gmail.com")
                        (nnimap-server-port 993)
                        (nnimap-stream ssl)
                        (nnimap-authinfo-file "~/.authinfo.gpg")
                        (nnmail-expiry-target "[Gmail]/Bin")
                        (nnmail-expiry-wait 2)))
  
and I would like to set the default move target for all groups in this
primary source to "[gmail]/All Mail":

(setq gnus-move-split-methods
        '(("nnimap.*" "[gmail]/All Mail")))

but it is not working. 

I assume it is something wrong with the regexp "nnimap.*" - my reasoning
was: match all groups which start with nnimap.

This regexp also concerns other configuratios which are not working...

Any suggestions?

Thanks,

Rainer

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug

  reply	other threads:[~2013-04-04  8:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-03 11:04 Rainer M. Krug
2013-04-03 14:57 ` W. Greenhouse
2013-04-04  8:09   ` Rainer M. Krug [this message]
2013-04-04 14:37     ` W. Greenhouse
2013-04-05  8:46       ` Rainer M. Krug
     [not found] <mailman.23374.1364987079.855.info-gnus-english@gnu.org>
2013-04-03 14:33 ` Cor
2013-04-04  8:12   ` Rainer M. Krug
     [not found]   ` <mailman.23488.1365063160.855.info-gnus-english@gnu.org>
2013-04-04 11:52     ` Cor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874nfmsonl.fsf@krugs.de \
    --to=rainer@krugs.de \
    --cc=info-gnus-english@gnu.org \
    --cc=wgreenhouse@riseup.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).