On 20/04/12 06:16, Odhiambo Washington wrote: >>> Has anyone ever used / configured Exim as an email server to receive >>> incoming e-mails, capture an attached file and then save the file off >>> somewhere in a directory? >> >> I recommend MailScanner [1] which, apart from a number of other useful >> tasks, has done that for me in the past. It's rather easy to integrate >> with Exim and documentation is pretty good. >> >> Otherwise a transport to a pipe with a custom made program ought to do >> the trick. >> > Procmail would be a lot easier. One global rule and voila!
I wrote a Perl script a while back which makes numerous modifications to incoming email, which can be called directly from an Exim transport_filter, procmail, or anything else which pipes an email to a script and gets a replacement email from that scripts output. Depending on your level of Perl foo, you might be able to glean some useful tips from it as it's pretty well commented: https://github.com/mikecardwell/gpgit/ https://raw.github.com/mikecardwell/gpgit/master/gpgit.pl It basically gpg encrypts email. I use it for encrypting all of my incoming email that isn't already encrypted. If you want to use inline encryption rather than PGP/MIME it does several lossy operations to try and flatten the email down to a single text part first. If it's multipart text/html and text/plain, it strips the HTML part (assuming the text part has at least some content). If it has any image attachments that are referred to from that HTML, it strips those too. -- Mike Cardwell https://grepular.com/ http://cardwellit.com/ OpenPGP Key 35BC AF1D 3AA2 1F84 3DC3 B0CF 70A5 F512 0018 461F XMPP OTR Key 8924 B06A 7917 AAF3 DBB1 BF1B 295C 3C78 3EF1 46B4
signature.asc
Description: OpenPGP digital signature
-- ## List details at https://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
