Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Splitting mail on SpamAssassin headers
@ 2004-03-19 12:19 Martin Christensen
  2004-03-20 13:03 ` Svend Tollak Munkejord
       [not found] ` <microsoft-free.877jxh0w2m.fsf@eicq.dnsalias.org>
  0 siblings, 2 replies; 3+ messages in thread
From: Martin Christensen @ 2004-03-19 12:19 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 862 bytes --]

Howdy!

I've tried for some time to figure out how to get Gnus to split mail
based on the X-Spam-Level header. These begin with a number of stars
in parentheses, e.g. "(***)" for a spam level of 3.

I'm using nnimap with fancy splitting. Not being sure whether or not
to doubly escape backslashes for escaping said stars, I've tried both
of following rules:

(setq nnimap-split-fancy
      '(|
;       ...
        ("X-Spam-Level" "\\*\\*+"       "INBOX.junk")
        ("X-Spam-Level" "\\\\*\\\\*+"   "INBOX.junk")
;       ...
        ))

I haven't been able to find anything about whether I need to do
something special to get Gnus to notice the X-Spam-Level header. Do I?
What else could I try to get this to work?

Martin

-- 
Home page:      http://www.cs.auc.dk/~factotum/
GPG public key: http://www.cs.auc.dk/~factotum/gpgkey.txt

[-- Attachment #2: Type: application/pgp-signature, Size: 235 bytes --]

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

* Re: Splitting mail on SpamAssassin headers
  2004-03-19 12:19 Splitting mail on SpamAssassin headers Martin Christensen
@ 2004-03-20 13:03 ` Svend Tollak Munkejord
       [not found] ` <microsoft-free.877jxh0w2m.fsf@eicq.dnsalias.org>
  1 sibling, 0 replies; 3+ messages in thread
From: Svend Tollak Munkejord @ 2004-03-20 13:03 UTC (permalink / raw)


Martin Christensen <factotum@cs.auc.dk> wrote:

> (setq nnimap-split-fancy
> '(|
> ;       ...
> ("X-Spam-Level" "\\*\\*+"       "INBOX.junk")
> ("X-Spam-Level" "\\\\*\\\\*+"   "INBOX.junk")
> ;       ...
> ))
>
> I haven't been able to find anything about whether I need to do
> something special to get Gnus to notice the X-Spam-Level header. Do I?
> What else could I try to get this to work?

What about this:

("X-Spam-Level" ".*\\*\\*.*" "INBOX.junk")

It works for me.

Regards,
-- 
Svend Tollak Munkejord 


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

* Re: Splitting mail on SpamAssassin headers
       [not found] ` <microsoft-free.877jxh0w2m.fsf@eicq.dnsalias.org>
@ 2004-03-20 20:19   ` Martin Christensen
  0 siblings, 0 replies; 3+ messages in thread
From: Martin Christensen @ 2004-03-20 20:19 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 356 bytes --]

>>>>> "SY" == Steve Youngs <sryoungs@bigpond.net.au> writes:
SY> How about...
SY>   ("X-Spam-Flag" "Yes" "INBOX.junk")
SY> and don't worry about X-Spam-Level at all.

It's a possibility, but I like the finer grained control.

Martin

-- 
Home page:      http://www.cs.auc.dk/~factotum/
GPG public key: http://www.cs.auc.dk/~factotum/gpgkey.txt

[-- Attachment #2: Type: application/pgp-signature, Size: 235 bytes --]

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

end of thread, other threads:[~2004-03-20 20:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-19 12:19 Splitting mail on SpamAssassin headers Martin Christensen
2004-03-20 13:03 ` Svend Tollak Munkejord
     [not found] ` <microsoft-free.877jxh0w2m.fsf@eicq.dnsalias.org>
2004-03-20 20:19   ` Martin Christensen

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