On Wed, May 12, 2004 at 11:57:40PM +0800, Yusuf Goolamabbas wrote:
> Hi, Can I add arbitrary headers from a plugin into a message 
> I tried doing the following
> 
> $permsgstatus->get_message()->header("X-Something", $value);
> 
> but that doesn't seem to do the trick

Yes, but you don't want to modify the message object -- it's read-only.
I'd have to look around to figure out the exact details, but you'd want to
add the custom headers to the conf->{headers_spam} and conf->{headers_ham}
arrays.  They'll then be added at rewrite time.

-- 
Randomly Generated Tagline:
It was almost, but not quite, entirely unlike tea.

Attachment: pgp04JmnUTAwW.pgp
Description: PGP signature

Reply via email to