On Fri, 10 Oct 2003, [iso-8859-1] Luis Hernán Otegui wrote:

> Hi, does anyone have any ideas about how to create a shortcut in PINE to
> remove spam headers from a message? Also, it would be great if this shortcut
> could pipe the results to sa-learn, so the message could be learned either
> as ham or spam.

Make sure "enable-unix-pipe-cmd" is set in Pine's configuration, then you
can hit | to pipe it to whatever you want.  Write a bash script to do
something to it or whatever.  ...but like the others replied, sa-learn
will remove SA-related markup.

Piping a message from pine to this script below would remove any line
that starts with "X-Badheader:" and then dump the message into a file
named 'foo'.  Export it as raw to get all of the headers.

#!/bin/sh
cat - | grep -v "^X-Badheader:" > foo

So in your case, you might create a spam.sh, and a ham.sh, have them both
do something like above but instead of > foo, pipe the output to sa-learn.

  Jason

-- 
Jason Englander <[EMAIL PROTECTED]>
394F 7E02 C105 7268 777A  3F5A 0AC0 C618 0675 80CA



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to