Joe Zitnik wrote:
> I'd like to write a custom rule that would allow e-mail in from users
> that have an attachment with a weird in house extension like foo.bar . 
> How would I do this?

You'd need to use a full rule, as body and rawbody won't be able to see the mime
section headers.

You'll want to have the rule target headers like this:
Content-Disposition: attachment; filename="EVI-Attachment-Warning.txt"

Sometimes, these headers wrap like this one:

Content-Disposition: attachment;
        filename="00_non_deliverable.cf"

A full rule won't cover the linewrap, so you need to include an optional \s or .
 after the attachment part.

So something like this should work:

full L_FOO_BAR          /Content-Disposition: attachment;.{0,30}
filename=.{0,50}\.foo\.bar/i



Some files can have an inline disposition, but I doubt your in-house extension
does. That's usually used for text, html and/or graphics that a mail client can
render.

Reply via email to