Re: [exim] determine if a message has an atatchment

Top Page
Delete this message
Reply to this message
Author: Jeremy Harris
Date:  
To: exim-users
Subject: Re: [exim] determine if a message has an atatchment
On 09/10/14 11:38, Oliver Howe wrote:
> Is it possible to determine whether or not a message has a PDF file
> attached?


Have a read of:

http://exim.org/exim-html-current/doc/html/spec_html/ch-content_scanning_at_acl_time.html#SECTscanmimepart

>
> I'd like to do this within a system filter and then take action (such as
> save the message to an archive directory) if the message contains such a
> file.


Possibly setting some marker in ACL for detected messages - a header or
an acl_m variable, checked in routing to set an alternate (or duplicate)
file-delivery?
--
Cheers,
Jeremy