Gnus development mailing list
 help / color / mirror / Atom feed
From: Martin Monsorno <monsorno-usenet@exolution.de>
Cc: ding@gnus.org
Subject: Re: problem with bbdb whitelist filtering
Date: Fri, 23 Jan 2004 16:07:03 +0100	[thread overview]
Message-ID: <200401231507.i0NF73FJ029804@loki.exolution.lan> (raw)
In-Reply-To: <4noesvua0n.fsf@collins.bwh.harvard.edu> (Ted Zlatanov's message of "Thu, 22 Jan 2004 13:13:28 -0500")

Ted Zlatanov <tzz@lifelogs.com> writes:

> On Thu, 22 Jan 2004, monsorno-nospam@gmx.de wrote:
>
>> I expected spam.el now to do the following: for every mail in the
>> list if the sender is in the BBDB, add a header 'X-Spammer: white:
>> From: Pit <peter.paul@mary.de>' if not, do nothing I don't want
>> spam.el to do anything more with the mail.  No more extraordinary
>> intelligent spam checks, no moving of mails.  Just insert the
>> header, and let my mail splitting go further.  - The following split
>> rules should then use the inserted header to move the messages to
>> several groups depending on several rules, and the messages without
>> this header to different groups.
>
> spam-split does not currently modify messages.  I don't plan to add
> that capability myself since I don't need it, and it may break spam
> autodetection in read-only groups.

Aargh, uh, sorry!  I analyzed my mail after enabling spam.el, and I
noticed the described X-Spammer header in the good mails.  So I
thought, spam.el inserts this after checkgin.  I'm really sorry for
this!

Talking to our sysadmin, he told me, that the spam checking software
on our mail server inserts these headers, but not to all mails, which
is another problem, but not about Gnus ...

>
> You can write your own wrapper around spam-split which sets
> spam-split-symbolic-return to t.  That will return 'spam if the
> message is believed to be spam; you can then do what you want with
> the message.  In particular in your case, you can do (assuming your
> function has been called from the splitting rules):
>
> (let* ((spam-split-symbolic-return t)
>        (ret (spam-split 'spam-use-BBDB-exclusive)))
>  (when (eq ret 'spam)
>    ;; insert header maybe
>   ))
>

I will think about this solution, but before this, I should re-read
some sections of the lisp-manual ...  :-/

>> 1) Is it possible to do the mail-splitting described?  
>
> I think I'll need to see your current rules to tell you, and the exact
> sequence you want to happen.  Maybe it can be done.

OK, then, the splitting rules (the current, wrong ones) are this:

,----
| (setq nnmail-split-methods 'nnmail-split-fancy
|       nnmail-split-fancy '(|
| ("Gnus-Warning" ".*duplicate.*" "duplicates")
| (to "ding@\\(gnus\\.org\\|hpc.uh.edu\\)" "gnus-mailing-list") 
| (: spam-split)
| ("X-Spammer" "white" (|
|   (to "Martin.Monsorno.*@exolution\\.de" "work")
|   (to "monsorno@gmx\\.de" "private")
|   ))
| (to "Martin.Monsorno.*@exolution\\.de" "work-spam")
| (to "monsorno@gmx\\.de" "private-spam")
| "unsplitted-mail"
| ))
`----

So I want to do spam-checking after processing some
mailing-list-messages.  What I want to achieve is, that spam sent to
my account at work should go to a different folder than spam sent to
my private address.  Is this possible?  I looked into the manual
again, but it doesn't seem so.

>
>> I.e. does spam.el only inserts a header marking it as white, and let
>> my following split rules do the rest?
>
> No, and I'm not sure why you think it does.  It doesn't say that in
> the manual, does it?  Should it be mentioned specifically?

Maybe, just a word, that spam.el 'does not modify the checked message
in any way'.  This would maybe help make things more clear to people
like me, ahem.  

Sorry, again.  And thanks for your help,

-- 
Martin



  reply	other threads:[~2004-01-23 15:07 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-12  9:35 Martin Monsorno
2004-01-12 21:06 ` Ted Zlatanov
2004-01-13  8:45   ` Martin Monsorno
2004-01-20 23:58     ` Ted Zlatanov
2004-01-22  9:53       ` Martin Monsorno
2004-01-22 18:13         ` Ted Zlatanov
2004-01-23 15:07           ` Martin Monsorno [this message]
2004-01-23 21:20             ` Ted Zlatanov
2004-01-27 10:22             ` Kai Grossjohann
2004-01-27 19:55               ` Ted Zlatanov
2004-02-02 12:22                 ` Martin Monsorno
2004-02-02 13:12                   ` Kai Grossjohann
2004-02-02 20:02                   ` Ted Zlatanov
2004-02-06 13:31                     ` Martin Monsorno
2004-02-09 21:10                       ` Ted Zlatanov
2004-02-27 14:37                         ` monsorno-nospam
2004-03-04 18:50                           ` Ted Zlatanov

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=200401231507.i0NF73FJ029804@loki.exolution.lan \
    --to=monsorno-usenet@exolution.de \
    --cc=ding@gnus.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).