[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Zmailer's automatic conversion to Q-P



It appears that zmailer's 8bit to Q-P may be suboptimal.  Lines like
this

	asdf asdf asdf ... asdf.

can be converted to

	asdf asdf asdf ... asdf=
	.

which means bad luck.

.

It won't necessarily break anything, as the previous line proves, but
it does expose the message to MTA bugs.

Perhaps the conversion logic (near line 2170 of transports/smtp/smtp.c)
should be changed to

	    /* Any other char which needs quoting ? */
	    if (c == '='  ||  c > 126 ||
		(column == 0 && c == '.') ||
		(c != '\n' && c != '\t' && c < 32)) {

or even to

	    /* Any other char which needs quoting ? */
	    if (c == '='  ||  c > 126 ||
		(column == 0 && (c == 'F' || c == '.')) ||
		(c != '\n' && c != '\t' && c < 32)) {

to work around the >From problem too?

It's not pretty, but I think making QP output uglier and still valid
is better than exposing mail to possible truncation.

--Arnt