Mikael Bystr�m <[EMAIL PROTECTED]> wrote: > I suppose this may explain why this "QP truncation bug" script have not > helped on several occasions for this problem. I run the script, it says > everything is OK and then the message is truncated anyway. So there are > reasons that cause the problem and the script doesn't check for it.
I don't know very much about scripting, but as I recall this particular script only checks lines that are over a certain length (68+ characters?). The truncation bug itself only strikes lines of an exact length (76 characters?), but that's only *after* the message has been encoded to quoted-printable -- which adds extra characters to lines each time it encounters a hi-ASCII character. The script has no way of knowing what the final length of each line will be after the encoding is complete, so it checks every line that exceeds a particular length. This method should work most of the time, but it's not foolproof. Short lines may have so many hi-ASCII characters that encoding makes them long enough to trigger the bug. The best way to fix the script would be to give it the ability to perform its own encoding of the message body so that it can determine the final length of each line. But implementing the quoted-printable encoding method via AppleScript is probably too difficult. A more feasible solution might be to change the line length currently used by the script to a more conservative value (60 characters?). It wouldn't be a perfect solution, but it might be an improvement. Does anyone who knows AppleScript want to look at the old script and see if I'm right? ___________________________________________________________________________ To unsubscribe send a mail message with a SUBJECT line of "unsubscribe" to <[EMAIL PROTECTED]> or <[EMAIL PROTECTED]>

