[Top][All Lists]

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

Re: Splitting mail between offlineimap folders

From: Emanuel Berg
Subject: Re: Splitting mail between offlineimap folders
Date: Wed, 08 Jan 2014 22:16:39 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) (Jens Bäckman) writes:

> I'm trying to move most of my life to Emacs, and have
> just started dipping my toes in Gnus. The first real
> obstacle is mail splitting. I have created a rule
> that looks OK, `Query respool (B q)' tells me it
> would go to the correct box but `Respool article (B
> r)' does nothing useful.

When you hit B r, does it ask what backend to use? What
answer do you give, and what happens next?

> Relevant parts of my .emacs file:
>   (setq gnus-select-method '(nnmaildir "titv"
> (directory "~/mail/titv/")))
>   (setq nnmail-split-methods '(("INBOX.Redmine"
> "^From:.*") ("INBOX" "")))
> What I'm trying to accomplish: - move all Redmine mails
> to INBOX.Redmine, an existing folder - leave everything
> else in the INBOX So far, it's not doing much. I can
> move them manually with `B m', but manual labor isn't
> really my thing.

Of course, this is possible to automatize. I have
virtually what you ask for up and running, but I use
nnml, which I have as a secondary select method,
because I use Gnus not only for mail... - anyway, it
looks like this:

(setq gnus-secondary-select-methods
      '((nnml ""))
      mail-user-agent 'gnus-user-agent
      read-mail-command 'gnus)

(setq nnmail-split-methods
 '(("mail.spam" "^X-Spam-Flag: YES")
   ;; ...
   ("mail.comp.w3m" "^Subject:.*emacs-w3m.*")
   ("mail.misc" "") ))

underground experts united:

reply via email to

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