From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/18002 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.gnus.user Subject: Re: imap split-fancy greedy match? Date: Sun, 07 Feb 2016 15:11:27 +1100 Message-ID: <87a8ndf9cg.fsf@gnus.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1454818341 22474 80.91.229.3 (7 Feb 2016 04:12:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Feb 2016 04:12:21 +0000 (UTC) Cc: info-gnus-english@gnu.org To: Emanuel Evans Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sun Feb 07 05:12:12 2016 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aSGhn-0004CN-Fu for gegu-info-gnus-english@m.gmane.org; Sun, 07 Feb 2016 05:12:11 +0100 Original-Received: from localhost ([::1]:59330 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSGhm-0005sC-Ey for gegu-info-gnus-english@m.gmane.org; Sat, 06 Feb 2016 23:12:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32986) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSGhk-0005s4-CZ for info-gnus-english@gnu.org; Sat, 06 Feb 2016 23:12:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSGhh-0005tw-4K for info-gnus-english@gnu.org; Sat, 06 Feb 2016 23:12:08 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:43951) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSGhg-0005oT-Tq for info-gnus-english@gnu.org; Sat, 06 Feb 2016 23:12:05 -0500 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aSGhB-0004Nu-3w; Sun, 07 Feb 2016 05:11:33 +0100 In-Reply-To: (Emanuel Evans's message of "Mon, 01 Feb 2016 13:01:28 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (gnu/linux) X-MailScanner-ID: 1aSGhB-0004Nu-3w MailScanner-NULL-Check: 1455423093.90991@R2K1i/Ew5xkqpXAwvw/+HA X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:18002 Archived-At: Emanuel Evans 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