Hi folks,

I'm looking into hooking the Mail::SpamAssassin module into a perl
processor for a couple of web forms - contact us, comments form, and
publish an article form (open publishing).

The main barrier seems to be the need for a message format rather than
just a plain text body.

I tried two approaces:

1) I tried just passing the body text to SA but this triggers a load
of missing header rules.

2) I tried to 'spoof' the headers to get SA to process each post like
it's a normal mail, but found my spoof headers caused various issues
as well not least long delays - I'm guessing while the spoof email
domais (always the same) are checked via the network.

Also, I probably need to disable a bunch of rules that aren't really
appropriate, e.g. looking up the sender email address since I'm just
using a dummy one anyway (except for the contact form).  Seems like
mainly the header rules would need to be disabled, and the body rules
given more weighting.  Is there an easy way to do this?

Alternatively, perhaps I should just identify particular rules that
are relevant and call the directly.  Is this possible?

Thanks for any help.

mike

Reply via email to