Glenn Terjesen wrote:
> Hi,
>
> What im trying to do:
>
> Add a url in spamassassin's "report" function.
> For example:
> ##
> clear_report_template
> report Spamassassin thinks this is spam
> report If you trust this email-address you can click on the link below.
> report http://www.whitelist.me/[EMAIL PROTECTED]
>
> where _EMAILSENDER is the original email sender.
> for example [EMAIL PROTECTED]
>
> Is there a variable i can use to insert the "from-email" ?

Assuming you're using SA 3.2.x, You could use the generic header
extraction tag to grab the contents of the From: header:

>From the Mail::SpamAssassin::Conf docs:

 _HEADER(NAME)_    includes the value of a message header.  value is the same
                   as is found for header rules (see elsewhere in this doc)


  However simply doing _HEADER(From)_ would extract the whole from
header, ie:

"Matt Kettler" <[EMAIL PROTECTED]>

So you want this instead, _HEADER(From:addr)_, which will give you just
the email address part:

[EMAIL PROTECTED]




Reply via email to