-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Theo Van Dinter writes:
> 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.

Theo -- it might be worth adding a new pair of hashes to the $permsgstatus
object that are also used, so that the global config doesn't have to be
polluted like this.

(Conceivably in a future release we might have a situation where
the same conf obj is being used by 2 scanners.)

- --j.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Exmh CVS

iD8DBQFAorUSQTcbUG5Y7woRAgW+AJ48OryZ6SZC1c9NVULdHF9UB2yjgwCglz0e
kdQSIzKE6DVHFb03swpAJ+I=
=0eLW
-----END PGP SIGNATURE-----

Reply via email to