mangled lines in e-mailed lire reports

Wytze van der Raay wytze at nlnet.nl
Tue Dec 24 13:06:51 CET 2002


Hello,

Using lire to e-mail reports in the nice html format with embedded
images, it turns out that the resulting e-mail is slightly mangled.
(Extremely) long lines have been chopped up after 990 bytes, and a
! (exclamation mark) has been inserted at the end of such lines.
The resulting improper HTML does not display correctly anymore
of course, and is essentially unusable.

If I generate the same report using lr_log2report rather than
lr_log2mail, the resulting HTML looks and displays fine (but
contains some extremely long lines, e.g. lines over 10K chars).

It appears that the index.html file is e-mailed with MIME encoding
"binary". Whether the linebreak/"!"-corruption takes place during
the lire-to-email packaging process through MIME:Tools, or during
the actual sendmail transport is unclear to me, but fact is that
encoding binary is not a reliable method for transmitting long
lines through e-mail gateways (as confirmed by the MIME::Tools
documentation).

Would it not be better to used the base64 encoding here,
just like for the images? Or would that cause other problems?
In it's current form the html e-mail reports are not usable.
(as exercised with Lire 1.2.1 on RedHat 7.3 Linux x86).

Wytze van der Raay

-- 
To UNSUBSCRIBE, email to development-request at logreport.org with a subject of
"unsubscribe". Trouble? Send an email with subject "help" to
development-request at logreport.org



More information about the Development mailing list