Jeremy Fairbrass writes:
> Hi all,
> I have a question about the MIMEHeader plugin: if I have multiple mimeheader 
> rules, are they all checked against the same part in a multipart message?
> 
> So let me give an example:
> 
> Let's say an email has 2 separate mime header sections (perhaps one is TXT 
> and the other is HTML, or perhap there are 2 file attachments, or whatever). 
> They might look like this:
> 
> ------=_NextPart_000_0062_01C7099B.069AFD30
> Content-Type: image/gif;
>  name="Blank Bkgrd.gif"
> Content-Transfer-Encoding: base64
> 
> ------=_NextPart_001_0063_01C7099B.069AFD30
> Content-Type: text/html;
>  charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
> 
> 
> Then let's say I have a couple of mimeheader rules as follows:
> 
> mimeheader  __RULE1  Content-Type =~ /image\/gif/
> mimeheader  __RULE2  Content-Transfer-Encoding =~ /quoted-printable/
> meta  MY_META_RULE  (RULE1 && RULE2)
> 
> My question is, will the meta rule trigger, or not? Because as you can see, 
> only the first mime header section contains Content-Type: image/gif, and 
> only the second mime header section contains Content-Transfer-Encoding: 
> quoted-printable. So are my two mimeheader rules being run against each 
> header section separately from each other, or are they only run against the 
> header sections together, and thus BOTH must fire on the SAME header section 
> in order for the meta rule to work??

the former.

Reply via email to