aboutsummaryrefslogtreecommitdiffstats
path: root/src/vmime/mailbox.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-12-31Add parsing feedback via parsingContext (#280)bmagistro1-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]>
2020-12-11Avoid force-encoding display names that fit within qcontentJan Engelhardt1-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.)
2019-01-25Improve address parser for malformed mailbox specificationsJan Engelhardt1-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).
2018-09-05Code style and clarity.Vincent Richard1-213/+228
2018-02-19Handle parsing of [email protected] <[email protected]>Bo Simonsen1-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).
2013-12-29Merged source and header files in directory structure. Got rid of SConstruct ↵Vincent Richard1-0/+0
build.
2013-12-10Simplified types for better readability. Use appropriate types (size_t, ↵Vincent Richard1-8/+8
byte_t...). Minor warning fixes.
2013-11-21Boost/C++11 shared pointers.Vincent Richard1-4/+4
2013-02-24Message generation/parsing context. Charset conversion options. Preliminary ↵Vincent Richard1-45/+32
implementation of RFC-6532.
2013-01-10Updated copyright year and maintainer email address.Vincent Richard1-1/+1
2012-12-12Trivial 64-bit warning fixes.Vincent Richard1-1/+1
2012-04-16Added ability to parse directly from an input stream (eg. file). This allows ↵Vincent Richard1-4/+4
very big messages to be parsed without loading the whole message data into memory.
2011-06-19Added support for mailboxes that specify an (encoded) full name with an ↵Vincent Richard1-1/+3
empty email address, set by a <> marker (Zarafa).
2010-03-16Fixed calls to 'empty' instead of 'clear' (thanks to John van der Kamp, from ↵Vincent Richard1-2/+2
Zarafa).
2010-02-10Allow spaces to appear in mailbox display name without encoding or quoting. ↵Vincent Richard1-2/+3
Encode or quote if CR or LF is present.
2009-11-12Quote mailbox name instead of encoding it whenever it's possible.Vincent Richard1-1/+1
2009-09-06Relicensed VMime under the GNU GPL version 3. Changed copyright year to 2009.Vincent Richard1-2/+2
2008-10-12Fixed compilation warnings.Vincent Richard1-5/+8
2008-01-04Changed copyright year to 2008.Vincent Richard1-1/+1
2007-01-01Changed copyright year to 2007.Vincent Richard1-1/+1
2006-02-05Changed copyright year to 2006.Vincent Richard1-1/+1
2005-09-17Updated FSF address.Vincent Richard1-3/+7
2005-07-12Reference counting and smart pointers.Vincent Richard1-4/+4
2005-03-18Updated VMime website URL.Vincent Richard1-1/+1
2005-03-16Fixed compilation problems on Solaris 9.Vincent Richard1-9/+9
2005-02-05Moved 'static' functions into 'parserHelpers' class.Vincent Richard1-9/+9
2005-01-03Changed year to 2005 in copyright header.Vincent Richard1-1/+1
2004-12-26Moved all header files to 'vmime/' directory.Vincent Richard1-2/+2
2004-12-20Added component::getChildComponents() function.Vincent Richard1-0/+6
2004-12-15Added parsing bounds on 'component'.Vincent Richard1-0/+2
2004-11-07Moved encodeAndFold() and decodeAndUnfold() functions from "base.cpp" to ↵Vincent Richard1-3/+3
"text.cpp".
2004-11-06Fixed bug with white-space in email address.Vincent Richard1-2/+16
2004-10-21Refactoring (see ChangeLog).Vincent Richard1-12/+43
2004-10-07Fixed a bug when parsing a mailbox with no explicit email address (should be ↵Vincent Richard1-2/+12
recognized as an address).