Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: info-gnus-english@gnu.org
Subject: Re: nnimap split rules
Date: Tue, 01 Dec 2009 15:02:17 -0600	[thread overview]
Message-ID: <87ws16l86e.fsf@lifelogs.com> (raw)
In-Reply-To: <mailman.11008.1258603022.2239.info-gnus-english@gnu.org>

On Wed, 18 Nov 2009 21:56:27 -0600 Seb <spluque@gmail.com> wrote: 

S> Can someone please show a working example of `nnimap-split-fancy' with
S> `spam-split' using bogofilter?  I have:
S> (require 'spam)
S> (setq spam-split-group "SPAM"
S>       spam-use-bogofilter t
S>       nnimap-split-inbox '("INBOX")
S>       nnimap-split-predicate "UNSEEN"
S>       nnimap-split-rule 'nnimap-split-fancy
S>       nnimap-split-fancy
S>       '(| (from ".*sebmags.homelinux.org.*" "System")
S> 	  (: spam-split)
S> 	  "INBOX"))
S> (spam-initialize)

S> but invariably all messages in INBOX are obliterated completely from the
S> IMAP server.  Any help would be very much appreciated.

I use many rules, predicated on the server name.  I included just one
example but they are all very similar.

(require 'gnus-registry)
(gnus-registry-initialize)

(require spam)
(spam-initialize 'spam-use-regex-headers 'spam-use-BBDB)

(setq
 nnimap-split-rule '(("lifelogs" ("INBOX" nnimap-courier-lifelogs-split-fancy)))

 nnimap-courier-lifelogs-split-fancy '(|
                      (: gnus-registry-split-fancy-with-parent)
                      (: spam-split 'spam-use-regex-headers)
;;; custom rules go here
                      (: spam-split)
                      ;; default mailbox
                      "INBOX.mail")
)

My full configuration is huge so I won't include the whole thing.  I'd
suggest using (: debug) as a rule and see if it gets triggered.  If it
doesn't, you'll know that your split rules are not getting evaluated.

Ted

      parent reply	other threads:[~2009-12-01 21:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-19  5:11 harry meyers
2006-06-19 14:55 ` Ted Zlatanov
2006-06-21  5:33   ` harry meyers
2009-11-19  3:56     ` Seb
     [not found]     ` <mailman.11008.1258603022.2239.info-gnus-english@gnu.org>
2009-12-01 21:02       ` Ted Zlatanov [this message]

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=87ws16l86e.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=info-gnus-english@gnu.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).