[Mimedefang] Renaming attachments in multipart messages
mdamrose at elgin.edu
Wed Mar 14 10:34:01 EST 2007
> -----Original Message-----
> From: Karl Boyken
> The man page for mimedefang-filter advises against using
> action_defang inside filter_multipart. So, is there a way to
> rename attachments to multipart messages? Thanks.
All messages with attachments are multipart (unless it's uuencoded, but
that's another whole kettle of fish).
As an example: a typical message with attachment will be
The multipart/related body will have two parts - multipart/alternative
and the attachment.
The multipart/alternative body will have two parts - text/plain and
Mimedefang will call filter_multipart for the multipart/related and the
multipart/alternative, and will call filter for the text/plain,
text/html and the attachment.
You need to test in filter to see if this is an "attachment", and then
More information about the MIMEDefang