[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to deal with "Archive" and "delete" in gmail?
From: |
Rainer M. Krug |
Subject: |
Re: How to deal with "Archive" and "delete" in gmail? |
Date: |
Fri, 05 Apr 2013 10:46:44 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
wgreenhouse@riseup.net (W. Greenhouse) writes:
> Hi Rainer,
>
> Rainer@krugs.de (Rainer M. Krug) writes:
>
>> 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
>
> From the config you posted here, it looks like all your Gmail mailboxes
> are so-called "native groups." "Native groups" are those which use
> `gnus-select-method' as opposed to one of the secondary select methods
> or a "foreign" server. All this "native" vs. "foreign" is perhaps all
> making Gnus sound rather ethnocentric, but the gist of it is that
> "native groups" do not have the server type prepended to their names.
> That is, because Gmail is your primary select method, Gmail groups on
> your system simply have names like "INBOX" or "[Gmail]/Important", and
> not names like "nnimap+imap.gmail.com:INBOX". So that's why your
> regexes went astray.
Ok - that is very useful information and it solves one more problem I
had - so brilliant info - Thanks!
>
> `gnus-move-split-methods' and `gnus-split-methods' and similar such
> rules in Gnus are applied such that more specific rules can override
> more general ones. If you are primarily using Gnus as a Gmail client,
> it might make a lot of sense to have the most general rule direct any
> re-filed message to the Gmail archive, and then make exceptions to this
> later on. So, perhaps try this:
>
> (setq gnus-move-split-methods
> '((".*" "[Gmail]/All Mail")))
Great - looks perfect. That's what I am using and it works like a charm.
Thanks a lot,
Rainer
>
> Good luck!
> Best,
> Will
<#secure method=pgpmime mode=sign>
--
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