info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: imap split-fancy greedy match?


From: Lars Ingebrigtsen
Subject: Re: imap split-fancy greedy match?
Date: Sun, 07 Feb 2016 15:11:27 +1100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (gnu/linux)

Emanuel Evans <mail@emanuel.industries> writes:

> Hi! I'm trying to use fancy splitting with nnimap like so:
>
> (nnimap-split-fancy
>  (| (to "\\([-_[:alnum:]]+\\)@noreply\\.github\\.com" "github.\\1")
>     ;; etc.
>     ))
>
> The problem: it seems to not match the whole "To" field, so (for
> instance) "database_cleaner@noreply.github.com" gets filed into the
> "github.cleaner" group instead of "github.database_cleaner". Weirdly, I
> can workaround by having a more explicit regexp such as
> "\\(\\w+[-_]\\w+\\)@noreply\\.github\\.com", but I don't want to do that
> for every combination of groups and punctuation. (This doesn't seem to
> be a problem with non-fancy splitting.) Is there any way to make sure
> that fancy splitting matches the whole field "greedily"?

If I remember correctly, the fancy splitting is word-based, sort of --
it wraps the things in \b or something...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]