Commit Graph

373 Commits (e9718e719daf71ac0cf74c5ff3b48475ba5ebd24)
 

Author SHA1 Message Date
Roker 50a7fbd208 don't add the first text/plain (or text/html is no text/plain) as attachment but as msg->longmsg(formatted). 4 years ago
Roker 299fa344c7 this MIME header was b0rken. Now it is parsed correctly. Make clear that this error is kept intentionally. 4 years ago
Roker 547d27f735 make semi-colon optional, so also b0rken MIME headers are parsed correctly. 4 years ago
Roker 79de8c468d it was right. the test data were w0ng! 4 years ago
Roker 6c671e8bb2 add test value for "multipart/alternative" and... found a bug in charset handling of mime parts. *sigh* 4 years ago
Roker ca56ddc822 add output operators for MimeHeaders and declare them public 4 years ago
Roker 0735f615df add text/html test and "Content-Transfer-Encoding" as known header line. 4 years ago
Roker 48b622c848 add tests for different Mime-Types. Found out that "Subject" lines are not "phrase"s, but "unstructured" texts. Adapt syntax rules so encoded-words work in "unstructured" header fields, too. NEED MORE TESTING! 4 years ago
Roker 36c42cfeee separate print_message from unittest_mime 4 years ago
Roker edbf165edc strip any NUL bytes from strings before creating C string for the Engine 4 years ago
Roker 34254dd072 test whether the encoded headers can be decoded properly. Result: Works. Except when NUL bytes occur in the string. :-/ 4 years ago
Roker 645d7b26ef add qp::HeaderType to specify whether we encode "atom"s or free-form "text" strings 4 years ago
Roker 3f90fa69f0 let it compile again. 4 years ago
Roker 76ba892c49 intermediate... 4 years ago
Roker 617c93313d restrict charset that pass Q-encoding without =## escaping, according to RFC 2047 section 5 (3). 4 years ago
Roker dd64625546 add tests for qp::header_encode(), too. 4 years ago
Roker 33436b8d84 add unittest for QP encoding 4 years ago
Roker fea46f07d1 more string_view usage. 4 years ago
Roker ff8cc905c3 –.– 4 years ago
Roker 4ee0333475 add match() function for Rules 4 years ago
Roker 747690ef1c use even more string_view where possible to avoid copying. :-) 4 years ago
Roker d0c4abce93 parser rules now operate on string_view not on string. 4 years ago
Thomas c95628c7a5 Merge with default 4 years ago
Roker de3e61d92c properly terminate the header section 4 years ago
Roker b8a26ca44f okay, parsing & generating works. mostly. 4 years ago
Roker 5c8e2f780a add FIXME to more fields. :-( 4 years ago
Roker cc1bb49dba implement something for all 16 mime_type cells. FIXME: some fields are not yet correct! but it is better than nothing. 4 years ago
Roker 55e91dae0f fix a segfault in unittests, when filename is not set (e.g. for multipart/mixed parts 4 years ago
Roker 5b5f13badd implement generating "multipart/mixed" mails... 4 years ago
Roker dc9e05d93a make c'tors explicit, make internal functions "static" to ease linking. 4 years ago
Roker 366bc5cbe7 generate Content-* MIME headers for attachments, incl. long and bogus file names in RFC-compliant way. 4 years ago
Roker c3f8e61f6e add using declaration to find operator+= 4 years ago
Roker 25b20bfbae add separate attachment parsing/evaluating function & TU. 4 years ago
Thomas 1af95c4c73 Merge with default 4 years ago
Roker 28463550b9 add operator+ and += to pEpMIME_internal when we use boost::string_view. It makes code easier! 4 years ago
Roker 5ec6668e5f also ignore the "Mime-Version" header. 4 years ago
Roker 48b54be364 generate "text/plain", "text/html" and "multipart/alternative" mails. 4 years ago
Roker 00f1405d89 start to generate bodies, in a much simpler way... :-) 4 years ago
Roker d2aab30d4f let's base64 encoding operate on a given (output) string, instead of returning a new string. 4 years ago
Thomas 7fea828b2b Remove Gtest again 4 years ago
Thomas 43511d0f0d Add Boost and Google Test via NuGet 4 years ago
Thomas c918612f3c Merge with default 4 years ago
Roker 086e811ae0 add support for AuxHeader that are stored in message->opt_fields 4 years ago
Roker 294452bcfb change to add output parameter instead of return strings to avoid many string creations, copys & destructions. 4 years ago
Roker 81d38808e6 proper generation of known headers. Aux headers still missing. 4 years ago
Roker c15f2fe665 change "parsers" map into more general HeadersMap, that will also contain function pointers to generator functions 4 years ago
Roker cb76e4c60c *sigh* header generation is nearly as hard as header parsing. still not 100% correct, but it gets better... 4 years ago
Roker 2f2f97066f qi::alpha also recognizes non-ASCII letters (Latin-1? I don't lnow)... 4 years ago
Roker 29f9db56c3 okay, let's encode headers this way. I hope it works now... 4 years ago
Roker 5ea25dce2d okay, we still need the possibility to encode only values, without header names. 4 years ago