]> granicus.if.org Git - mutt/commit
Fix RFC 3676 (format=flowed text) handling.
authorMichael Vrable <mvrable@cs.ucsd.edu>
Thu, 16 Aug 2007 03:09:42 +0000 (20:09 -0700)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Thu, 16 Aug 2007 03:09:42 +0000 (20:09 -0700)
commit89d04840143a26150aa4a9e6984e0952e3d3d43e
treedcd500f6175857ed0fff8a136c2cc7cf2f6edbb0
parent64c36a3b94d9a1ae45ed81bcfbca8d4ef5912bad
Fix RFC 3676 (format=flowed text) handling.

The old code would consider a line containing "> " to be flowed, but
since this is a quoted and space-stuffed line containing no additional
text, by my reading of RFC 3676 it should be fixed.

Clean up the handling of format=flowed text.  Fix the test to determine
whether a line is fixed--if a line ends in a space only because the last
character is a space from space-stuffing, consider the line to be a
fixed line.  This makes the test for ((buf_len - buf_off) <= 0) later no
longer necessary.

Also simplify the code by removing checks for curline being non-null; it
is allocated at the start of the function and never reallocated to size
zero, so it should never be a null pointer.
rfc3676.c