Re: MIME Encapsulation Depth ?

Tom Kistner <[email protected]> Mon, 11 Apr 2005 14:01:51 +0200
Newsgroups gmane.mail.exim.exiscan.user
Message-ID <[email protected]>
Jerry Nicholls wrote:

> Is it possible with Exiscan to know how deeply nested an rfc-2822
> attachment (or any other MIME container) is within the ACL
> acl_smtp_mime ?

You can count using an ACL variable, like this (untested).

warn log_message = Current RFC822 attachment depth: $acl_m0
      condition = $mime_is_rfc822
      condition = ${if eq{$mime_part_count}{0}{1}{0}}
      set acl_m0 = ${eval:$acl_m0+1}

deny message = Suspected attachment loop.
      condition = ${if >{$acl_m0}{10}{1}{0}}


/tom