Re: [exim] Mime ACL condition help...

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Dan_Mitton
日付:  
To: James Price
CC: exim-users, Dan_Mitton
題目: Re: [exim] Mime ACL condition help...
Does the $mime_content_type contain both parts? The doc says:

If the MIME part has a Content-Type: header, this variable contains its
value, lowercased, and without any options (like ?name? or ?charset?).

so I wasn't sure if the 'type=' part was included. Have you tried
something like:

deny    condition = ${if match {$mime_content_type}{^Content-Type: 
multipart/related;\n.*type="multipart/alternative";}{yes}{no}}




Sent by:        exim-users-bounces@???
To:     <Dan_Mitton@???>
cc:     exim-users@??? 
Subject:        Re: [exim] Mime ACL condition help...
LSN: Not Relevant
User Filed as: Not a Record


Content-Type: multipart/related;
      type="multipart/alternative";




This is the actual header fragment I grabbed. This is why I'm having
trouble with it I guess. Its not just one variable in Content-Type. It's
2
variables within that string separated by ;. If you look at almost any
image spam, it contains this content type. So maybe I should be looking
for
both within 1 string, rather than separately. I guess I'm not sure how to
do that.



Thanks,

James



_____

From: Dan_Mitton@??? [mailto:Dan_Mitton@Notes.YMP.GOV]
Sent: Thursday, April 05, 2007 10:50 AM
To: James Price
Cc: exim-users@???
Subject: Re: [exim] Mime ACL condition help...




It seems like matching the 'Content-Type:' part should be easy, but I'm
not
seeing how to get the 'type=' part. Do you have an example?

Thanks,

Dan



Sent by:        exim-users-bounces@??? 


To:        <exim-users@???> 
cc:         (bcc: Dan Mitton/YD/RWDOE) 
Subject:        [exim] Mime ACL condition help... 



LSN: Not Relevant
User Filed as: Not a Record


I need help looking for the following in the header:
Content-Type: multipart/related;
      type="multipart/alternative";


I've not been successful writing a condition statement that matches both.
I've been successful only matching 1 or the other. I want to match both.

Thanks,
James


--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/



--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/