....
 

Guardian Digital Inc. > InfoCenter > Mailing List Archives > Amavis

Amavis Mailing List Archive

From: Hans du Plooy (hansdp@newingtoncs.co.za)
Date: Fri Dec 17 2004 - 02:54:52 EST


Hello all,

I stuck with the problem that incorrectly tagged mail to a dedicated "spam"
and "non-spam" mailbox, now comes from the user, seeing as outlook strips out
pretty much every useful header. I went through the archives and came upon
a script (included below) posted by Ryan Moore on the spamassassin list.

Has anybody found an elegant solution for this problem? The clients are
outlook, and I've seen many a outlook break badly if you try to ad an imap
account to it, so I'm not keen on trying that (even though imap is the best
solution - proven in our office where we use kmail/evolution).

Thanks

http://h0b0.net/salearn.txt

#!/bin/bash
sed -e'/^Content-Type: message\/rfc822;/N;s/\n *name="\([^"]*\)"/\n
name="spamtmporig.eml"/' > /tmp/spamtmp.eml
cd /tmp
mkdir spamtmp
rm /tmp/spamtmp/* -f
cd spamtmp
mv ../spamtmp.eml .
cat spamtmp.eml | /usr/local/bin/ripmime -i - -d .
cat spamtmporig.eml | /usr/bin/sa-learn --spam

-- 
Kind regards
Hans du Plooy
Newington Consulting Services
hansdp at newingtoncs dot co dot za
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


[ About Guardian Digital ] - [ Press Center ] - [ Contact Us ] - [ System Activation ] - [ Reseller Info ] - [ Online Store ] - [ Site Map ]
Copyright (c) 2000 - 2004 Guardian Digital, Inc. Linux Lockbox and EnGarde are Trademarks of Guardian Digital, Inc.