Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: ding@gnus.org
Subject: Re: sometime splits
Date: Tue, 27 Mar 2012 22:29:57 +0100	[thread overview]
Message-ID: <877gy5n356.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87limlpzp8.fsf@windlord.stanford.edu>

On Tue, Mar 27 2012, Russ Allbery wrote:

> 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.

Ooh, I'll give that a shot, thank you!

-- 
GNU Emacs 24.0.94.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10)
 of 2012-03-06 on pellet
Ma Gnus v0.4




  reply	other threads:[~2012-03-27 21:29 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
2012-03-27 21:29   ` Eric Abrahamsen [this message]
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=877gy5n356.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --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).