<br><br><div class="gmail_quote">2009/9/21 Alan Hodgson <span dir="ltr"><<a href="mailto:ahodgson@simkin.ca">ahodgson@simkin.ca</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Sunday 20 September 2009, "CSB" <<a href="mailto:kjcsb@xnet.co.nz">kjcsb@xnet.co.nz</a>> wrote:<br>
> We wish to do the following:<br>
> 1. receive an email with an attachment<br>
> 2. process the email body to get some information from it<br>
> 3. send an outbound email to an email address based on the information<br>
> derived from step 2. The email will include the attachment received in<br>
> step 1<br>
><br>
> I'm not sure where to start with this one so any suggestions would be<br>
> appreciated.<br>
<br>
</div>If it's a minor amount of processing, you can just pipe it to a script from<br>
procmail or even straight from the MTA. I don't really like that mechanism<br>
though - too prone to produce bounces in the case of long processing times<br>
or errors. It's better to dump them in a Maildir and use it as a queue for<br>
a polling script.<br>
<br>
Perl in particular has a bunch of libraries available to correctly parse<br>
MIME messages and extract addresses and attachments and stuff. Don't write<br>
your own parser.<br></blockquote><div><br>talkin' about perl, i remember once i used something called milter for things like this . <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<font color="#888888"><br>
--<br>
"No animals were harmed in the recording of this episode. We tried but that<br>
damn monkey was just too fast."<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
CentOS mailing list<br>
<a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Linux counter #213090<br>