* mail splitting doesn't work
@ 2007-05-20 22:52 Pascal Bourguignon
2007-05-21 4:39 ` Katsumi Yamaoka
2008-03-26 22:52 ` Giorgos Keramidas
0 siblings, 2 replies; 4+ messages in thread
From: Pascal Bourguignon @ 2007-05-20 22:52 UTC (permalink / raw)
To: info-gnus-english
I customized nnmail split as indicated in info for gnu, but it doesn't
work, no splitting occurs either when I fetch new mail nor when I
respool the bogus mail group where all mails land eventually...
(custom-set-variables
'(nnmail-split-fancy (quote (| (: nnmail-split-fancy-with-parent) ("From:" ".*Cron Daemon.*" "mail.cron") (To: ".*vms-list@voynich.net.*" "mail.voynich") (From: ".*gentoo.*" "mail.gentoo") (From: ".*zenith.*@zenit.org.*" "mail.zenith") (To: ".*\\(lisp.it\\|slime.*@common-lisp.net\\).*" "mail.lisp") (From: ".*\\(@freelance.com\\|@dice.com\\).*" "mail.jobs"))))
'(nnmail-split-methods (quote nnmail-split-fancy))
'(gnus-secondary-select-methods (quote ((nnml "")))))
What should I do to have my emails split into the right groups?
--
__Pascal Bourguignon__ http://www.informatimago.com/
NOTE: The most fundamental particles in this product are held
together by a "gluing" force about which little is currently known
and whose adhesive power can therefore not be permanently
guaranteed.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mail splitting doesn't work
2007-05-20 22:52 mail splitting doesn't work Pascal Bourguignon
@ 2007-05-21 4:39 ` Katsumi Yamaoka
2007-05-21 4:59 ` Pascal Bourguignon
2008-03-26 22:52 ` Giorgos Keramidas
1 sibling, 1 reply; 4+ messages in thread
From: Katsumi Yamaoka @ 2007-05-21 4:39 UTC (permalink / raw)
To: info-gnus-english
>>>>> In <87veends6d.fsf@thalassa.lan.informatimago.com>
>>>>> Pascal Bourguignon wrote:
> I customized nnmail split as indicated in info for gnu, but it doesn't
> work, no splitting occurs either when I fetch new mail nor when I
> respool the bogus mail group where all mails land eventually...
> (custom-set-variables
> '(nnmail-split-fancy (quote (| (: nnmail-split-fancy-with-parent)
> ("From:" ".*Cron Daemon.*" "mail.cron")
> (To: ".*vms-list@voynich.net.*" "mail.voynich")
> (From: ".*gentoo.*" "mail.gentoo")
> (From: ".*zenith.*@zenit.org.*" "mail.zenith")
> (To: ".*\\(lisp.it\\|slime.*@common-lisp.net\\).*" "mail.lisp")
> (From: ".*\\(@freelance.com\\|@dice.com\\).*" "mail.jobs"))))
> What should I do to have my emails split into the right groups?
The first element of each split should be a string which is a
header name not containing ":", or a symbol defined in
`nnmail-split-abbrev-alist'. In addition, all regexps are case
insensitive. So, you may want to replace "From:" and From: with
"from" or just from, To: with "to" or to.
Regards,
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mail splitting doesn't work
2007-05-21 4:39 ` Katsumi Yamaoka
@ 2007-05-21 4:59 ` Pascal Bourguignon
0 siblings, 0 replies; 4+ messages in thread
From: Pascal Bourguignon @ 2007-05-21 4:59 UTC (permalink / raw)
To: info-gnus-english
Katsumi Yamaoka <yamaoka@jpl.org> writes:
>>>>>> In <87veends6d.fsf@thalassa.lan.informatimago.com>
>>>>>> Pascal Bourguignon wrote:
>
>> I customized nnmail split as indicated in info for gnu, but it doesn't
>> work, no splitting occurs either when I fetch new mail nor when I
>> respool the bogus mail group where all mails land eventually...
>
>> (custom-set-variables
>> '(nnmail-split-fancy (quote (| (: nnmail-split-fancy-with-parent)
>> ("From:" ".*Cron Daemon.*" "mail.cron")
>> (To: ".*vms-list@voynich.net.*" "mail.voynich")
>> (From: ".*gentoo.*" "mail.gentoo")
>> (From: ".*zenith.*@zenit.org.*" "mail.zenith")
>> (To: ".*\\(lisp.it\\|slime.*@common-lisp.net\\).*" "mail.lisp")
>> (From: ".*\\(@freelance.com\\|@dice.com\\).*" "mail.jobs"))))
>
>> What should I do to have my emails split into the right groups?
>
> The first element of each split should be a string which is a
> header name not containing ":", or a symbol defined in
> `nnmail-split-abbrev-alist'. In addition, all regexps are case
> insensitive. So, you may want to replace "From:" and From: with
> "from" or just from, To: with "to" or to.
Thanks. Actually, for some reason I have From: there instead of
"From:"... Anyways, now I changed them to the symbol any, and I had
to create the directories for the splitting to work.
--
__Pascal Bourguignon__ http://www.informatimago.com/
NOTE: The most fundamental particles in this product are held
together by a "gluing" force about which little is currently known
and whose adhesive power can therefore not be permanently
guaranteed.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mail splitting doesn't work
2007-05-20 22:52 mail splitting doesn't work Pascal Bourguignon
2007-05-21 4:39 ` Katsumi Yamaoka
@ 2008-03-26 22:52 ` Giorgos Keramidas
1 sibling, 0 replies; 4+ messages in thread
From: Giorgos Keramidas @ 2008-03-26 22:52 UTC (permalink / raw)
To: info-gnus-english
On Mon, 21 May 2007 00:52:10 +0200, Pascal Bourguignon wrote:
> I customized nnmail split as indicated in info for gnu, but it doesn't
> work, no splitting occurs either when I fetch new mail nor when I
> respool the bogus mail group where all mails land eventually...
>
> (custom-set-variables
> '(nnmail-split-fancy
> (quote (| (: nnmail-split-fancy-with-parent)
> ("From:" ".*Cron Daemon.*" "mail.cron")
> (To: ".*vms-list@voynich.net.*" "mail.voynich")
> (From: ".*gentoo.*" "mail.gentoo")
> (From: ".*zenith.*@zenit.org.*" "mail.zenith")
> (To: ".*\\(lisp.it\\|slime.*@common-lisp.net\\).*" "mail.lisp")
> (From: ".*\\(@freelance.com\\|@dice.com\\).*" "mail.jobs"))))
> '(nnmail-split-methods (quote nnmail-split-fancy))
> '(gnus-secondary-select-methods (quote ((nnml "")))))
>
> What should I do to have my emails split into the right groups?
Hi Pascal,
As Katsumi Yamaoka-san has written, you have to use either a string in
the first element of each `split', or one of the supported keywords
(extending the keyword list is easy too, but it's not necessary here).
The above split could be written as:
'(| (: nnmail-split-fancy-with-parent)
(from ".*cron daemon.*" "mail.cron")
(to ".*vms-list@voynich.net.*" "mail.voynich")
(from ".*gentoo.*" "mail.gentoo")
(from ".*zenith.*@zenit.org.*" "mail.zenith")
(to ".*\\(lisp.it\\|slime.*@common-lisp.net\\).*" "mail.lisp")
(from ".*\\(@freelance.com\\|@dice.com\\).*"
"mail.jobs"))))
The nice thing about keywords is that they match more than one type of
email header:
,----[ Gnus manual. Node: Fancy Mail Splitting ]-----------------------
|
| Predefined entries in `nnmail-split-abbrev-alist' include:
|
| `from'
| Matches the `From', `Sender' and `Resent-From' fields.
|
| `to'
| Matches the `To', `Cc', `Apparently-To', `Resent-To' and
| `Resent-Cc' fields.
|
| `any'
| Is the union of the `from' and `to' entries.
|
`-----------------------------------------------------------------------
The `from' keyword is probably less useful if you only want to split on
the "From:" header, but the `to' keyword is my all times favorite :-)
Cheers,
Giorgos
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-03-26 22:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-20 22:52 mail splitting doesn't work Pascal Bourguignon
2007-05-21 4:39 ` Katsumi Yamaoka
2007-05-21 4:59 ` Pascal Bourguignon
2008-03-26 22:52 ` Giorgos Keramidas
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).