in reply to Handling Incoming Mail
I'm not an expert when it comes to Perl by any means, but I'd personally let the mail go into a mailbox and parse it from there, rather than grab it from STDIN.
Let the mail delivery system worry about getting the messages into the right place, and more importantly, written to the filesystem - so that you've got a chance of recovering some information if something goes wrong (i.e. power outage, OS crash).
Once you're sure that you successfully inserted the information into your database, then you can delete the message from the mail spool.
As far as I can make out, your current setup is
In my head you could let the mailsystem handle the first 2 steps - I'd start by slurping the mailspool into a parser.
Baz.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Handling Incoming Mail
by jbert (Priest) on Dec 11, 2001 at 16:42 UTC |