iAdd workaround for a mail client bug

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21107 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2005-04-14 04:30:38 +00:00
parent 7a8b76f118
commit c0c319001e
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-04-14 Richard Frith-Macdonald <rfm@gnu.org>
* Source/Additions/GSMime.m: Add tweak to cope with buggy mailers
which insert space after the boundary in a multipart document.
2005-04-13 Adam Fedor <fedor@gnu.org>
* ANNOUNCE, NEWS, Documentation/news.texi,

View file

@ -2364,6 +2364,16 @@ NSDebugMLLog(@"GSMime", @"Header parsed - %@", info);
eol += 2;
lastPart = YES;
}
/*
* Ignore space/tab characters after boundry marker
* and before crlf. Strictly this is wrong ... but
* at least one mailer generates bogus whitespace here.
*/
while (eol < dataEnd
&& (bytes[eol] == ' ' || bytes[eol] == '\t'))
{
eol++;
}
if (eol < dataEnd && bytes[eol] == '\r')
{
eol++;