On Fri, Aug 1, 2008 at 7:03 PM, Tony Finch <[EMAIL PROTECTED]> wrote:
> On Fri, 1 Aug 2008, Tomas Merlin wrote:
>>
>> I'm trying to have a rule for exim to do the following for all
>> messages send to a particular address (say [EMAIL PROTECTED]):
>>   - check if the email has a picture attachment
>
> in acl_smtp_mime write
>
>  warn
>    condition = ${if match{$mime_filename}{[.](jpg|gif|png)\$} }
>    set acl_m_IMG = true
>
>>   - reject if it doesn't and send an email to the sender explaining
>> the rejection
>
> in acl_smtp_data write
>
>  deny
>    message = Your message did not have an image attached
>  ! condition = $acl_m_IMG

You will need to rethink this further, probably include a further
condition which checks the mail was actually sent to
[EMAIL PROTECTED]

-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

"Oh My God! They killed init! You Bastards!"
 --from a /. post

-- 
## List details at http://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/

Reply via email to