[Mimedefang] Detecting content-type of message in filter_end
David F. Skoll
dfs at roaringpenguin.com
Mon Oct 25 22:05:40 EDT 2004
On Mon, 25 Oct 2004, Aleksandar Milivojevic wrote:
> I wanted to extend my mimedefang-filter to block disposition
> notifications (return receipts).
> if (lc($entity->head->get("content-type")) =~
> m+multipart/report.*disposition-notification+) {
> md_graphdefang_log('disposition-notification');
> return action_bounce("Disposition notifications not allowed");
> }
There's a bug in MIMEDefang; the rebuilt entry that gets passed to filter_end
is always of type multipart/mixed, multipart/alternative or multipart/digest.
The next release will fix this.
Regards,
David.
More information about the MIMEDefang
mailing list