[rt-devel] RT::Template not unfolding long header lines

Bruce Campbell bruce_campbell at ripe.net
Sun Jan 20 13:00:49 EST 2002

On Sun, 20 Jan 2002, Jesse Vincent wrote:

> Ok. After looking at it harder myself, I think that was why I wasn't
> just applying that patch. I believe that what you'll see checked in is
> code that just uses MIME::Parser to do all this for us, as we should
> have had it in the first place. . (Though I need to make
> sure it deals properly with cases where there are no headers.)

Oh!  RT::Interface::Email ParseMIMEEntityFromSTDIN isn't calling
$head->unfold().  That *could* be making a difference.

After applying the patch below (and removing my previous one to
RT::Template), I don't get any warnings.  The subject is also stored in
the SQL as an expected really really long line, without any \n's in there.

	>     # Unfold the headers
	>     $head->unfold;

                             Bruce Campbell                            RIPE
                   Systems/Network Engineer                             NCC
                 www.ripe.net - PGP562C8B1B                      Operations

More information about the Rt-devel mailing list