Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: ding@gnus.org
Subject: Poll time: IMAP client-side default match (was: Imap split, does not work (of course))
Date: Mon, 31 Jan 2011 18:16:03 -0800	[thread overview]
Message-ID: <87lj20jy8s.fsf_-_@gnus.org> (raw)
In-Reply-To: <87r5bsleui.fsf@gnus.org>

Lars Ingebrigtsen <larsi@gnus.org> writes:

> But now I have to ask you: What did you mean to express by saying:
>
> (nnimap-split-methods
>  (("INBOX.toto" "")))

Oh, you meant that you wanted all the mail to be moved to INBOX.toto?
That's certainly reasonable, and, as you've found out, doesn't work.

And it's not documented why it doesn't work, because it not working is
experimental, and I forgot about it.

The issue is this: When using non-IMAP splitting, Gnus really needs to
have a "default split", or a catch-all rule at the end.  If it doesn't
exist, Gnus makes one.  Otherwise Gnus would have nowhere to put the
mail it pulls down from, say, POP3, and which matches no (other) rules,
and the mail would be lost.

On IMAP, on the other hand, Gnus can just leave the mail in INBOX, and
no harm would be done.  (And I think that's what IMAP users expect.)

So the problem is: If you have a split that you're using both for POP3
and IMAP, then POP3 one needs a default split, while the IMAP shouldn't
have one.

Gnus deals with this by special-casing the IMAP case.  It simply ignores
"" (catch-all) rules.

We could deal with this by:

1) Just document that IMAP client-side splits ignores the catch-all
rule.

2) Something else.  Ideas are welcome.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




  reply	other threads:[~2011-02-01  2:16 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-31 21:35 Imap split, does not work (of course) Francis Moreau
2011-01-31 21:43 ` Richard Riley
2011-02-01  1:32 ` Lars Ingebrigtsen
2011-02-01  2:16   ` Lars Ingebrigtsen [this message]
2011-02-01  9:25     ` Poll time: IMAP client-side default match Rupert Swarbrick
2011-02-01 10:10       ` Lars Ingebrigtsen
2011-02-01  7:34   ` Imap split, does not work (of course) Francis Moreau
2011-02-01  8:04     ` Richard Riley
2011-02-01  8:27       ` Francis Moreau
2011-02-02  8:04       ` Francis Moreau
2011-02-01 19:21     ` Francis Moreau
2011-02-02  7:08       ` Eric S Fraga
2011-02-02 11:25         ` Richard Riley
2011-02-03  0:13           ` Michael Welsh Duggan
2011-02-03  8:47             ` Steinar Bang
2011-02-03 11:59               ` Richard Riley

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=87lj20jy8s.fsf_-_@gnus.org \
    --to=larsi@gnus.org \
    --cc=ding@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).