Re: Receive, process and send email

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



CSB wrote:
> We wish to do the following:
> 1. receive an email with an attachment
> 2. process the email body to get some information from it
> 3. 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.

-- 
   Les Mikesell
    lesmikesell@xxxxxxxxx

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux