From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74864 Path: news.gmane.org!not-for-mail From: Alberto Luaces Newsgroups: gmane.emacs.gnus.general,gmane.emacs.gnus.user Subject: Re: nnimap-split-methods syntax Date: Wed, 08 Dec 2010 19:13:28 +0100 Message-ID: <877hfkceuv.fsf@eps142.cdf.udc.es> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291832107 13124 80.91.229.12 (8 Dec 2010 18:15:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 18:15:07 +0000 (UTC) Cc: info-gnus-english@gnu.org To: ding@gnus.org Original-X-From: ding-owner+M23221@lists.math.uh.edu Wed Dec 08 19:15:02 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQOXb-0003Rv-GQ for ding-account@gmane.org; Wed, 08 Dec 2010 19:14:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PQOXQ-0003hG-KI; Wed, 08 Dec 2010 12:14:48 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PQOXO-0003gz-NK for ding@lists.math.uh.edu; Wed, 08 Dec 2010 12:14:46 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PQOXN-0000R2-4W for ding@lists.math.uh.edu; Wed, 08 Dec 2010 12:14:46 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PQOXM-0006Lo-00 for ; Wed, 08 Dec 2010 19:14:44 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PQOXK-0003Iz-Oy for ding@gnus.org; Wed, 08 Dec 2010 19:14:42 +0100 Original-Received: from eps142.cdf.udc.es ([193.144.52.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Dec 2010 19:14:42 +0100 Original-Received: from aluaces by eps142.cdf.udc.es with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Dec 2010 19:14:42 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Followup-To: gmane.emacs.gnus.user Original-Lines: 30 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: eps142.cdf.udc.es User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:KOnYf3g3M7VT6xvMiuJ+E3IWVQ0= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74864 gmane.emacs.gnus.user:14124 Archived-At: Tommy Kelly writes: > [Moving to .gnus.user -- didn't realize I may be bugging people on > the development list] > > I'm looking for some help in creating nnimap-split-methods that match on > more than one line. For example, I'd like to split out messages that are > From certain people AND To me. > > I know I may need to try fancy splitting, but I'm now trying to > understand why certain regex's don't do what I expect. For example, I > tried a split something of the (imperfect) form: > > ("to-me-from-certain-people" "^From:.*certainpeople.com\\(.\\|\n\\)*To:.*tommy.kelly@verilab.com") > > But it doesn't work. Even more confusingly, it does work for someone > else (on the developer list). > > Can anyone suggest what the problem is? > What's the best way to debug this kind of thing? (I'm using nnimap, so > I'm not sure nnmail-split-history is useful -- I can't find an > nnimap-split-history). You can find useful the regexp-builder mode when applied to some of your mails, in order to see if your regex is correct. `C-u g', that is `gnus-summary-show-article' called with an argument, can show you also the raw mail for you to test. -- Alberto