Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* imap split-fancy greedy match?
@ 2016-02-01 21:01 Emanuel Evans
  0 siblings, 0 replies; 5+ messages in thread
From: Emanuel Evans @ 2016-02-01 21:01 UTC (permalink / raw)
  To: info-gnus-english

Hi! I'm trying to use fancy splitting with nnimap like so:

--8<---------------cut here---------------start------------->8---
(nnimap-split-fancy
 (| (to "\\([-_[:alnum:]]+\\)@noreply\\.github\\.com" "github.\\1")
    ;; etc.
    ))
--8<---------------cut here---------------end--------------->8---

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"?



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-02-07 19:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.3357.1454360517.843.info-gnus-english@gnu.org>
2016-02-07  4:11 ` imap split-fancy greedy match? Lars Ingebrigtsen
2016-02-07 18:37   ` Emanuel Evans
2016-02-07 18:53     ` Teemu Likonen
2016-02-07 19:20       ` Emanuel Evans
2016-02-01 21:01 Emanuel Evans

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