On Tue, Jan 29, 2002 at 12:57:21PM +0000, Edmund GRIMLEY EVANS wrote: > Because in general you don't want to unfold (concatenate) header > fields. > > I don't think Mail::Header should be folding (splitting up) headers at > all. > > RFC 822 merely says you can fold header lines, not that you should. In > the case of an unstructured field, such as Subject, splitting up and > concatenating the header may destroy deliberate layout, for example: > > Subject: Awake! for Morning in the Bowl of Night > Has flung the Stone that puts the Stars to Flight > > Obviously an MTA may want to unfold the text in order to display it in > a summary list, but I don't see why Mail::Header has to mess with it. > > So, I suggest you try complaining to the maintainer of Mail::Header. > Perhaps they would be willing to only split up structured header > lines, for example.
I think you're right. I'm going to write to Graham Barr and Eryq about this as soon as I find an answer. At the moment, I'm calling: $subject = encode_mimewords ($subject, Encoding => "B", Charset => "UTF-8"); $message->head->fold_length ("Subject", 4096); $message->head->add ("Subject", $subject); This works. It's a bit of a hack. And we're generating over-long headers, and I have no idea what the effect of that will be on MTAs ... Rich. -- [EMAIL PROTECTED] | Is your school part of http://www.schoolmaster.net ? BiblioTech Ltd, Unit 2 Piper Centre, 50 Carnwath Road, London, SW6 3EG. +44 20 7384 6917 | Free software: http://freshmeat.net/users/rwmj Copyright © 2002 Richard Jones | GnuPG/PGP key from www.annexia.org -- Linux-UTF8: i18n of Linux on all levels Archive: http://mail.nl.linux.org/linux-utf8/