Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* nnimap split rules
@ 2006-06-19  5:11 harry meyers
  2006-06-19 14:55 ` Ted Zlatanov
  0 siblings, 1 reply; 5+ messages in thread
From: harry meyers @ 2006-06-19  5:11 UTC (permalink / raw)


I had defined some split rules which splitted my mail from my Inbox
folder properly but stopped working after I added a split rule for spam
with bogofilter. After I tried some different settings now the
according lines look like this:

 (setq spam-use-bogofilter t)
 (require 'spam)

(setq
 nnimap-split-rule 'nnimap-split-fancy
 nnimap-split-inbox "INBOX"
 nnimap-split-fancy '(|
		        (: spam-split)
			("Texte/theater"        "Subject:.*ed harry")
			("Texte/mantra"        "Subject:.*mantra")
			("daily"                    "Subject:.*daily")
			("config"	           "Subject:.*config")
		      ;; default mailbox
		      "INBOX"))

(setq gnus-spam-process-destinations
      '((".*" "SPAM")))

(setq spam-split-group "SPAM")

As far as I can see spam split works but not splitting mail from my
inbox

harry

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

* Re: nnimap split rules
  2006-06-19  5:11 nnimap split rules harry meyers
@ 2006-06-19 14:55 ` Ted Zlatanov
  2006-06-21  5:33   ` harry meyers
  0 siblings, 1 reply; 5+ messages in thread
From: Ted Zlatanov @ 2006-06-19 14:55 UTC (permalink / raw)


On 19 Jun 2006, late@literaturlatenight.de wrote:

> I had defined some split rules which splitted my mail from my Inbox
> folder properly but stopped working after I added a split rule for spam
> with bogofilter. After I tried some different settings now the
> according lines look like this:
>
> (setq spam-use-bogofilter t)
> (require 'spam)
>
> (setq
> nnimap-split-rule 'nnimap-split-fancy
> nnimap-split-inbox "INBOX"
> nnimap-split-fancy '(|
> 		        (: spam-split)
> 			("Texte/theater"        "Subject:.*ed harry")
> 			("Texte/mantra"        "Subject:.*mantra")
> 			("daily"                    "Subject:.*daily")
> 			("config"	           "Subject:.*config")
> 		      ;; default mailbox
> 		      "INBOX"))
>
> (setq gnus-spam-process-destinations
> '((".*" "SPAM")))
>
> (setq spam-split-group "SPAM")
>
> As far as I can see spam split works but not splitting mail from my
> inbox

1) I think your fancy split rules are wrong.  They look like simple
   split rules.  Look at the nnimap-split-fancy docs.

2) gnus-spam-process-destination doesn't affect splitting, it matters
   when you exit a group and you have articles in it that are marked
   as spam.  They will be processed by the spam backends and then
   sent to the spam-process-destination ("SPAM" for all groups in your
   setup).  There's a similar process for non-spam (ham) articles.

Hope this helps
Ted

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

* Re: nnimap split rules
  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>
  0 siblings, 2 replies; 5+ messages in thread
From: harry meyers @ 2006-06-21  5:33 UTC (permalink / raw)



Ted Zlatanov schrieb:

> 1) I think your fancy split rules are wrong.  They look like simple
>    split rules.  Look at the nnimap-split-fancy docs.
>
> 2) gnus-spam-process-destination doesn't affect splitting, it matters
>    when you exit a group and you have articles in it that are marked
>    as spam.  They will be processed by the spam backends and then
>    sent to the spam-process-destination ("SPAM" for all groups in your
>    setup).  There's a similar process for non-spam (ham) articles.
>
> Hope this helps
> Ted
Yes, thans, that helped. As spam splitting with bogofilter requires
fancy split rules I changed that in my gnus but did not change the
other splitting rules to fancy split rules. Now I did this, everything
works properly.
harry

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

* Re: nnimap split rules
  2006-06-21  5:33   ` harry meyers
@ 2009-11-19  3:56     ` Seb
       [not found]     ` <mailman.11008.1258603022.2239.info-gnus-english@gnu.org>
  1 sibling, 0 replies; 5+ messages in thread
From: Seb @ 2009-11-19  3:56 UTC (permalink / raw)
  To: info-gnus-english

On 20 Jun 2006 22:33:53 -0700,
"harry meyers" <late@literaturlatenight.de> wrote:

> Ted Zlatanov schrieb:

>> 1) I think your fancy split rules are wrong.  They look like simple
>> split rules.  Look at the nnimap-split-fancy docs.

>> 2) gnus-spam-process-destination doesn't affect splitting, it matters
>> when you exit a group and you have articles in it that are marked as
>> spam.  They will be processed by the spam backends and then sent to
>> the spam-process-destination ("SPAM" for all groups in your setup).
>> There's a similar process for non-spam (ham) articles.

>> Hope this helps Ted
> Yes, thans, that helped. As spam splitting with bogofilter requires
> fancy split rules I changed that in my gnus but did not change the
> other splitting rules to fancy split rules. Now I did this, everything
> works properly.  harry

Can someone please show a working example of `nnimap-split-fancy' with
`spam-split' using bogofilter?  I have:

---<--------------------cut here---------------start------------------->---
(require 'spam)
(setq spam-split-group "SPAM"
      spam-use-bogofilter t
      nnimap-split-inbox '("INBOX")
      nnimap-split-predicate "UNSEEN"
      nnimap-split-rule 'nnimap-split-fancy
      nnimap-split-fancy
      '(| (from ".*sebmags.homelinux.org.*" "System")
	  (: spam-split)
	  "INBOX"))
(spam-initialize)
---<--------------------cut here---------------end--------------------->---

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

Cheers,

-- 
Seb

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

* Re: nnimap split rules
       [not found]     ` <mailman.11008.1258603022.2239.info-gnus-english@gnu.org>
@ 2009-12-01 21:02       ` Ted Zlatanov
  0 siblings, 0 replies; 5+ messages in thread
From: Ted Zlatanov @ 2009-12-01 21:02 UTC (permalink / raw)
  To: info-gnus-english

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

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

end of thread, other threads:[~2009-12-01 21:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-19  5:11 nnimap split rules 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 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).