* Re: Splitting mail between offlineimap folders
[not found] <mailman.11386.1389177918.10748.info-gnus-english@gnu.org>
@ 2014-01-08 21:16 ` Emanuel Berg
2014-01-09 8:55 ` Jens Bäckman
0 siblings, 1 reply; 3+ messages in thread
From: Emanuel Berg @ 2014-01-08 21:16 UTC (permalink / raw)
To: info-gnus-english
jens@titv.se (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:.*redmine@titv.se") ("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:
http://user.it.uu.se/~embe8573
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Splitting mail between offlineimap folders
2014-01-08 21:16 ` Splitting mail between offlineimap folders Emanuel Berg
@ 2014-01-09 8:55 ` Jens Bäckman
0 siblings, 0 replies; 3+ messages in thread
From: Jens Bäckman @ 2014-01-09 8:55 UTC (permalink / raw)
To: info-gnus-english
Emanuel Berg <embe8573@student.uu.se> writes:
> jens@titv.se (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?
The backend prompt has nnmaildir as default. I select that, and the mail
is marked with G (canceled article). I exit the summary buffer and
return to the group list, and can quickly see that the mail hasn't been
moved at all.
>> Relevant parts of my .emacs file:
>>
>> (setq gnus-select-method '(nnmaildir "titv"
>> (directory "~/mail/titv/")))
>>
>> (setq nnmail-split-methods '(("INBOX.Redmine"
>> "^From:.*redmine@titv.se") ("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" "") ))
I use Gnus for news as well - even if this is the only group I'm
currently subscribed to. :-) Just thought it was irrelevant for my mail
use situation. Running Gnus from git HEAD, if that's interesting.
In the end, I solved my problem by writing a little Python script called
after offlineimap has finished syncronizing my mail. Any new mail is
automagically moved to the correct IMAP maildir, and everything works
fine.
--
Jens
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english
^ permalink raw reply [flat|nested] 3+ messages in thread
* Splitting mail between offlineimap folders
@ 2014-01-08 10:39 Jens Bäckman
0 siblings, 0 replies; 3+ messages in thread
From: Jens Bäckman @ 2014-01-08 10:39 UTC (permalink / raw)
To: info-gnus-english
Hi,
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.
Relevant parts of my .emacs file:
(setq gnus-select-method
'(nnmaildir "titv"
(directory "~/mail/titv/")))
(setq nnmail-split-methods
'(("INBOX.Redmine" "^From:.*redmine@titv.se")
("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.
--
Jens
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-01-09 8:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <mailman.11386.1389177918.10748.info-gnus-english@gnu.org>
2014-01-08 21:16 ` Splitting mail between offlineimap folders Emanuel Berg
2014-01-09 8:55 ` Jens Bäckman
2014-01-08 10:39 Jens Bäckman
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).