Gnus development mailing list
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: ding@lists.math.uh.edu
Subject: Re: using nnimap-split-fancy to split mail on server?
Date: Mon, 26 Jan 2015 04:04:29 -0600	[thread overview]
Message-ID: <85egqhdfiq.fsf@stephe-leake.org> (raw)
In-Reply-To: <87386ykymr.fsf@building.gnus.org> (Lars Ingebrigtsen's message of "Mon, 26 Jan 2015 14:29:48 +1100")

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Stephen Leake <stephen_leake@stephe-leake.org> writes:
>
>> (setq nnimap-split-fancy
>>       '(|
>> 	;; spam
>> 	("subject" "SPAMSPAM" "spam")
>> 	("from" "strat laios <stratlaios@verizon.net>" "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



  reply	other threads:[~2015-01-26 10:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-22 16:48 Stephen Leake
2015-01-26  3:29 ` Lars Ingebrigtsen
2015-01-26 10:04   ` Stephen Leake [this message]
2015-01-27  0:55     ` Lars Ingebrigtsen
2015-01-27  9:25       ` Stephen Leake
2015-01-27 10:16         ` Stephen Leake

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=85egqhdfiq.fsf@stephe-leake.org \
    --to=stephen_leake@stephe-leake.org \
    --cc=ding@lists.math.uh.edu \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).