More hickups found due to the mimetester; pre push.
authorWilfried Goesgens <dothebart@citadel.org>
Sat, 27 Nov 2010 12:45:46 +0000 (13:45 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Sat, 27 Nov 2010 12:58:54 +0000 (13:58 +0100)
commitde95be7e3fcfac35c593d32691cbba5794ffde0c
treeee572b7599f0b8e76a5feda82043678a7b345c8a
parent067321d4af873bb85bbc01b3de4d047a228c7ac8
More hickups found due to the mimetester; pre push.

 - the_mime_parser (): we need to know where parse_MimeHeaders() finds the end of the headers.
 - the_mime_parser (): don't move the pointer around just to count up to the end-pointer. this can be done by pointer substraction.
 - parse_MimeHeaders (): move the parameter so our caller gets to know what we read
 - parse_MimeHeaders (): if (ptr >= content_end)  after reading is probably a bug (also there in stable..), that makes us fail to read the last line, if. move it to the end of the pointer.
 - don't call strchr twice; remember & evaluate the first result
 - stripping the disposition-header can be done right where we found it.
libcitadel/lib/mime_parser.c