hi all, i have been working on a new spam package, i
have begun coding of this package but would appreciate
your feedback and guidance regarding its design.
first thing we did was decide to scrap acs-mail in favor of acs-mail-lite
(which should really be called mail-queue, since that is all it is). acs-mail
is too heavy weight and i would have had to hack it to do what we
needed.
we decided to make spam itself a lot more lightweight. it does adds two
pieces of functionality though: it is scoped, and it performs variable
interpolation in the subject and body of the message.
it is not much more than that right now. it does simple scheduling of
spam messages and at the appropriate time a sweeper proc pulls them
out, performs the interpolation for each recepient and stuffs them in the
acs-mail-lite queue. the spam system requires that the spam query contain
an 'email' column. that, and any additional columns will be interpolated into
the subject and body of the email. so for example if your spam query is:
select parties.email,
foo.bar
from parties,
foo
where parties.party_id = foo.user_id
then the system will look for the strings {email} and {bar} and replace
them with the values of those columns respectively for each row returned.
you can also select from_addr, subject, and message in the spam query
and these values will be used instead of the spam supplied from_addr,
subject, and message. this allows you to completely customize the sender,
subject, and message on a per recepient basis.