procmail
[Top] [All Lists]

Re: Recipe for Blocking VBS Files with Procmail

2000-11-30 13:38:00
Stephen Mawdsley:
Greetings All,

I am trying to develop a recipe that blocks messages containing .vbs 
attachments from being delivered to users on the system.  The recipe that I 
have to date works well with all incoming mail, except for attachments sent 
with Microsoft Outlook.  The reason for this appears to be in the way 
Outlook formats MIME attachment headers compared with other mail clients 
(header example follows).

Outlook MIME Attachment Header
=====================================
Content-Type: application/octet-stream;
         name="myvbsfile.vbs"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
      filename="myvbsfile.vbs"

Other Mail Client MIME Attachment Header
=====================================
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: attachment; filename="myvbsfile.vbs"

<snip>

Hi Stephen,

I would recommend piping it through formail -c.

take care,

Cory

Attachment: pgpFAikzJuq78.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>