From: Tim Landscheidt <tim@tim-landscheidt.de>
To: info-gnus-english@gnu.org
Subject: How to anchor a match at the header beginning with nnmail-split-fancy?
Date: Sun, 20 Nov 2016 15:10:00 +0000 [thread overview]
Message-ID: <87zikuchmf.fsf@passepartout.tim-landscheidt.de> (raw)
Hi,
I'm trying to convert my Gnus v5.13 setup from
nnmail-split-methods to nnmail-split-fancy (for spam detec-
tion, etc.). I found the documentation a bit confusing (and
if I have an idea for improvement, I'll submit a patch), but
looking at nnmail-split-cache I eventually understood how
FIELD and VALUE are supposed to be set.
What I couldn't achieve is anchoring a match at the begin-
ning of a header, i. e. the equivalent for
nnmail-split-method's "^From: Real Name <mail@address>$".
Independent of INVERT-PARTIAL, the resulting regular expres-
sion (as shown in nnmail-split-cache) always starts with
"^\\(\\(From\\):.*\\)", and thus will allow arbitrary text
before "Real Name <mail@address>". This seems to be hard-
coded in nnmail-split-it and is probably benign for most of
my incoming mail, but I don't want to meet the counterexam-
ple at 3 AM one day.
How can I anchor a match at the header beginning with
nnmail-split-fancy? Or is this not possible (without using
a custom match in "(: FUNCTION ARG1 ARG2 …)")?
Tim
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english
reply other threads:[~2016-11-20 15:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=87zikuchmf.fsf@passepartout.tim-landscheidt.de \
--to=tim@tim-landscheidt.de \
--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).