10 Nov 2005 17:37
carriage return as ctrl-char?
Hi,
I've been using nail for several months now and have been quite
happy with it.
I have a question. When I send a message with a carriage-return
character in the body, the message gets flagged with "MIME_CTRLCHAR"
in mime.c and gets encoded as quoted-printable. The preferred
behavior (from my standpoint) is to keep it as text/plain and keep
the 7bit encoding. (I have CRLF at end of some of the lines.)
From what I've read online, it seems like form-feed, tab, carriage-
return, and line-feed should all be valid ASCII characters to send
in the body.
Here's my suggested change.
In mime_isclean, line 746:
from
} else if ((c < 040 && (c != '\t' && c != '\f')) || c == 0177) {
to:
} else if ((c < 040 && (c != '\r' && c != '\t' && c != '\f')) || c == 0177) { ^^^^^^^^^
Let me know if this sounds reasonable and if I should figure out
how to use the CVS repository and patch it myself.
-David Van Stone-
(Continue reading)
RSS Feed