From: Kai.Grossjohann@CS.Uni-Dortmund.DE
Subject: Re: `nnmail-split-fancy' regexp
Date: 25 Jun 1999 13:48:20 +0200 [thread overview]
Message-ID: <vafk8ss7b7f.fsf@petty.cs.uni-dortmund.de> (raw)
In-Reply-To: Alexandre Oliva's message of "25 Jun 1999 07:28:10 -0300"
Alexandre Oliva <oliva@dcc.unicamp.br> writes:
> [...] Assume the (bug-)?libtool example I was
> trying to work around. I ended up trying to match
> ".*[< ]libtool@gnu\\.org", but it wouldn't work because it wouldn't
> match the beginning of a word if the header line was just:
> To: libtool@gnu.org
Well, would this work? "\\(^\\|.*[< ,]\\)libtool@gnus\\.org"
I think you're using the wrong approach, though. Most mailing lists
contain a header which uniquely idenfies the mails. Often, the header
is X-Loop, but the Sender header can also often be used.
Hm. How does one match "Sender: foo-owner@frob.org" exactly with
fancy splitting? Maybe it's not so easy after all :-(
Yet another approach would be to split on the first match only, to
check for bug-libtool first, but to give two groups if this matches.
Lessee...
(| ("Sender" "bug-libtool-owner" (& "bug-libtool group" "libtool group"))
("Sender" "libtool-owner" "libtool group"))
[time passes]
Oh! The header is "owner-libtool" rather than "libtool-owner", so it
is trivial to match "owner-libtool" but not "owner-bug-libtool".
Just my two cents.
kai
--
Life is hard and then you die.
next prev parent reply other threads:[~1999-06-25 11:48 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-24 8:25 Petersen Jens-Ulrik (NRC/Tokyo)
1999-06-24 18:26 ` Per Abrahamsen
1999-06-25 7:52 ` Petersen Jens-Ulrik (NRC/Tokyo)
1999-06-25 9:48 ` Kai.Grossjohann
1999-06-25 10:28 ` Alexandre Oliva
1999-06-25 11:48 ` Kai.Grossjohann [this message]
1999-06-25 12:51 ` Alexandre Oliva
1999-06-25 9:42 ` Alexandre Oliva
1999-06-25 12:25 ` Per Abrahamsen
1999-06-28 17:33 ` Lars Magne Ingebrigtsen
1999-06-28 18:14 ` Aaron M. Ucko
1999-06-28 18:49 ` Per Abrahamsen
1999-06-28 19:11 ` Alexandre Oliva
1999-07-04 3:07 ` Lars Magne Ingebrigtsen
1999-07-04 21:15 ` Alexandre Oliva
1999-07-04 22:54 ` Alexandre Oliva
1999-07-07 14:28 ` Toby Speight
1999-07-07 17:38 ` Alexandre Oliva
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=vafk8ss7b7f.fsf@petty.cs.uni-dortmund.de \
--to=kai.grossjohann@cs.uni-dortmund.de \
/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).