[exim] Checking attachments

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Craig Jackson
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [exim] Checking attachments
Hi,

I use exim 4.6 with exiscan to check certain attachments. I notice that
sometimes an email causes my acl not to see the attachment when it
should. Does anyone have a bullet-proof way to check for attachments,
for example jpg? Below is my acl.

Thanks.
Craig


# Quarantine media greater than 1.5 MB (OR 256kb if sender is in the
media_senders table)

warn    condition = ${if or { { >{$message_size}{1536k}} \
    { and { { >{$message_size}{128k}}{ eq{${lookup
mysql{MYSQL_BIGSENDERS}}}\
    {$sender_address}}} }}{1}{0}}
       condition = ${if or { \
            { match{${lc:$mime_filename}}\

    
{\N^(?>.*)(?<=wma|jpg|jpeg|pps|ppt|gif|png|wmv|mpg|mp3|mpeg|avi|wav|bmp|
mov|asf|asx)\N}} \
            { match{$mime_content_type}\

    
{\N^(?>.*)(?<=wma|jpg|jpeg|pps|ppt|gif|png|wmv|mpg|mp3|mpeg|avi|wav|bmp|
mov|asf|asx)\N}} \
                }{1}{0}}
        set acl_m7 = 1 


Does not catch this type of mime description. Maybe I made a typo?:

------_=_NextPart_002_01C722DB.54957A22--

------_=_NextPart_001_01C722DB.54957A22
Content-Type: image/gif;
    name="ATT390607.gif"
Content-Transfer-Encoding: base64
Content-ID: <002c01c72201$24f5d1f0$0500a8c0@mainbox>
Content-Description: ATT390607.gif
Content-Location: ATT390607.gif


PICTURE...