aboutsummaryrefslogtreecommitdiffstats
path: root/tests (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-11-25Fixed Cppcheck issues.Vincent Richard2-1/+2
2021-05-15Prevent accessing empty bufferibanic1-0/+27
2021-05-11#261 Workaround for bad SEARCH response with AOL IMAP servervincent-richard1-0/+60
2021-04-03SMTP/DSN refactoring.vincent-richard1-8/+25
2021-03-24Fixed parsing of IMAP astring.vincent-richard1-0/+56
2021-02-05#250 Fixed unquoted mailbox namevincent-richard1-0/+56
2021-01-11Fixed implicit declarations and misc warnings.Vincent Richard2-2/+2
2020-12-11Avoid force-encoding display names that fit within qcontentJan Engelhardt2-1/+14
When the display name contains an At sign, or anything of the sort, libvmime would forcibly encode this to =?...?=, even if the line is fine ASCII which only needs quoting. rspamd takes excessive quoting as a sign of spam and penalizes such mails by raising the score (rule/match: TO_EXCESS_QP et al.)
2020-09-02Fixed unit test for DSN support.vincent-richard1-16/+16
2020-06-16#238 Fixed whitespace between encoded wordsvincent-richard1-0/+85
2020-06-02Added test.vincent-richard1-0/+10
2020-04-06Fixed false positives in tests.vincent-richard1-72/+94
2020-04-06Map '*' to '\*' in non-strict mode.vincent-richard1-0/+45
2020-04-05Added support for pipelined and out-of-order replies.vincent-richard1-17/+88
2019-10-05Skip delimiter lines that are not exactly equal to the boundaryJan Engelhardt1-0/+38
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-05Disregard whitespace between leading boundary hyphens and markerJan Engelhardt1-3/+3
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-04-18#213 Add support for invalid empty () in FETCH body structure (non-strict)Vincent Richard1-0/+31
2019-01-25Improve address parser for malformed mailbox specificationsJan Engelhardt1-6/+6
Spammers use "Name <addr> <addr>" to trick some parsers. My expectations as to what the outcome should be is presented in the updated mailboxTest.cpp. The DFA in mailbox::parseImpl is hereby redone so as to pick the rightmost address-looking portion as the address, rather than something in between. While doing so, it will also no longer mangle the name part anymore (it does this by keeping a "as_if_name" variable around until the end).
2019-01-24tests: add more malformation tests to mailboxTestJan Engelhardt1-4/+19
2018-09-15Removed 'stringProxy' since COW std::string is no longer valid in C++11.Vincent Richard2-220/+0
2018-09-05More tests.Vincent Richard1-0/+8
2018-09-05Fixed bug in implementation of isStringEqualNoCase().Vincent Richard1-0/+3
2018-09-05Code style and clarity.Vincent Richard66-2288/+2816
2018-08-18Avoid copy by passing shared_ptr<> with const reference.Vincent Richard5-7/+7
2018-03-12Added unit test related to PR #192.Vincent Richard1-0/+10
2017-12-14Issue #186: SMTPUTF8 is not an argument to RCPT + UTF8 in recipient address ↵Vincent Richard2-65/+141
must switch the whole message to SMTPUTF8.
2017-12-14Fixed #186: use SMTPUTF8 only when needed.Vincent Richard3-0/+268
2017-03-28Issue #168: multiple sequences of 'LF..' not replaced correctly.Vincent Richard1-0/+8
2017-02-10Fixed issue #160: invalid characters in hostname.Vincent Richard1-0/+28
2017-02-08Issue #163: default encoder (fallback).Vincent Richard1-0/+63
2017-01-18Fixed #159: parsing error on invalid FETCH BODYSTRUCTURE response.Vincent Richard1-0/+34
2017-01-02Always ignore newlines between words.Vincent Richard1-0/+4
2016-11-05Fixed #149: don't loose charset when fixing invalid broken words.Vincent Richard1-13/+66
2016-04-05Clarified object construction where 'enabled_shared_from_this' is used. Use ↵Vincent Richard5-21/+11
it only where it is needed.
2016-03-24Fixed special value 'last' in message sets.Vincent Richard3-1/+93
2016-03-23Fixed types.Vincent Richard3-3/+3
2016-03-23Issue #126: fixed warnings about sign mismatch.Vincent Richard3-3/+3
2016-03-13Issue #126: more warnings fixed.Vincent Richard6-12/+14
2015-06-11Fixed possible endless loop with some buffer sizes (thanks to John van der ↵Vincent Richard1-0/+51
Kamp).
2015-06-07Estimate generated size of parameterized field.Vincent Richard1-0/+140
2015-05-03Fixed parsing of UTF8 email addresses (RFC-2047 local part + IDNA domain name).Vincent Richard1-0/+16
2015-02-19Fixed unit test so that is does not depend on the current locale charset.Vincent Richard1-1/+3
2015-02-16Issue #103: fix badly encoded words.Vincent Richard2-2/+149
2015-01-14Fixed issue #98: support for wrongly padded B64 words.Vincent Richard1-0/+22
2014-09-19Fixed 'body_fld_lang' optional in IMAP response.Vincent Richard1-0/+24
2014-06-30Added support for language specification in RFC-2047 encoded words and ↵Vincent Richard4-7/+61
RFC-2231 parameter values.
2014-06-17Allow choosing between encoding modes for parameter values.Vincent Richard1-21/+87
2014-06-08Fixed issue #86: workaround for invalid response from Exchange server.Vincent Richard1-0/+35
2014-06-06Removed useless 'virtual' inheritance (fixed issue #84).Vincent Richard1-1/+1
2014-06-01Fixed parsing of empty lines in header field value.Vincent Richard1-0/+17