On 20/04/2012 06:16, Odhiambo Washington wrote:
On Thu, Apr 19, 2012 at 09:55, Jan-Piet Mens<[email protected]> 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.
-JP
Procmail would be a lot easier. One global rule and voila!
Or you could "capture" you files in the MIME ACL while they are unpacked
for you and identified in:
/var/spool/exim/scan/...
and just trap the sender address and content type and call a bit of PERL
to do the dirty work, or if your requirement is particularly simple and
you know the sender you can just use:
decode = <filename/path>
Mike
--
## 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/