From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85531 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.gnus.general Subject: Re: using nnimap-split-fancy to split mail on server? Date: Mon, 26 Jan 2015 04:04:29 -0600 Message-ID: <85egqhdfiq.fsf@stephe-leake.org> References: <85h9wnocjs.fsf@stephe-leake.org> <87386ykymr.fsf@building.gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422266711 16340 80.91.229.3 (26 Jan 2015 10:05:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Jan 2015 10:05:11 +0000 (UTC) Cc: ding@lists.math.uh.edu To: Lars Ingebrigtsen Original-X-From: ding-owner+M33773@lists.math.uh.edu Mon Jan 26 11:05:09 2015 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YFgXd-0006v6-AE for ding-account@gmane.org; Mon, 26 Jan 2015 11:05:09 +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 1YFgXH-0002dg-AJ; Mon, 26 Jan 2015 04:04:47 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1YFgXF-0002dV-JY for ding@lists.math.uh.edu; Mon, 26 Jan 2015 04:04:45 -0600 Original-Received: from gproxy10-pub.mail.unifiedlayer.com ([69.89.20.226]) by mx1.math.uh.edu with smtp (Exim 4.84) (envelope-from ) id 1YFgXA-0002yQ-T3 for ding@lists.math.uh.edu; Mon, 26 Jan 2015 04:04:45 -0600 Original-Received: (qmail 21695 invoked by uid 0); 26 Jan 2015 10:04:39 -0000 Original-Received: from unknown (HELO cmgw3) (10.0.90.84) by gproxy10.mail.unifiedlayer.com with SMTP; 26 Jan 2015 10:04:39 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by cmgw3 with id ka4Z1p00f2UdiVW01a4cza; Mon, 26 Jan 2015 03:04:39 -0700 X-Authority-Analysis: v=2.1 cv=BqwOn+n5 c=1 sm=1 tr=0 a=CQdxDb2CKd3SRg4I0/XZPQ==:117 a=CQdxDb2CKd3SRg4I0/XZPQ==:17 a=DsvgjBjRAAAA:8 a=f5113yIGAAAA:8 a=TeMFXEv2S7AA:10 a=9i_RQKNPAAAA:8 a=hEr_IkYJT6EA:10 a=jrwKn-8xaegA:10 a=YNv0rlydsVwA:10 a=OocQHUDgAAAA:8 a=o1OHuDzbAAAA:8 a=FKCwqkubyrq4E_wSxFoA:9 Original-Received: from [70.94.38.149] (port=49921 helo=takver) by host114.hostmonster.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.82) (envelope-from ) id 1YFgX3-00035R-JG; Mon, 26 Jan 2015 03:04:33 -0700 In-Reply-To: <87386ykymr.fsf@building.gnus.org> (Lars Ingebrigtsen's message of "Mon, 26 Jan 2015 14:29:48 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (windows-nt) X-Identified-User: {2442:host114.hostmonster.com:stephele:stephe-leake.org} {sentby:smtp auth 70.94.38.149 authed with stephen_leake@stephe-leake.org} X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85531 Archived-At: Lars Ingebrigtsen writes: > Stephen Leake writes: > >> (setq nnimap-split-fancy >> '(| >> ;; spam >> ("subject" "SPAMSPAM" "spam") >> ("from" "strat laios " "spam") >> >> ;; These are before 'home' rules because people reply "to:" me, >> ;; "cc:" group >> ("to\\|cc" "bbdb-info" "bbdb-info") >> ("to\\|cc" "debian-ada" "debian-ada") >> ("to\\|cc" "debian" "spam") >> >> ... >> )) >> >> This splits mail as expected in Gnus on my laptop. But when I access the >> same server account via the GMail app on my smartphone, it does not show >> the mailboxes/folders (it shows only the default 4 folders: Drafts, >> Junk, Sent, Trash). I can search to find the mail I'm looking for, but >> the folders would be very nice. >> >> Is there anything else I need to do? > > That seems very odd. Gnus really creates the folders on the server, so > you should be able to see them with any client. So either there's > something wrong with that other client, or Gmail is doing something > wonky here again... I figured out what is going on. There are (at least) two ways to use imap in Gnus: nnml back-end with mail-sources set to '(imap ...) nnimap back-end It would be better if the Gnus manual section on imap mentioned both of these. I was using the nnml backend; the imap interface for that does not create folders on the server. In fact, it ignores nnimap-split-fancy, so my testing with the above setting was confused. I tried to use the nnimap back-end, but never got splitting to work. I did discover it is _much_ slower than nnml when reading mail (in moving from one message to the next; I assume because it is telling the server that message has now been read). Splitting on the server is not critical for me (I only access this account thru gmail occasionally), so I'm sticking with the nnml back-end. It might make sense for the nnml imap interface to also split mail on the server, as long as it does not talk to the server after that splitting. I can see there could be problems with that. -- -- Stephe