Gnus development mailing list
 help / color / mirror / Atom feed
From: Russ Allbery <rra@stanford.edu>
To: ding@gnus.org
Subject: Re: sometime splits
Date: Tue, 27 Mar 2012 13:16:03 -0700	[thread overview]
Message-ID: <87limlpzp8.fsf@windlord.stanford.edu> (raw)
In-Reply-To: <87obrhnayk.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Tue, 27 Mar 2012 19:41:07 +0100")

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> I'm having an irritating issue where one type of common email message
> gets split incorrectly. I run a website that emails me automatically
> with spam notifications, so I can catch false positives before they're
> automatically deleted. The top of my `nnmail-split-fancy' looks like
> this:

> '(|
>   ("From" "info@paper-republic.org"
>     (| ("Subject" "\\[Paper Republic\\]"

This kept catching me too.  You have to be careful about regexes; Gnus
adds an implicit word boundary on either end of the regex, but Emacs
doesn't consider the transition from a non-alphanumeric to another
non-alphanumeric to be a word boundary.  So if your regex begins or ends
with some non-alphanumeric characters, the regex won't match the way you
expect.

Short version: change that to ".*\\[Paper Republic\\].*" and I bet it will
start working.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>



  reply	other threads:[~2012-03-27 20:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-27 18:41 Eric Abrahamsen
2012-03-27 20:16 ` Russ Allbery [this message]
2012-03-27 21:29   ` Eric Abrahamsen
2012-11-02  7:50     ` Eric Abrahamsen
2012-11-02  9:00       ` Katsumi Yamaoka
2012-11-02  9:39         ` Eric Abrahamsen

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=87limlpzp8.fsf@windlord.stanford.edu \
    --to=rra@stanford.edu \
    --cc=ding@gnus.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).