Filtering spam with SpamAssassin header

Brennan Stehling brennan at offwhite.net
Wed Aug 16 21:33:34 CEST 2006


But when procmail places the mail into a folder on the server will it show in the Junk folder via IMAP?

My guess would be a rule like...

:0: .spamassassin.lock
* ^X-Spam-Level:.*\*\*.*
user.brennan.INBOX.Junk

Is that close to what I need to do?

Brennan

On Wed, 16 Aug 2006 15:23:34 -0400, Mehmet Tolga Avcioglu <mehmet at activecom.net> wrote:
> 
> Yes. You could edit .procmailrc on a per user basis and have it do
> whatever you need based on the Header fields (X-Spam). I have not used
> procmail for some time now. I use maildrop and my .mailfilter looks
> something like below which Trashes anything with Spam-Level of 6 or more
> and puts anything with Spam-Level 4 or more into the Junk folder. Check
> procmail documentation.
> 
> SEVERITY="\*\*\*\*\*\*"
> if(/^X-Spam-Level: $SEVERITY/)
> {
> to "./Maildir/.Trash"
> }
> SEVERITY="\*\*\*\*"
> if(/^X-Spam-Level: $SEVERITY/)
> {
> to "./Maildir/.Junk"
> }
> 
> --
> Mehmet Tolga Avcioglu
> 
> Brennan Stehling wrote:
>> Can I even configure procmail to move potential spam into my IMAP Junk
> folder?  I have not seen how that can be done.
>>
>> Brennan
>>
>> On Wed, 16 Aug 2006 21:03:50 +0200, Michael Bueker <m.bueker at berlin.de>
> wrote:
>>> Brennan Stehling wrote:
>>>> I would like to adjust RoundCube to automatically place new mail into
>>> the Junk folder if it has a spam ranking from SpamAssassin.
>>>> [...]
>>>> Thoughts?
>>> IMHO, this is not Roundcube's task, but that of your MDA (procmail,
>>> maildrop, whichever).
>>>
>>> ~Mik
>>>
>>> --
>>> A: Why don't they just launch an arial attack?
>>> B: An _arial_ attack! For a moment I was worried it might be a
>>>     Times New Roman one!
>>> C: As long as they don't fight a war on two fonts...
>>> - seen on /.
>> --
>> Brennan Stehling
>> Offwhite.net LLC
>> brennan at offwhite.net
>>
>>
>>
--
Brennan Stehling
Offwhite.net LLC
brennan at offwhite.net





More information about the Dev mailing list