Mailing List Archive

Having SA-Learn disregard the new forwarded header info.
Hello all,

In my current setup I cannot copy the entire message into another s/d for
sa-learning. I need to have the capability to forward or forward as an
attachment the message to a mailbox, have the mail downloaded a new folder
and let sa-learn the mail as spam or ham appropriately.

I know the problem with the header info getting changed when a message is
forwarded. I am hoping that there is a proper way to maybe forward the
message as an attachment so the rfc-822 att is the actual entire original
message and have sa-learn read ONLY the rfc-822 attachment as the message to
learn from. Is there a best way to do this to force sa-learn to not learn
from the new headers and only learn from the attachment?

Thanks for all the help.
Re: Having SA-Learn disregard the new forwarded header info. [ In reply to ]
I have a script that extracts the attachment and runs sa-learn on just
the attachment. While this might not be the best way to do the job, it
works well enough for me.

script source: http://vega.perigee.net/salearn.txt

That sed regex in the script may not work for other mail clients as I
only use Mozilla and made sure it works with that.

Ryan Moore
----------
Perigee.net Corporation
704-849-8355 (sales)
704-849-8017 (tech)
www.perigee.net

Kevin Roberts wrote:
> Hello all,
>
> In my current setup I cannot copy the entire message into another s/d for
> sa-learning. I need to have the capability to forward or forward as an
> attachment the message to a mailbox, have the mail downloaded a new folder
> and let sa-learn the mail as spam or ham appropriately.
>
> I know the problem with the header info getting changed when a message is
> forwarded. I am hoping that there is a proper way to maybe forward the
> message as an attachment so the rfc-822 att is the actual entire original
> message and have sa-learn read ONLY the rfc-822 attachment as the message to
> learn from. Is there a best way to do this to force sa-learn to not learn
> from the new headers and only learn from the attachment?
>
> Thanks for all the help.
>
>
>
Re: Having SA-Learn disregard the new forwarded header info. [ In reply to ]
The link did not work for me to take a look at the custom script you were
describing. Thanks for the info though.

Does anyone else know of a way to do it directly in sa or local.cf?

Thanks for any info that someone has regarding making this happen the way I
am describing.

Thanks





----- Original Message -----
From: "Ryan Moore" <ryan.moore@perigee.net>
To: "Kevin Roberts" <kroberts@avsia.com>; "Spamassassin-Users"
<spamassassin-users@incubator.apache.org>
Sent: Tuesday, February 10, 2004 12:39 PM
Subject: Re: Having SA-Learn disregard the new forwarded header info.


I have a script that extracts the attachment and runs sa-learn on just
the attachment. While this might not be the best way to do the job, it
works well enough for me.

script source: http://vega.perigee.net/salearn.txt

That sed regex in the script may not work for other mail clients as I
only use Mozilla and made sure it works with that.

Ryan Moore
----------
Perigee.net Corporation
704-849-8355 (sales)
704-849-8017 (tech)
www.perigee.net

Kevin Roberts wrote:
> Hello all,
>
> In my current setup I cannot copy the entire message into another s/d for
> sa-learning. I need to have the capability to forward or forward as an
> attachment the message to a mailbox, have the mail downloaded a new folder
> and let sa-learn the mail as spam or ham appropriately.
>
> I know the problem with the header info getting changed when a message is
> forwarded. I am hoping that there is a proper way to maybe forward the
> message as an attachment so the rfc-822 att is the actual entire original
> message and have sa-learn read ONLY the rfc-822 attachment as the message
to
> learn from. Is there a best way to do this to force sa-learn to not learn
> from the new headers and only learn from the attachment?
>
> Thanks for all the help.
>
>
>
Re: Having SA-Learn disregard the new forwarded header info. [ In reply to ]
Doh I forgot that host is firewalled off from the public, sorry. Try:

http://perigee.net/salearn.txt

Ryan Moore
----------
Perigee.net Corporation
704-849-8355 (sales)
704-849-8017 (tech)
www.perigee.net



Kevin Roberts wrote:
> The link did not work for me to take a look at the custom script you were
> describing. Thanks for the info though.
>
> Does anyone else know of a way to do it directly in sa or local.cf?
>
> Thanks for any info that someone has regarding making this happen the way I
> am describing.
>
> Thanks
>
>
>
>
>
> ----- Original Message -----
> From: "Ryan Moore" <ryan.moore@perigee.net>
> To: "Kevin Roberts" <kroberts@avsia.com>; "Spamassassin-Users"
> <spamassassin-users@incubator.apache.org>
> Sent: Tuesday, February 10, 2004 12:39 PM
> Subject: Re: Having SA-Learn disregard the new forwarded header info.
>
>
> I have a script that extracts the attachment and runs sa-learn on just
> the attachment. While this might not be the best way to do the job, it
> works well enough for me.
>
> script source: http://vega.perigee.net/salearn.txt
>
> That sed regex in the script may not work for other mail clients as I
> only use Mozilla and made sure it works with that.
>
> Ryan Moore
> ----------
> Perigee.net Corporation
> 704-849-8355 (sales)
> 704-849-8017 (tech)
> www.perigee.net
>
> Kevin Roberts wrote:
>
>>Hello all,
>>
>>In my current setup I cannot copy the entire message into another s/d for
>>sa-learning. I need to have the capability to forward or forward as an
>>attachment the message to a mailbox, have the mail downloaded a new folder
>>and let sa-learn the mail as spam or ham appropriately.
>>
>>I know the problem with the header info getting changed when a message is
>>forwarded. I am hoping that there is a proper way to maybe forward the
>>message as an attachment so the rfc-822 att is the actual entire original
>>message and have sa-learn read ONLY the rfc-822 attachment as the message
>
> to
>
>>learn from. Is there a best way to do this to force sa-learn to not learn
>>from the new headers and only learn from the attachment?
>>
>>Thanks for all the help.
>>
>>