info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to deal with "Archive" and "delete" in gmail?


From: W. Greenhouse
Subject: Re: How to deal with "Archive" and "delete" in gmail?
Date: Thu, 04 Apr 2013 14:37:28 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

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.

`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")))

Good luck!
Best,
Will

-- 
BOFH excuse #432:

Borg nanites have infested the server




reply via email to

[Prev in Thread] Current Thread [Next in Thread]