* fancy mail splitting
@ 2015-12-20 11:47 Adam Sjøgren
2015-12-21 4:48 ` B.V. Raghav
0 siblings, 1 reply; 7+ messages in thread
From: Adam Sjøgren @ 2015-12-20 11:47 UTC (permalink / raw)
To: info-gnus-english
Hi,
I usually create my fancy mail splitting rules by trial and error -
Emacs' regexps are kind of toothpicky when you are used to Perl...
Here is my problem:
I want to have emails with Subject starting with "[git/adm]" to go to
one group, but emails with the Subject starting with "Re: [git/adm]" to
another.
To match "[git/adm]" I can only get this to work:
("Subject" ".*\\[git/adm\\].*" "commits.adm")
If I remove either ".*", it doesn't match them.
I can't figure out how to make this _not_ match Subjects prefixed with
"Re: " (or anything else, for that matter).
I tried tacking on "nil nil" and "nil t" to the rule as well, without
hitting the jackpot. I am lost.
Any ideas?
Thanks!
Adam
--
"How different? It seems like you are just biased in Adam Sjøgren
favour of your own style." asjo@koldfront.dk
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: fancy mail splitting
2015-12-20 11:47 Adam Sjøgren
@ 2015-12-21 4:48 ` B.V. Raghav
2015-12-21 14:52 ` Adam Sjøgren
[not found] ` <mailman.311.1450709592.843.info-gnus-english@gnu.org>
0 siblings, 2 replies; 7+ messages in thread
From: B.V. Raghav @ 2015-12-21 4:48 UTC (permalink / raw)
To: Adam Sjøgren; +Cc: info-gnus-english
Hi,
asjo@koldfront.dk (Adam Sjøgren) writes:
> Hi,
>
>
> I usually create my fancy mail splitting rules by trial and error -
> Emacs' regexps are kind of toothpicky when you are used to Perl...
>
> Here is my problem:
>
> I want to have emails with Subject starting with "[git/adm]" to go to
> one group, but emails with the Subject starting with "Re: [git/adm]" to
> another.
>
> To match "[git/adm]" I can only get this to work:
>
> ("Subject" ".*\\[git/adm\\].*" "commits.adm")
How about trying "^\\[git/adm\\].*" vs "^Re: \\[git/adm\\].*"
I have myself not tried it. But I think the regexp should work!
>
> If I remove either ".*", it doesn't match them.
>
> I can't figure out how to make this _not_ match Subjects prefixed with
> "Re: " (or anything else, for that matter).
>
> I tried tacking on "nil nil" and "nil t" to the rule as well, without
> hitting the jackpot. I am lost.
>
> Any ideas?
>
>
> Thanks!
>
> Adam
--
(B.V. Raghav)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: fancy mail splitting
2015-12-21 4:48 ` B.V. Raghav
@ 2015-12-21 14:52 ` Adam Sjøgren
2015-12-21 16:55 ` Adam Sjøgren
[not found] ` <mailman.311.1450709592.843.info-gnus-english@gnu.org>
1 sibling, 1 reply; 7+ messages in thread
From: Adam Sjøgren @ 2015-12-21 14:52 UTC (permalink / raw)
To: info-gnus-english
B.V. writes:
> How about trying "^\\[git/adm\\].*" vs "^Re: \\[git/adm\\].*"
> I have myself not tried it. But I think the regexp should work!
Adding the ^ doesn't work, but your suggestion gave me the idea of
having something that matches "Re: [git/adm]" first, and then the usual
rule after. That works. Although it feels a little kludgey.
Thanks,
Adam
--
"What do you do for a living, man?" Adam Sjøgren
"Oh, I confound expectations." asjo@koldfront.dk
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: fancy mail splitting
2015-12-21 14:52 ` Adam Sjøgren
@ 2015-12-21 16:55 ` Adam Sjøgren
0 siblings, 0 replies; 7+ messages in thread
From: Adam Sjøgren @ 2015-12-21 16:55 UTC (permalink / raw)
To: info-gnus-english
Adam writes:
> Adding the ^ doesn't work, but your suggestion gave me the idea of
> having something that matches "Re: [git/adm]" first, and then the usual
> rule after. That works. Although it feels a little kludgey.
I found an entry in my fancy splitting rules that I had forgotten all
about. This works:
("Subject" ".*\\[git/adm\\].*" - ".*Re: .*" "commits.adm")
Best regards,
Adam
--
"So this is what being a morning person is like, I Adam Sjøgren
thought. It's like being 80 years old." asjo@koldfront.dk
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english
^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <mailman.311.1450709592.843.info-gnus-english@gnu.org>]
* Re: fancy mail splitting
[not found] ` <mailman.311.1450709592.843.info-gnus-english@gnu.org>
@ 2015-12-21 17:09 ` Cor
0 siblings, 0 replies; 7+ messages in thread
From: Cor @ 2015-12-21 17:09 UTC (permalink / raw)
To: info-gnus-english
Some entity, AKA asjo@koldfront.dk (Adam Sjøgren),
wrote this mindboggling stuff:
(selectively-snipped-or-not-p)
> B.V. writes:
>
>> How about trying "^\\[git/adm\\].*" vs "^Re: \\[git/adm\\].*"
>> I have myself not tried it. But I think the regexp should work!
>
> Adding the ^ doesn't work, but your suggestion gave me the idea of
> having something that matches "Re: [git/adm]" first, and then the usual
> rule after. That works. Although it feels a little kludgey.
It the way the mail-splitting works, sequential and when it hits on the first
matchting reg-expr it drops the message in the box and then goes to the
next incoming message.
Sometimes it really looks like doing magic to get the filtering the way
you want.
Cor
--
Geavanceerde politieke correctheid is niet te onderscheiden van sarcasme
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-12-21 17:09 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <m33cm9oqgi.fsf.p_oster_2000.yahoo.com@post2k.freeuk.com>
2003-02-27 13:50 ` fancy mail splitting Kai Großjohann
[not found] ` <m3y940wtvq.fsf.p_oster_2000.bigfoot.com@post2k.freeuk.com>
2003-03-02 12:13 ` Kai Großjohann
2015-12-20 11:47 Adam Sjøgren
2015-12-21 4:48 ` B.V. Raghav
2015-12-21 14:52 ` Adam Sjøgren
2015-12-21 16:55 ` Adam Sjøgren
[not found] ` <mailman.311.1450709592.843.info-gnus-english@gnu.org>
2015-12-21 17:09 ` Cor
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).