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.
BTW, while we are at it. Is there a reason why $entity is not passed as an argument to filter_begin? It could be usefull if it was possible to do some checks on the message before it is modified by MIMEDefang. It would be more efficient if I don't need to wait until filter_end to do some simple checks.
-- Aleksandar Milivojevic <[EMAIL PROTECTED]> Pollard Banknote Limited Systems Administrator 1499 Buffalo Place Tel: (204) 474-2323 ext 276 Winnipeg, MB R3T 1L7 _______________________________________________ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang