by josh » Tue Oct 21, 2003 3:37 pm
We had hoped to wrap the sg code in some standardization and at some point make a graceful entry to CPAN with everything. Amit researched it and found that Mail::Audit is about the most widely used set of libraries -- spamassassin uses it, for example. All info we've seen since then has tended to confirm this (I think).
Beyond that, my code is generally ugly, but my "parsing" code is really ugly. It happens to be more effective than M::A within our current list of problem scenarios only because I made it even uglier to handle the one-off situation we ran into with About.com
Another impetus was to use SMTP to connect straight to a mailserver to resend the mail instead of invoking command-line sendmail. I do have some socket code lying around that we could have used, but again here, I think we're going for standardization.
One approach to this would be to modularize the code to the point where we could plug in the parsing and sending functions and use the home-grown code or the M::A code via configuration. Doing that without "putting on weight" could be a challenge, though.