CSB wrote:
We wish to do the following:
- receive an email with an attachment
- process the email body to get some information from it
- send an outbound email to an email address based on the information
derived from step 2. The email will include the attachment received in step 1
I'm not sure where to start with this one so any suggestions would be appreciated.
Directing received email to a program can be done either with a sendmail alias that pipes to a program or a procmail recipe, depending on whether the address is a real system user or not.
If you want to program in perl, look at MIME::tools to parse the inbound copy's body and attachments and perhaps Mail::Sender to reassemble and re-send.