On Tue, Jul 18, 2006 at 08:54:03AM -0500, Robert Nicholson wrote:
> Basically I'm processing archived mail thru spamassassin in an  
> attempt to weed out spam. In order to identify it as spam I will be  
> adding a header to the spam. so when I use "re_write" I get back a  
> Mail::SpamAssassin::Message but I then want to add my own header to  
> the message.
> 
>      #$mail->head->replace("X-Accept-Flag", "Spam");
> 
> I know SpamAssassin will add it's own headers but I want to add my  
> own in addition.

The only headers SA lets you add all start with "X-Spam-".  You can
add whatever ones you want, but the prefix is automatically added.
If you want to add/remove/replace other headers, you need to do it in
your own code.

> The rules my Mail client uses do not allow me to use regular  
> expressions which is why
> I need a reliable string that identifies that the mail was in fact  
> considered Spam.

Can you just use the default X-Spam-Flag?  It's value will be "YES"
if the message is considered spam (or "NO" if it isn't).

-- 
Randomly Generated Tagline:
"When I grow up, I want to be a principal or a caterpillar."
 
        --Ralph Wiggum
          The Principal and the Pauper (Episode 4F23)

Attachment: pgp6KsvJIblNn.pgp
Description: PGP signature

Reply via email to