> From: Barton L. Phillips
> Sent: Saturday, January 17, 2004 9:28 AM
> 
> I am using Mozilla and when I delete a message it is marked:
> Status: RO
> X-Status: D
> 
> When I run sa-learn the deleted messages are learned. I can "compact 
> this folder" but I sometimes forget. Is there a way to have sa-learn not 
> look at X-Status: D messages, or do I have to write a perl front end?


You could use formail/procmail,

formail -s procmail sa_learn.rc < mbox | sa-learn

where sa_learn.rc might appear as follows:


LOGFILE=$HOME/sa_learn.log # While debugging
VERBOSE=yes                # ""    ""
LOGABSTRACT=yes            # ""    ""
SENDMAIL=                  # Safety first
DEFAULT=|                  # deliver to stdout by default 

#
# Kill deleted messages
#
:0
* ^X-Satus:.*D
/dev/null




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to