Jan Engelhardt
b06e9e6f86
Skip delimiter lines that are not exactly equal to the boundary
...
There is crap software out there that generates mails violating the
prefix ban clause from RFC 2046 §5.1 ¶2.
Switch vmime from a prefix match to an equality match, similar to
what Alpine and Thunderbird do too.
2019-10-05 11:37:09 +02:00
Jan Engelhardt
df32418df5
Disregard whitespace between leading boundary hyphens and marker
...
The way I read the RFC is that whitespace is not allowed before the
boundary marker, only afterwards, so the checks for leading WS are
removed, and the missing check for trailing WS is added.
See RFC 2046 §5.1.1: """The boundary delimiter line is then defined
as a line consisting entirely of two hyphen characters ("-", decimal
value 45) followed by the boundary parameter value from the
Content-Type header field, optional linear whitespace, and a
terminating CRLF."""
2019-10-05 11:31:51 +02:00
Vincent Richard
b55bdc9c0b
Code style and clarity.
2018-09-05 23:54:48 +02:00
Vincent Richard
f173b0a535
Avoid copy by passing shared_ptr<> with const reference.
2018-08-18 16:08:25 +02:00
Vincent Richard
4fd8976515
Issue #126 : more warnings fixed.
2016-03-13 20:15:22 +01:00
Vincent Richard
f9913fa28a
Boost/C++11 shared pointers.
2013-11-21 22:16:57 +01:00
Vincent Richard
2e5574b146
Added support for transport padding in boundary (issue #38 ).
2013-06-13 12:00:42 +02:00
Vincent Richard
1df8c6cd0e
Refactored unit tests.
2013-03-08 08:19:55 +01:00
Vincent Richard
ad9bef78c4
Updated copyright year and maintainer email address.
2013-01-10 17:30:31 +01:00
Vincent Richard
4f33877820
Added ability to parse directly from an input stream (eg. file). This allows very big messages to be parsed without loading the whole message data into memory.
2012-04-16 22:32:33 +02:00
Vincent Richard
0633a49b04
Fixed wrong encoding of line breaks in QP-encoded text (issue #7 ).
2012-04-05 23:15:04 +02:00
Vincent Richard
6f03b1e380
Added test: Ensure '7bit' encoding is used when body is 7-bit only.
2012-04-05 22:10:54 +02:00
Vincent Richard
a55c574436
Fixed parsing of empty body parts (thanks to John van der Kamp, from Zarafa).
2011-06-25 17:07:53 +00:00
Vincent Richard
98b4d91d01
Fixed bug #3174903 . Fixed word parsing when buffer does not end with NL. Fixed 'no encoding' when forced.
2011-03-09 18:03:31 +00:00
Vincent Richard
9e4867b641
Fixed boundary parsing (thanks to John van der Kamp, Zarafa).
2010-12-10 16:54:38 +00:00
Vincent Richard
a5d258dc72
Relicensed VMime under the GNU GPL version 3. Changed copyright year to 2009.
2009-09-06 12:02:10 +00:00
Vincent Richard
a68e122354
Recover from broken emails without a final boundary (Zarafa).
2008-07-11 20:45:17 +00:00
Vincent Richard
0c30c298da
Changed copyright year to 2008.
2008-01-04 18:07:40 +00:00
Vincent Richard
d284cfa729
Changed copyright year to 2007.
2007-01-01 20:55:15 +00:00
Vincent Richard
63d21f7a09
Changed copyright year to 2006.
2006-02-05 10:22:59 +00:00
Vincent Richard
cbd1110a4b
Updated FSF address.
2005-09-17 10:10:29 +00:00
Vincent Richard
5d18fce959
Moved to CppUnit for unit tests framework.
2005-08-25 21:25:45 +00:00
Vincent Richard
681297e10b
Reference counting and smart pointers.
2005-07-12 22:28:02 +00:00
Vincent Richard
b3af751a92
Updated VMime website URL.
2005-03-18 21:33:11 +00:00
Vincent Richard
4ae97ddb09
Splitted 'contentHandler' into three classes: 'emptyContentHandler', 'stringContentHandler' and 'streamContentHandler'.
2005-01-28 17:50:53 +00:00
Vincent Richard
51c199723c
Changed year to 2005 in copyright header.
2005-01-03 12:26:48 +00:00
Vincent Richard
3a2aa8e9b8
Added unit tests for 'bodyPart'.
2005-01-02 15:24:07 +00:00