aboutsummaryrefslogtreecommitdiffstats
path: root/src/vmime/mailbox.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add parsing feedback via parsingContext (#280)bmagistro2023-12-311-1/+1
| | | | | | | | | | * Add parsing feedback via parsingContext Changes the parsing context to be modifiable to be able to provide feedback on the parsing. This allows the user to check if header recovery was necessary, for example, while parsing the current message. Signed-off-by: Ben Magistro <[email protected]> Co-authored-by: Vincent Richard <[email protected]>
* Avoid force-encoding display names that fit within qcontentJan Engelhardt2020-12-111-32/+2
| | | | | | | | | 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.)
* Improve address parser for malformed mailbox specificationsJan Engelhardt2019-01-251-180/+167
| | | | | | | | | | | | 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).
* Code style and clarity.Vincent Richard2018-09-051-213/+228
|
* Handle parsing of [email protected] <[email protected]>Bo Simonsen2018-02-191-6/+0
| | | | | | | The behavior of current VMIME implementation will result in address [email protected] with an empty name. That is because the parsing is stopped whenever a wihtespace and a at-character is seen. We should continue the parsing to deduce the real address ([email protected] in the example).
* Merged source and header files in directory structure. Got rid of SConstruct ↵Vincent Richard2013-12-291-0/+510
build.