Go until inend, not inend+1. Changed the continuation and retry logic to
authorNot Zed <NotZed@HelixCode.com>
Sat, 11 Nov 2000 13:01:31 +0000 (13:01 +0000)
committerMichael Zucci <zucchi@src.gnome.org>
Sat, 11 Nov 2000 13:01:31 +0000 (13:01 +0000)
commit5b51726f2fe1aa29aab39888b5531c506f666abc
treea975eaa6651e0c82826b1d5baf7029f7ec7ee16a
parent727673b06a471d570b6a399d2fedef1dd6c2e244
Go until inend, not inend+1. Changed the continuation and retry logic to

2000-11-11  Not Zed  <NotZed@HelixCode.com>

* camel-mime-parser.c:
(folder_scan_content): Go until inend, not inend+1.  Changed the
continuation and retry logic to be simpler and more robust.  If we
can't find a marker within
the atleast we need, just set it to 1, and try again, rather than
just going to the next smaller limit (boundary check checks the
length anyway).
(header_append): streamline the empty line case.  And strip
trailing \r's if there are any (\n's already stripped).
(folder_scan_header): Reordered and cleaned up a lot.  Check for
continuation only once, and compress lwsp then. Assume the header
buffer already has end of line's stripped, and simplify some things:
Only check for end of headers once and easier.
Dont check to remove end of line character
Dont bother testing inptr-start if we get a boundary match - it is
always zero.
(folder_scan_header): Removed the unused part variable, and a few
pointless assignments.
(folder_scan_header): Change the end limit to be 1 higher, to make
sure we get all content.
(folder_scan_content): And here too.
(folder_scan_header): Killed a warning.
(folder_push_part): Removed a bad comment.  Actually
boundarylenfinal can be zero for a new message not in a
multipart.  So we fix that here.
camel/camel-mime-parser.c