Gnus development mailing list
 help / color / mirror / Atom feed
From: Julien Cubizolles <j.cubizolles@free.fr>
To: ding@gnus.org
Subject: Re: Default action when splitting
Date: Wed, 10 Aug 2011 01:27:10 +0200	[thread overview]
Message-ID: <87bovynp2p.fsf@free.fr> (raw)
In-Reply-To: <m3sjqs3va5.fsf@quimbies.gnus.org>

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Vincent Beffara <vbeffara@ens-lyon.fr> writes:
>
>> I am using fancy splitting in nnimap to split the messages in INBOX into
>> various mailboxes, and I would like the messages matching no explicit
>> rule to be left in INBOX. I am doing that by havinf a rule variable like
>>
>>      (| (...)
>>         (...)
>>         (...)
>>         "INBOX")
>
> If you want to leave the messages in INBOX, just remove the default, and
> they won't be moved around.

Even with what you suggest, I can't get my fancy splitting rules to
leave the unsplit messages in the INBOX folder of the IMAP server I'm
using. They go to a "mail.misc" folder on the IMAP server, which is the
(default I think) value of nnmail-split-fancy. My setup is copied from
numerous examples given in this mailing list and I can't find what's
wrong with it :

,----
| (setq gnus-secondary-select-methods
|       '(
| 	(nnimap "free"
| 		(nnimap-address "imap.free.fr")
| 		(nnimap-authentificator "j.cubizolles")
| 		(nnimap-authinfo-file "~/.authinfo")
| 		(nnimap-inbox "INBOX")
| 		(nnimap-split-predicate "UNDELETED UNSEEN")
| 		(nnimap-split-methods
| 		 '(| (: gnus-registry-split-fancy-with-parent)
| 		     (: spam-split 'spam-use-bogofilter)
| 		     (any "\\b\\(\\w+\\)@.*bretagne.*" "ml.ups.\\1")
| 		     (any ".*ups-\\b\\(\\w+\\)@listes\\.prepas\\.org" "ml.ups.\\1")
| 		     ("gnus-warning" "duplicat\\(e\\|ion\\) of message" "duplicate")
| 		     )))
| 	(nntp "news.free.fr")
| 	(nntp "news.gmane.org")
| 	)
| )
`----

By the way, I tried replacing :
,----
| (nnimap-split-predicate "UNDELETED UNSEEN")
`----
with 
,----
| (nnimap-unsplittable-articles '(%Deleted %Seen))
`----
as I read somewhere that's how it should be done now but it doesn't seem
to work : all the INBOX folder is split.

Julien.




  parent reply	other threads:[~2011-08-09 23:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-28 16:30 Vincent Beffara
2011-06-30  2:30 ` Lars Magne Ingebrigtsen
2011-06-30  7:32   ` Vincent Beffara
2011-08-09 23:27   ` Julien Cubizolles [this message]
2011-08-10 16:33     ` Andreas Schwab
2011-08-11  7:05       ` Julien Cubizolles
2011-08-18  0:26         ` Lars Magne Ingebrigtsen

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=87bovynp2p.fsf@free.fr \
    --to=j.cubizolles@free.fr \
    --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).