Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: "B.V. Raghav" <bvraghav@iitk.ac.in>
To: asjo@koldfront.dk (Adam Sjøgren)
Cc: info-gnus-english@gnu.org
Subject: Re: fancy mail splitting
Date: Mon, 21 Dec 2015 10:18:14 +0530	[thread overview]
Message-ID: <8760zsl84x.fsf@think.bvr.lan> (raw)
In-Reply-To: <87lh8pqr30.fsf@tullinup.koldfront.dk> ("Adam \=\?iso-8859-1\?Q\?Sj\=F8gren\=22's\?\= message of "Sun, 20 Dec 2015 12:47:47 +0100")

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)


  reply	other threads:[~2015-12-21  4:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-20 11:47 Adam Sjøgren
2015-12-21  4:48 ` B.V. Raghav [this message]
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
     [not found] <m33cm9oqgi.fsf.p_oster_2000.yahoo.com@post2k.freeuk.com>
2003-02-27 13:50 ` Kai Großjohann
     [not found]   ` <m3y940wtvq.fsf.p_oster_2000.bigfoot.com@post2k.freeuk.com>
2003-03-02 12:13     ` Kai Großjohann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8760zsl84x.fsf@think.bvr.lan \
    --to=bvraghav@iitk.ac.in \
    --cc=asjo@koldfront.dk \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).