|
|
| XP is just a number | |
| PerlMonks |
Re^3: Simple (but robust) email server (receiver)by skx (Parson) |
| on Dec 17, 2008 at 19:23 UTC ( #731028=note: print w/ replies, xml ) | Need Help?? |
|
I don't maintain a database handle throughout the transaction - instead I use the connection object to make notes as the SMTP transaction is completed. e.g.
Then I have a series of plugins which do different things at the last step, either forward the message or reject it, but archive a searchable copy for the recipients benefit. Here's a simplified version of the reject + archive plugin:
(Actually this is a polite fiction. I actually archive messages to local disk, if they were to be rejected, then later rsync them to a central location - and import them to MySQL there.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||