Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* nnimap splitting emacs 24, does not split
@ 2012-07-03 11:29 pramble
  2012-07-03 14:54 ` Damon Haley
  0 siblings, 1 reply; 4+ messages in thread
From: pramble @ 2012-07-03 11:29 UTC (permalink / raw)
  To: info-gnus-english

After upgrading from emacs 23 to 24, nnimap splitting does not split.
Sorry if this sounds vague, but I would be so grateful for pointers as
to where to start looking.
From the customize buffer, the relevant parts look like the section
below. I only post this, hoping it is more readable than the lines
from my .emacs file.

I have no problem collecting mail from three imap servers. Everything
simply goes into my INBOX.

I do not expect anybody to fix this for me, but do not hesitate to
tell me which variables I should set to get some more information.
I did have "default" before the start of the list below, but that did
not make any difference.
Many thanks for any advice.


Gnus Secondary Select Methods:
INS DEL Select Method:
            Method: Value Menu nnimap
            Address: muenchen
            Options:
            INS DEL Variable: nnimap-address
                        Value: "mailhost.uni-blah.de"
            INS DEL Variable: nnimap-server-port
                        Value: 993
            INS DEL Variable: nnimap-stream
                        Value: ssl
            INS DEL Variable: nnimap-inbox
                        Value: "INBOX"
            INS DEL Variable: nnimap-split-methods
                        Value:
(("INBOX.moocow" "From:.*moocow*")
 ("INBOX.spam" "from:.*knauer.net")
 ("INBOX.spam" "subject: .*symposium on neural networks"))

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

* Re: nnimap splitting emacs 24, does not split
  2012-07-03 11:29 nnimap splitting emacs 24, does not split pramble
@ 2012-07-03 14:54 ` Damon Haley
  2013-04-07 18:35   ` Seb
  0 siblings, 1 reply; 4+ messages in thread
From: Damon Haley @ 2012-07-03 14:54 UTC (permalink / raw)
  To: info-gnus-english

pramble@xemaps.com writes:

Hi,

If you're using fancy splitting with the gnus that ships with emacs 24,
you probably just need to configure these three variables:


(setq nnimap-split-methods 'nnmail-split-fancy)
(setq nnmail-split-abbrev-alist
      '((any . "from\\|to\\|cc\\|sender\\|apparently-to\\|resent-from\\|resent-to\\|resent-cc")
        (mail . "mailer-daemon\\|postmaster\\|uucp")
        (to . "to\\|cc\\|apparently-to\\|resent-to\\|resent-cc")
        (from . "from\\|sender\\|resent-from")
        (daemon-errors . "Cron daemon\\|mailer-daemon")
        (list . "list-id\\|x-mailing-list\\|to\\|cc\\|sender")))


(setq nnmail-split-fancy
      '(| ("from" mail (| ("subject" "warn.*" "mail.warning")
                          "mail.misc"))
          (& (|
              (any "ding@gnus.org" "list.ding")
                ("subject" "ding" "ding.misc"))
             ;; Other mailing lists...
             ("list-id" "conkeror\\.mozdev\\.org" "list.conkeror")
             (any "infosecnews" "list.infosecnews")
             (any "orgmode" "list.orgmode")
             (any "emacs-orgmode" "list.orgmode")
             (any "bbdb-info"  "list.bbdb-info")
             (any "info-gnus" "list.info-gnus")
             (any "emacs-devel" "list.emacs-devel")
             )
          "INBOX.mail.unsorted"))

In a nutshell, gnus got rid of the old nnimap-split-fancy function (used
in Emacs 23), so you now need to use nnmail-split-fancy with nnimap.

Damon

               
> After upgrading from emacs 23 to 24, nnimap splitting does not split.
> Sorry if this sounds vague, but I would be so grateful for pointers as
> to where to start looking.
> From the customize buffer, the relevant parts look like the section
> below. I only post this, hoping it is more readable than the lines
> from my .emacs file.
>
> I have no problem collecting mail from three imap servers. Everything
> simply goes into my INBOX.
>
> I do not expect anybody to fix this for me, but do not hesitate to
> tell me which variables I should set to get some more information.
> I did have "default" before the start of the list below, but that did
> not make any difference.
> Many thanks for any advice.
>
> Gnus Secondary Select Methods:
> INS DEL Select Method:
>             Method: Value Menu nnimap
>             Address: muenchen
>             Options:
>             INS DEL Variable: nnimap-address
>                         Value: "mailhost.uni-blah.de"
>             INS DEL Variable: nnimap-server-port
>                         Value: 993
>             INS DEL Variable: nnimap-stream
>                         Value: ssl
>             INS DEL Variable: nnimap-inbox
>                         Value: "INBOX"
>             INS DEL Variable: nnimap-split-methods
>                         Value:
> (("INBOX.moocow" "From:.*moocow*")
>  ("INBOX.spam" "from:.*knauer.net")
>  ("INBOX.spam" "subject: .*symposium on neural networks"))
> _______________________________________________
> info-gnus-english mailing list
> info-gnus-english@gnu.org
> https://lists.gnu.org/mailman/listinfo/info-gnus-english
>

-- 
Damon K. Haley ಠ_ಠ
e-mail: d k h @ member.fsf.org
jabber: vinylisl @ jabber.sdf.org
thaweb: vinylisland.org (including pgp sig, irc handle)
    
    

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: nnimap splitting emacs 24, does not split
  2012-07-03 14:54 ` Damon Haley
@ 2013-04-07 18:35   ` Seb
  2013-04-09 13:25     ` Seb
  0 siblings, 1 reply; 4+ messages in thread
From: Seb @ 2013-04-07 18:35 UTC (permalink / raw)
  To: info-gnus-english

On Tue, 03 Jul 2012 08:54:03 -0600,
Damon Haley <dkh@member.fsf.org> wrote:

> pramble@xemaps.com writes: Hi,

> If you're using fancy splitting with the gnus that ships with emacs
> 24, you probably just need to configure these three variables:


> (setq nnimap-split-methods 'nnmail-split-fancy) (setq
> nnmail-split-abbrev-alist '((any
> . "from\\|to\\|cc\\|sender\\|apparently-to\\|resent-from\\|resent-to\\|resent-cc")
> (mail . "mailer-daemon\\|postmaster\\|uucp") (to
> . "to\\|cc\\|apparently-to\\|resent-to\\|resent-cc") (from
> . "from\\|sender\\|resent-from") (daemon-errors . "Cron
> daemon\\|mailer-daemon") (list
> . "list-id\\|x-mailing-list\\|to\\|cc\\|sender")))


> (setq nnmail-split-fancy '(| ("from" mail (| ("subject" "warn.*"
> "mail.warning") "mail.misc")) (& (| (any "ding@gnus.org" "list.ding")
> ("subject" "ding" "ding.misc")) ;; Other mailing lists...  ("list-id"
> "conkeror\\.mozdev\\.org" "list.conkeror") (any "infosecnews"
> "list.infosecnews") (any "orgmode" "list.orgmode") (any
> "emacs-orgmode" "list.orgmode") (any "bbdb-info" "list.bbdb-info")
> (any "info-gnus" "list.info-gnus") (any "emacs-devel"
> "list.emacs-devel") ) "INBOX.mail.unsorted"))

> In a nutshell, gnus got rid of the old nnimap-split-fancy function
> (used in Emacs 23), so you now need to use nnmail-split-fancy with
> nnimap.

I've recently moved to Emacs 24 (GNU Emacs 24.3.50.1
(x86_64-pc-linux-gnu, GTK+ Version 3.4.2) of 2013-04-03 on dex, modified
by Debian, which ships Gnus v5.13.  It does seem like all I needed to do
was to replace the variables as you suggest, but somehow all my mail is
now landing in INBOX, whereas before upgrading it was going to the
respective groups as specified by `nnimap-split-fancy' (now
`nnmail-split-fancy).

I'm using a local IMAP dovecot server, which receives mail from various
sources collected by fetchmail:

---<--------------------cut here---------------start------------------->---
(setq gnus-select-method
	     '(nnimap "sluque"
		      (nnimap-address "my.dovecot.com")
		      (nnimap-stream ssl)))
---<--------------------cut here---------------end--------------------->---

and below is my `nnmail-split-fancy' rules:

---<--------------------cut here---------------start------------------->---
(require 'spam)
(setq spam-split-group "SPAM"
      spam-use-regex-headers t
      spam-use-bogofilter t
      nnmail-split-methods 'nnmail-split-fancy
      nnimap-split-methods 'nnmail-split-fancy
      nnimap-split-inbox '("INBOX")
      nnmail-mail-splitting-decodes t
      nnmail-split-fancy
      '(| (: spam-split 'spam-use-regex-headers)
	  (from ".*dovecot.*" "System")
	  (to ".*ecolog-l.*" "Ecolog-L")
	  (from ".*mammal-l.*" "Mammal-L")
	  (to ".*mammal-l.*" "Mammal-L")
	  (: spam-split)))
(spam-initialize)
---<--------------------cut here---------------end--------------------->---

It seems as though the rules are now never matching anythiing, so all my
mail ends up in the specified `nnimap-split-inbox'.  Has there been a
change in how these splits should be specified? Thanks.


-- 
Seb

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

* Re: nnimap splitting emacs 24, does not split
  2013-04-07 18:35   ` Seb
@ 2013-04-09 13:25     ` Seb
  0 siblings, 0 replies; 4+ messages in thread
From: Seb @ 2013-04-09 13:25 UTC (permalink / raw)
  To: info-gnus-english

On Sun, 07 Apr 2013 13:35:23 -0500,
Seb <spluque@gmail.com> wrote:

> I've recently moved to Emacs 24 (GNU Emacs 24.3.50.1
> (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) of 2013-04-03 on dex,
> modified by Debian, which ships Gnus v5.13.  It does seem like all I
> needed to do was to replace the variables as you suggest, but somehow
> all my mail is now landing in INBOX, whereas before upgrading it was
> going to the respective groups as specified by `nnimap-split-fancy'
> (now `nnmail-split-fancy).

> I'm using a local IMAP dovecot server, which receives mail from
> various sources collected by fetchmail:

> (setq gnus-select-method
> 	     '(nnimap "sluque"
> 		      (nnimap-address "my.dovecot.com")
> 		      (nnimap-stream ssl)))

> and below is my `nnmail-split-fancy' rules:

> (require 'spam)
> (setq spam-split-group "SPAM"
>       spam-use-regex-headers t
>       spam-use-bogofilter t
>       nnmail-split-methods 'nnmail-split-fancy
>       nnimap-split-methods 'nnmail-split-fancy
>       nnimap-split-inbox '("INBOX")
>       nnmail-mail-splitting-decodes t
>       nnmail-split-fancy
>       '(| (: spam-split 'spam-use-regex-headers)
> 	  (from ".*dovecot.*" "System")
> 	  (to ".*ecolog-l.*" "Ecolog-L")
> 	  (from ".*mammal-l.*" "Mammal-L")
> 	  (to ".*mammal-l.*" "Mammal-L")
> 	  (: spam-split)))
> (spam-initialize)

> It seems as though the rules are now never matching anythiing, so all
> my mail ends up in the specified `nnimap-split-inbox'.  Has there been
> a change in how these splits should be specified? Thanks.

In case someone is experiencing the same, I found a solution after
experimenting.

I moved server variables to the definition of the IMAP select method,
and removed `nnimap-split-fancy':

---<--------------------cut here---------------start------------------->---
(require 'spam)
(setq spam-split-group "SPAM"
      spam-use-regex-headers t
      spam-use-bogofilter t
      nnmail-mail-splitting-decodes t
      nnmail-split-methods 'nnmail-split-fancy
      nnmail-split-fancy
      '(| (: spam-split 'spam-use-regex-headers)
	  (from ".*dovecot.*" "System")
	  (to ".*ecolog-l.*" "Ecolog-L")
	  (from ".*mammal-l.*" "Mammal-L")
	  (to ".*mammal-l.*" "Mammal-L")
	  (: spam-split))
      gnus-select-method
      '(nnimap "sluque"
	       (nnimap-address "kolob.subpolar.dyndns.org")
	       (nnimap-stream ssl)
	       (nnimap-inbox "INBOX")
	       (nnimap-split-methods default)))
 (spam-initialize)
---<--------------------cut here---------------end--------------------->---


-- 
Seb

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

end of thread, other threads:[~2013-04-09 13:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-03 11:29 nnimap splitting emacs 24, does not split pramble
2012-07-03 14:54 ` Damon Haley
2013-04-07 18:35   ` Seb
2013-04-09 13:25     ` Seb

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