Skip to Content.
Sympa Menu

devel - [sympa-dev] rejecting attachments

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: Thomas Berry <address@concealed>
  • To: sympa dev <address@concealed>
  • Subject: [sympa-dev] rejecting attachments
  • Date: Wed, 04 Jun 2008 08:16:13 -0700

I can not find an effective means of rejecting attachments. The documented method does not detect multi-part encoded messages. Here's what I thought should work:

match([msg_body],/Content-Type: application/i) smtp,smime,md5 ->
reject(reason='send_reject_attach')



But, this appears to be ineffective in detecting and rejecting a messages whose body contains:

--------------010508030103050504010806
Content-Type: application/pdf;
name="Store-54-Reference-Guide.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="Store-54-Reference-Guide.pdf"


Any suggestions?



Archive powered by MHonArc 2.6.19+.

Top of Page