[Mimedefang] Error with attaching new entities.

Jeff Heinen jeff.heinen at inherent.com
Tue Jan 22 16:25:28 EST 2002


As part of filter_end, I added this little goodie, an attempt to add the
SpamAssassin report to every message in a way that doesn't make Outlook mess
itself. (Which is why I can't use append_boilerplate).

#        Add report as new MIME attachment.

        $entity->attach(Type           => "text/plain",
                       Encoding        => "quoted-printable",
                       Filename        => "SAreport.txt",
                       Disposition     => "attachment",
                       Data            => $report);

       $Changed=1;


However, when I do, MD dies a terrible horrible death, as logged below.


Jan 22 12:36:39 drought mimedefang-multiplexor: Slave 0 stderr: can't build
entity: no body, and not multipart
Jan 22 12:36:39 drought mimedefang-multiplexor:
handleSlaveReceivedAnswer(0): Timeout or error: Flag = 2
Jan 22 12:36:39 drought mimedefang-multiplexor: Reap: Idle slave 0 (pid
27544) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY)
Jan 22 12:36:39 drought mimedefang[27566]: Error from multiplexor: ERR
Filter timed out


The confusing part is, this was working very well with 2.3B1, but died after
I upgraded past b2. I had thought MIME::Tools would do the conversion to
multiparts, and I have no idea why it would think there is no body. The rest
of the filter does very little except for adding headers with
action_add_header.


Has anyone else seen any problems with this type of attaching? Anyone have
an idea where I should look?



More information about the MIMEDefang mailing list