Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* IMAP mail splitting problem
@ 2007-06-08 13:46 Kai Kaminski
  2007-06-09  1:15 ` Pascal Bourguignon
  0 siblings, 1 reply; 8+ messages in thread
From: Kai Kaminski @ 2007-06-08 13:46 UTC (permalink / raw)
  To: info-gnus-english

Hi,

I'm using Gnus v5.11/Emacs 22.1.50.1  to read mail (via nnimap) and
news. Everything works fine, except mail splitting. I'm subscribed to
several mailing lists, which can be recognized by looking for [foo] in
the subject line. I have the following in my .gnus:

(setq nnimap-split-crosspost nil)
(setq nnimap-split-inbox '("INBOX"))
(setq nnimap-split-predicate "UNSEEN UNDELETED")

(setq nnimap-split-rule 'nnimap-split-fancy)
(setq nnimap-split-fancy
      '(| (subject "\\[Haskell\\]" "Haskell")
	  (subject "\\[Haskell-cafe\\]" "Haskell-cafe")
	  (subject "\\[slime-devel\\]" "slime-devel")
	  ("List-Id" "yhc\\.haskell\\.org" "yhc")
	  "misc"))

Interestingly the 'yhc' entry seems to work, but all other mails are
always put into mail.misc. While trying to figure out where that
'mail.'-prefix came from, I discovered that nnmail-split-fancy's value
is "mail.misc". This is odd, since I didn't set that value. In fact,
there is not a single reference to nnmail-anything in my configuration
files. I tried replacing nnimap- by nnmail- in the code above, but
that didn't help either. I also tried variations of "Subject",
"subject" etc, to no avail.

Using non-fancy mail-splitting didn't seem to work either, as in

(setq nnimap-split-rule
      '(("Haskell" "Subject:.*\\[Haskell\\]")
	("Haskell-cafe" "Subject:.*\\[Haskell-cafe\\]")
	("misc" "")))



Kai

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

* Re: IMAP mail splitting problem
  2007-06-08 13:46 IMAP mail splitting problem Kai Kaminski
@ 2007-06-09  1:15 ` Pascal Bourguignon
  2007-06-10 22:49   ` Kai Oliver Kaminski
  0 siblings, 1 reply; 8+ messages in thread
From: Pascal Bourguignon @ 2007-06-09  1:15 UTC (permalink / raw)
  To: info-gnus-english

Kai Kaminski <kai.kaminski@gmx.de> writes:
> I'm using Gnus v5.11/Emacs 22.1.50.1  to read mail (via nnimap) and
> news. Everything works fine, except mail splitting. I'm subscribed to
> several mailing lists, which can be recognized by looking for [foo] in
> the subject line. I have the following in my .gnus:
>
> (setq nnimap-split-crosspost nil)
> (setq nnimap-split-inbox '("INBOX"))
> (setq nnimap-split-predicate "UNSEEN UNDELETED")
>
> (setq nnimap-split-rule 'nnimap-split-fancy)
> (setq nnimap-split-fancy
>       '(| (subject "\\[Haskell\\]" "Haskell")
> 	  (subject "\\[Haskell-cafe\\]" "Haskell-cafe")
> 	  (subject "\\[slime-devel\\]" "slime-devel")
> 	  ("List-Id" "yhc\\.haskell\\.org" "yhc")
> 	  "misc"))

I solved my similar problem (with nnmail) using any instead of fancy
subject or from...

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

NOTE: The most fundamental particles in this product are held
together by a "gluing" force about which little is currently known
and whose adhesive power can therefore not be permanently
guaranteed.

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

* Re: IMAP mail splitting problem
  2007-06-09  1:15 ` Pascal Bourguignon
@ 2007-06-10 22:49   ` Kai Oliver Kaminski
  2007-06-11 14:24     ` Emilio Jesús Gallego Arias
       [not found]     ` <mailman.1940.1181574241.32220.info-gnus-english@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Kai Oliver Kaminski @ 2007-06-10 22:49 UTC (permalink / raw)
  To: info-gnus-english

Pascal Bourguignon <pjb@informatimago.com> writes:

> Kai Kaminski <kai.kaminski@gmx.de> writes:
>> I'm using Gnus v5.11/Emacs 22.1.50.1  to read mail (via nnimap) and
>> news. Everything works fine, except mail splitting. I'm subscribed to
>> several mailing lists, which can be recognized by looking for [foo] in
>> the subject line. I have the following in my .gnus:
>>
>> (setq nnimap-split-crosspost nil)
>> (setq nnimap-split-inbox '("INBOX"))
>> (setq nnimap-split-predicate "UNSEEN UNDELETED")
>>
>> (setq nnimap-split-rule 'nnimap-split-fancy)
>> (setq nnimap-split-fancy
>>       '(| (subject "\\[Haskell\\]" "Haskell")
>> 	  (subject "\\[Haskell-cafe\\]" "Haskell-cafe")
>> 	  (subject "\\[slime-devel\\]" "slime-devel")
>> 	  ("List-Id" "yhc\\.haskell\\.org" "yhc")
>> 	  "misc"))
>
> I solved my similar problem (with nnmail) using any instead of fancy
> subject or from...
Thanks for the tip, but it still doesn't work. The worst thing is that
the "List-Id" clause seems to work perfectly.

Cheers,

Kai

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

* Re: IMAP mail splitting problem
  2007-06-10 22:49   ` Kai Oliver Kaminski
@ 2007-06-11 14:24     ` Emilio Jesús Gallego Arias
       [not found]     ` <mailman.1940.1181574241.32220.info-gnus-english@gnu.org>
  1 sibling, 0 replies; 8+ messages in thread
From: Emilio Jesús Gallego Arias @ 2007-06-11 14:24 UTC (permalink / raw)
  To: info-gnus-english

Kai Oliver Kaminski <kai.kaminski@gmx.de> writes:

> Pascal Bourguignon <pjb@informatimago.com> writes:
>
>>> (setq nnimap-split-crosspost nil)
>>> (setq nnimap-split-inbox '("INBOX"))
>>> (setq nnimap-split-predicate "UNSEEN UNDELETED")
>>>
>>> (setq nnimap-split-rule 'nnimap-split-fancy)
>>> (setq nnimap-split-fancy
>>>       '(| (subject "\\[Haskell\\]" "Haskell")
>>>       (subject "\\[Haskell-cafe\\]" "Haskell-cafe")
>>>       (subject "\\[slime-devel\\]" "slime-devel")
>>>       ("List-Id" "yhc\\.haskell\\.org" "yhc")
>>>       "misc"))
>>
>> I solved my similar problem (with nnmail) using any instead of fancy
>> subject or from...
> Thanks for the tip, but it still doesn't work. The worst thing is that
> the "List-Id" clause seems to work perfectly.

Have you tried

(setq nnmail-split-fancy-match-partial-words t)

Regards,

Emilio

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

* Re: IMAP mail splitting problem
  2007-06-11 18:30       ` Kai Oliver Kaminski
@ 2007-06-11 16:57         ` Emilio Jesús Gallego Arias
       [not found]         ` <mailman.1950.1181581084.32220.info-gnus-english@gnu.org>
  1 sibling, 0 replies; 8+ messages in thread
From: Emilio Jesús Gallego Arias @ 2007-06-11 16:57 UTC (permalink / raw)
  To: info-gnus-english

Kai Oliver Kaminski <kai.kaminski@gmx.de> writes:

> egallego@babel.ls.fi.upm.es (Emilio Jesús Gallego Arias) writes:
>>>>> (setq nnimap-split-crosspost nil)
>>>>> (setq nnimap-split-inbox '("INBOX"))
>>>>> (setq nnimap-split-predicate "UNSEEN UNDELETED")
>>>>>
>>>>> (setq nnimap-split-rule 'nnimap-split-fancy)
>>>>> (setq nnimap-split-fancy
>>>>>       '(| (subject "\\[Haskell\\]" "Haskell")
>>>>>       (subject "\\[Haskell-cafe\\]" "Haskell-cafe")
>>>>>       (subject "\\[slime-devel\\]" "slime-devel")
>>>>>       ("List-Id" "yhc\\.haskell\\.org" "yhc")
>>>>>       "misc"))
>>>>
>>
>> Have you tried
>>
>> (setq nnmail-split-fancy-match-partial-words t)
> No, I hadn't. I've tried it now but it doesn't work either.

Umm, see my config, it works ok, however sometimes I have to use
wildcards in the rules for it to work.

(setq nnimap-split-rule '(("babel" ("INBOX" nnimap-split-fancy)))
      nnimap-split-fancy
      '(| ("subject" ".*\\[\\*SPAM\\*\\].*"              "spam.fi")
          ("subject" ".*\\[\\*INFECATADO\\*\\].*"        "spam.fi")
          ("subject" ".*\\[\\*ADJUNTO PROHIBIDO\\*\\].*" "spam.fi")
          ("X-Spam-Flag" "YES"                           "spam.fi")
          (any       ".*clp@comp.nus.edu.sg.*" "listas/clp")
          ("INBOX")))


In this rule
(setq nnimap-split-rule '(("babel" ("INBOX" nnimap-split-fancy)))

babel means the secondary select method, as in

(setq gnus-secondary-select-methods
      '((nnimap "babel"
      ....

Regards,

Emilio

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

* Re: IMAP mail splitting problem
       [not found]     ` <mailman.1940.1181574241.32220.info-gnus-english@gnu.org>
@ 2007-06-11 18:30       ` Kai Oliver Kaminski
  2007-06-11 16:57         ` Emilio Jesús Gallego Arias
       [not found]         ` <mailman.1950.1181581084.32220.info-gnus-english@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Kai Oliver Kaminski @ 2007-06-11 18:30 UTC (permalink / raw)
  To: info-gnus-english

egallego@babel.ls.fi.upm.es (Emilio Jesús Gallego Arias) writes:

> Kai Oliver Kaminski <kai.kaminski@gmx.de> writes:
>
>> Pascal Bourguignon <pjb@informatimago.com> writes:
>>
>>>> (setq nnimap-split-crosspost nil)
>>>> (setq nnimap-split-inbox '("INBOX"))
>>>> (setq nnimap-split-predicate "UNSEEN UNDELETED")
>>>>
>>>> (setq nnimap-split-rule 'nnimap-split-fancy)
>>>> (setq nnimap-split-fancy
>>>>       '(| (subject "\\[Haskell\\]" "Haskell")
>>>>       (subject "\\[Haskell-cafe\\]" "Haskell-cafe")
>>>>       (subject "\\[slime-devel\\]" "slime-devel")
>>>>       ("List-Id" "yhc\\.haskell\\.org" "yhc")
>>>>       "misc"))
>>>
>
> Have you tried
>
> (setq nnmail-split-fancy-match-partial-words t)
No, I hadn't. I've tried it now but it doesn't work either.

Thanks anyway,
Kai

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

* Re: IMAP mail splitting problem
       [not found]         ` <mailman.1950.1181581084.32220.info-gnus-english@gnu.org>
@ 2007-06-11 23:57           ` Kai Oliver Kaminski
  2007-06-14 15:11             ` Emilio Jesús Gallego Arias
  0 siblings, 1 reply; 8+ messages in thread
From: Kai Oliver Kaminski @ 2007-06-11 23:57 UTC (permalink / raw)
  To: info-gnus-english

egallego@babel.ls.fi.upm.es (Emilio Jesús Gallego Arias) writes:

> Kai Oliver Kaminski <kai.kaminski@gmx.de> writes:
>
>> egallego@babel.ls.fi.upm.es (Emilio Jesús Gallego Arias) writes:
>>>>>> (setq nnimap-split-crosspost nil)
>>>>>> (setq nnimap-split-inbox '("INBOX"))
>>>>>> (setq nnimap-split-predicate "UNSEEN UNDELETED")
>>>>>>
>>>>>> (setq nnimap-split-rule 'nnimap-split-fancy)
>>>>>> (setq nnimap-split-fancy
>>>>>>       '(| (subject "\\[Haskell\\]" "Haskell")
>>>>>>       (subject "\\[Haskell-cafe\\]" "Haskell-cafe")
>>>>>>       (subject "\\[slime-devel\\]" "slime-devel")
>>>>>>       ("List-Id" "yhc\\.haskell\\.org" "yhc")
>>>>>>       "misc"))
>>>>>
>>>
>>> Have you tried
>>>
> Umm, see my config, it works ok, however sometimes I have to use
> wildcards in the rules for it to work.
>
> (setq nnimap-split-rule '(("babel" ("INBOX" nnimap-split-fancy)))
>       nnimap-split-fancy
>       '(| ("subject" ".*\\[\\*SPAM\\*\\].*"              "spam.fi")
>           ("subject" ".*\\[\\*INFECATADO\\*\\].*"        "spam.fi")
>           ("subject" ".*\\[\\*ADJUNTO PROHIBIDO\\*\\].*" "spam.fi")
>           ("X-Spam-Flag" "YES"                           "spam.fi")
>           (any       ".*clp@comp.nus.edu.sg.*" "listas/clp")
>           ("INBOX")))
>
>
> In this rule
> (setq nnimap-split-rule '(("babel" ("INBOX" nnimap-split-fancy)))
>
> babel means the secondary select method, as in
>
> (setq gnus-secondary-select-methods
>       '((nnimap "babel"
Thanks a lot for your patience, Emilio. Unfortunately that didn't help
either. I have no idea what to try next. Maybe I'll try to make the
Gnus functions emit some debug info.

Cheers,
Kai

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

* Re: IMAP mail splitting problem
  2007-06-11 23:57           ` Kai Oliver Kaminski
@ 2007-06-14 15:11             ` Emilio Jesús Gallego Arias
  0 siblings, 0 replies; 8+ messages in thread
From: Emilio Jesús Gallego Arias @ 2007-06-14 15:11 UTC (permalink / raw)
  To: info-gnus-english

Kai Oliver Kaminski <kai.kaminski@gmx.de> writes:

>>> egallego@babel.ls.fi.upm.es (Emilio Jesús Gallego Arias) writes:
>>>>>>> (setq nnimap-split-fancy
>>>>>>>       '(| (subject "\\[Haskell\\]" "Haskell")
>>>>>>>       (subject "\\[Haskell-cafe\\]" "Haskell-cafe")
>>>>>>>       (subject "\\[slime-devel\\]" "slime-devel")
>>>>>>>       ("List-Id" "yhc\\.haskell\\.org" "yhc")
>>>>>>>       "misc"))

> either. I have no idea what to try next. Maybe I'll try to make the
> Gnus functions emit some debug info.

What happens if you change the above to:

(setq nnimap-split-fancy
     '(|
       (subject ".*\\[Haskell\\].*" "Haskell")
       (subject ".*\\[Haskell-cafe\\].*" "Haskell-cafe")
       (subject ".*\\[slime-devel\\].*" "slime-devel")
       ("List-Id" "yhc\\.haskell\\.org" "yhc")
       ("misc")))

i.e: Adding a wildcard to every subject line.

Don't forget to hit 'r' to reload the config file.

Regards,

Emilio

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

end of thread, other threads:[~2007-06-14 15:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-08 13:46 IMAP mail splitting problem Kai Kaminski
2007-06-09  1:15 ` Pascal Bourguignon
2007-06-10 22:49   ` Kai Oliver Kaminski
2007-06-11 14:24     ` Emilio Jesús Gallego Arias
     [not found]     ` <mailman.1940.1181574241.32220.info-gnus-english@gnu.org>
2007-06-11 18:30       ` Kai Oliver Kaminski
2007-06-11 16:57         ` Emilio Jesús Gallego Arias
     [not found]         ` <mailman.1950.1181581084.32220.info-gnus-english@gnu.org>
2007-06-11 23:57           ` Kai Oliver Kaminski
2007-06-14 15:11             ` Emilio Jesús Gallego Arias

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