a) Do not put a filter in place for plain text.
b) Base your filters on headers with "Content-Type", "X-MS-Attachment", or "Content-Transfer-Encoding"
but it will still take a separate application or human to change the message format.
c) All filtered messages are sent to the list-owner if the filters are in the list.config, but to the majordomo-owner if they are global filters in the majordomo.cf.
Dan Liston
Sample filters
/^content-type:\s.*html/i
/^content-type:\s.*rich/i
/^content-type:\s.*multi/i
/^X-MS-Attachment:\s+winmail.dat/i
/^X-MS-Attachment/i
/^Content-Disposition:\s+attachment/i
/^Content-Transfer-Encoding:\s+base64/i
/^Content-Transfer-Encoding:\s+quoted-printable/i
/^Content-Type:\s+application/i
/^Content-Type:\s+text\/html/i
/^Content-Type:\s+multipart/i
END
John Miller wrote:
>
> > Could you be a bit more specific? Are you trying to verify
> > a message has an attachment or trying to prevent attachments
> > from being distributed to your list? The best way to
> > monitor anything about your list is to be the first subscriber.
>
> I'll throw in my specific need...basically want to be able to filter
> messages sent to the list and:
>
> a) If the message is plain text, pass the message through.
> b) If the message is MIME-encoded, and has a text/plain bodypart, rewrite
> the message as a plain text message using only the text/plain bodypart and
> send that to the list
> c) Bounce everything else to the list administrator
>
> John.
References:
|
|