Gnus development mailing list
 help / color / mirror / Atom feed
* Default action when splitting
@ 2011-06-28 16:30 Vincent Beffara
  2011-06-30  2:30 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Vincent Beffara @ 2011-06-28 16:30 UTC (permalink / raw)
  To: ding


Hello,

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")

and it works very well - but apparently, the messages are still deleted
from INBOX and re-introduced there under a different UID (at least, they
look like new messages to offlineimap). That feels a bit sub-optimal.

Is there a way to tell gnus to really do nothing with such messages
(ignoring them completely, simply marking them as seen by the splitting
mechanism so that they are not split again next time) ?

Thanks !

       /vincent

-- 
|                 |   UMPA - ENS Lyon   | Mél: vbeffara@ens-lyon.fr |
| Vincent Beffara |  46 allée d'Italie  | Tél: (+33) 4 72 72 85 25  |
|                 | 69364 Lyon Cedex 07 | Fax: (+33) 4 72 72 84 80  |




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Default action when splitting
  2011-06-28 16:30 Default action when splitting Vincent Beffara
@ 2011-06-30  2:30 ` Lars Magne Ingebrigtsen
  2011-06-30  7:32   ` Vincent Beffara
  2011-08-09 23:27   ` Julien Cubizolles
  0 siblings, 2 replies; 7+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-06-30  2:30 UTC (permalink / raw)
  To: ding

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.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Default action when splitting
  2011-06-30  2:30 ` Lars Magne Ingebrigtsen
@ 2011-06-30  7:32   ` Vincent Beffara
  2011-08-09 23:27   ` Julien Cubizolles
  1 sibling, 0 replies; 7+ messages in thread
From: Vincent Beffara @ 2011-06-30  7:32 UTC (permalink / raw)
  To: ding


LMI> If you want to leave the messages in INBOX, just remove the
LMI> default, and they won't be moved around.

Hmm, weird, I seemed to remember trying that first and having everything
land in the 'bogus' group ... but of course it works. Thanks a lot !

     /v

-- 
|                 |   UMPA - ENS Lyon   | Mél: vbeffara@ens-lyon.fr |
| Vincent Beffara |  46 allée d'Italie  | Tél: (+33) 4 72 72 85 25  |
|                 | 69364 Lyon Cedex 07 | Fax: (+33) 4 72 72 84 80  |




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Default action when splitting
  2011-06-30  2:30 ` Lars Magne Ingebrigtsen
  2011-06-30  7:32   ` Vincent Beffara
@ 2011-08-09 23:27   ` Julien Cubizolles
  2011-08-10 16:33     ` Andreas Schwab
  1 sibling, 1 reply; 7+ messages in thread
From: Julien Cubizolles @ 2011-08-09 23:27 UTC (permalink / raw)
  To: ding

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.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Default action when splitting
  2011-08-09 23:27   ` Julien Cubizolles
@ 2011-08-10 16:33     ` Andreas Schwab
  2011-08-11  7:05       ` Julien Cubizolles
  0 siblings, 1 reply; 7+ messages in thread
From: Andreas Schwab @ 2011-08-10 16:33 UTC (permalink / raw)
  To: Julien Cubizolles; +Cc: ding

Julien Cubizolles <j.cubizolles@free.fr> writes:

> ,----
> | (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)

You have an extra quote here.

> By the way, I tried replacing :
> ,----
> | (nnimap-split-predicate "UNDELETED UNSEEN")
> `----
> with 
> ,----
> | (nnimap-unsplittable-articles '(%Deleted %Seen))

Another extra quote.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Default action when splitting
  2011-08-10 16:33     ` Andreas Schwab
@ 2011-08-11  7:05       ` Julien Cubizolles
  2011-08-18  0:26         ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Julien Cubizolles @ 2011-08-11  7:05 UTC (permalink / raw)
  To: ding

Andreas Schwab <schwab@linux-m68k.org> writes:

>> ,----
>> | (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)
>
> You have an extra quote here.

I changed it to the following, where every split except the default one
is removed.
,----
| (setq gnus-secondary-select-methods
|       '(
| 	(nnimap "free"
| 		(nnimap-address "imap.free.fr")
| 		(nnimap-authentificator "j.cubizolles")
| 		(nnimap-authinfo-file "~/.authinfo")
| 		(nnimap-inbox "INBOX")
|               (nnimap-unsplittable-articles (%Deleted %Seen))
| 		(nnimap-split-methods
| 		 (| 
| 		     ))
| 		)
| 	)
| )
`----

All mail is still splitted to a mail.misc folder on the IMAP server,
which gnus recreates if I remove it. If I just comment the
nnimap-split-methods part, no splitting occurs. Somehow, this syntax
activate the splitting but without setting any rule...

Julien, at a loss for hours on this one.






^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Default action when splitting
  2011-08-11  7:05       ` Julien Cubizolles
@ 2011-08-18  0:26         ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 7+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-08-18  0:26 UTC (permalink / raw)
  To: ding

Julien Cubizolles <j.cubizolles@free.fr> writes:

> All mail is still splitted to a mail.misc folder on the IMAP server,
> which gnus recreates if I remove it. If I just comment the
> nnimap-split-methods part, no splitting occurs. Somehow, this syntax
> activate the splitting but without setting any rule...
>
> Julien, at a loss for hours on this one.

Are you using an up-to-date bzr Emacs?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-08-18  0:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-28 16:30 Default action when splitting Vincent Beffara
2011-06-30  2:30 ` Lars Magne Ingebrigtsen
2011-06-30  7:32   ` Vincent Beffara
2011-08-09 23:27   ` Julien Cubizolles
2011-08-10 16:33     ` Andreas Schwab
2011-08-11  7:05       ` Julien Cubizolles
2011-08-18  0:26         ` Lars Magne Ingebrigtsen

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).