Commit Graph

241 Commits

Author SHA1 Message Date
Vincent Richard
e88b8eeac2 Fixed parsing of UTF8 email addresses (RFC-2047 local part + IDNA domain name). 2015-05-03 19:17:00 +02:00
Vincent Richard
19321f9026 Fixed unit test so that is does not depend on the current locale charset. 2015-02-19 21:24:41 +01:00
Vincent Richard
c5c66f9fdc Issue #103: fix badly encoded words. 2015-02-16 18:43:03 +01:00
Vincent Richard
e7739c0efe Fixed issue #98: support for wrongly padded B64 words. 2015-01-14 19:35:28 +01:00
Vincent Richard
a32bb6c954 Fixed 'body_fld_lang' optional in IMAP response. 2014-09-19 18:31:43 +02:00
Vincent Richard
03a0e36e91 Added support for language specification in RFC-2047 encoded words and RFC-2231 parameter values. 2014-06-30 22:48:42 +02:00
Vincent Richard
0863f50c26 Allow choosing between encoding modes for parameter values. 2014-06-17 21:08:22 +02:00
Vincent Richard
a46e520902 Fixed issue #86: workaround for invalid response from Exchange server. 2014-06-08 18:34:01 +02:00
Vincent Richard
4aefcca374 Removed useless 'virtual' inheritance (fixed issue #84). 2014-06-06 19:26:01 +02:00
Vincent Richard
30ea54f269 Fixed parsing of empty lines in header field value. 2014-06-01 20:46:17 +02:00
Vincent Richard
17d764d65c Fixed segfault in POP3 test. 2014-06-01 19:57:43 +02:00
Vincent Richard
99d919c6d7 Fixed unit test. 2014-04-21 20:13:17 +02:00
Vincent Richard
bbfdcc36a0 Trace socket/connection events. 2014-03-25 23:34:03 +01:00
Vincent Richard
9b3f8124f1 Unit tests for IMAP utils. 2014-03-17 23:51:54 +01:00
Vincent Richard
84e570bbbb Connection trace facility. 2014-03-16 22:52:40 +01:00
Vincent Richard
cfe9c6b1e7 Modified IMAP parser constructor to make testing easier. 2014-03-16 09:57:36 +01:00
Vincent Richard
9d73fc5382 IMAP commands. 2014-03-15 23:33:20 +01:00
Vincent Richard
c860c273d3 Added support for initial response in SASL authentication. 2014-02-13 22:23:59 +01:00
Vincent Richard
0d20ee083b Better polling. Fixed possible connection issues on POSIX with slow network. Better error handling in POSIX sockets. 2014-02-05 20:18:20 +01:00
Vincent Richard
58bad6e488 Path to/from string conversion. 2014-01-19 17:25:25 +01:00
Vincent Richard
2afe340b7b In SSL socket, use timeout handler of underlying socket. Throw exception when reading from/writing to disconnected SSL socket. 2014-01-19 16:36:45 +01:00
Vincent Richard
24eff0069b Added test for "+" not followed by space in continue_req. 2014-01-16 22:51:33 +01:00
Vincent Richard
ef892af655 Do not make calls to setlocale() in a library. Use default user locale in tests and examples. 2014-01-16 00:27:51 +01:00
Vincent Richard
d0ffbb60e6 Use equivalence instead of strict equality for path components. 2014-01-16 00:15:21 +01:00
Vincent Richard
fe43da096f Reset line length after encoding a hard line break in QP encoding. 2014-01-14 08:18:24 +01:00
Vincent Richard
8e51494486 Report sending progress when chunking is supported. 2014-01-05 13:53:44 +01:00
Vincent Richard
bd378bbfa2 Added support for SPECIAL-USE extension (IMAP). 2014-01-03 20:41:32 +01:00
Vincent Richard
7e265b05f4 Simplified types for better readability. Use appropriate types (size_t, byte_t...). Minor warning fixes. 2013-12-10 08:52:51 +01:00
Vincent Richard
2232b60430 Fixed possible segfault caused by use of static string. 2013-11-28 21:17:17 +01:00
Vincent Richard
96077ce7e6 Do not throw exception for normal code flow (exceptions::no_such_field). 2013-11-22 13:32:52 +01:00
Vincent Richard
f9913fa28a Boost/C++11 shared pointers. 2013-11-21 22:16:57 +01:00
Vincent Richard
e760842265 Use "std::map" instead of "propertySet" in url class. 2013-11-15 21:46:03 +01:00
Vincent Richard
5915ca4e34 Custom fetch attributes. 2013-11-14 23:17:40 +01:00
Vincent Richard
29954e5e50 Fixed group parsing in mailboxList. 2013-10-16 19:47:24 +02:00
Vincent Richard
3b13021469 SMTP-specific exceptions. 2013-09-08 20:49:51 +02:00
Vincent Richard
759a89fcfd Added test for SMTP connection error. 2013-08-16 11:41:55 +02:00
Vincent Richard
757f8a7dc7 Fixed segfault at POP3 connection error. 2013-08-16 11:41:25 +02:00
Vincent Richard
8cd361ff8c Added support for enhanced status codes (RFC-3463). 2013-08-14 21:49:24 +02:00
Vincent Richard
b0845eff0d Allow messages to be designated either by their number or their UID.
Warning: this is an API-breaking change.
2013-07-26 14:47:30 +02:00
Vincent Richard
b886cd4864 Refactored the way embedded objects are referenced in MHTML. 2013-07-11 18:06:26 +02:00
Vincent Richard
86f0a63802 Do not QP-encode CRLFs when content type is text. 2013-06-27 13:56:55 +02:00
Vincent Richard
de659db112 Removed debug printf. 2013-06-27 07:54:33 +02:00
Vincent Richard
1a30cfe41b Unit tests for content handlers. 2013-06-26 21:41:42 +02:00
Vincent Richard
895b07cae9 Added support for SIZE SMTP extension (RFC-1870). 2013-06-24 15:32:40 +02:00
Vincent Richard
87f6acb0b5 Return after sending message when sending is supported. 2013-06-22 10:42:36 +02:00
Vincent Richard
eee80fc81e Added support for CHUNKING SMTP extension (RFC-3030). More robust unit tests for SMTP. 2013-06-20 11:02:39 +02:00
Vincent Richard
2e5574b146 Added support for transport padding in boundary (issue #38). 2013-06-13 12:00:42 +02:00
Vincent Richard
93c8d3a071 Added support for SMTPUTF8 extension (RFC-6531). 2013-06-12 21:19:36 +02:00
Vincent Richard
7ab35173bc Moved POP3 connection-related things to POP3Connection object. 2013-06-12 14:02:40 +02:00
Vincent Richard
dfe563f391 Moved POP3 client command related things to POP3Command class. 2013-06-11 22:50:44 +02:00
Vincent Richard
02e1cf65ab Fixed comment. 2013-06-09 10:24:56 +02:00
Vincent Richard
66f3c68a6c Removed test as it is invalid. 2013-05-14 19:47:56 +02:00
Vincent Richard
1d7e9142be Explicit platform handler initialization is not needed anymore. 2013-05-12 19:51:13 +02:00
Vincent Richard
ee68f6c06f Allow SPACEs at end of response line (Apple iCloud IMAP server). 2013-04-26 22:52:13 +02:00
Vincent Richard
5a3d88855b Added unit tests for IMAPTag. Initialize sequence number at 1. 2013-04-26 22:47:51 +02:00
Vincent Richard
462311e382 Added filtered output stream to transform LFs to CRLFs. 2013-04-16 12:03:13 +02:00
Vincent Richard
9d2703c376 Added support for charset conversion with ICU (thanks to Mehmet Bozkurt). 2013-03-25 12:32:48 +01:00
Vincent Richard
32eb1ebe34 Strip spaces at end of header lines (Zarafa). 2013-03-24 15:50:16 +01:00
Vincent Richard
21945be4c4 Fixed warnings and 64-bit issues. 2013-03-24 12:30:26 +01:00
Vincent Richard
495526a5e6 Let whitespace break the value of a parameterized header field, not just a ';' (thanks to Zarafa). 2013-03-24 11:35:08 +01:00
Vincent Richard
84415da8e1 Fixed parsing header field value on next line. 2013-03-24 10:02:23 +01:00
Vincent Richard
da2797702f Updated tests for charset conversion.
Added test for UTF-7 encoding availability. Added test for input buffer
underflow in charsetFilteredOutputStream. Refactored charset conversion
tests and removed useless tests.
2013-03-18 09:35:04 +01:00
Vincent Richard
32a80f6c1e Fixed mailbox and mailbox group parsing. Added unit tests. 2013-03-11 10:05:09 +01:00
Vincent Richard
1df8c6cd0e Refactored unit tests. 2013-03-08 08:19:55 +01:00
Vincent Richard
8378b350df Throw exception when an invalid value type is set in a header field. 2013-02-27 14:59:37 +01:00
Vincent Richard
49f9628c0a Fixed typo in function name. 2013-02-25 13:10:15 +01:00
Vincent Richard
e65b3e0f55 Unit tests for wordEncoder. 2013-02-25 10:42:54 +01:00
Vincent Richard
0c5d4a10e6 Message generation/parsing context. Charset conversion options. Preliminary implementation of RFC-6532. 2013-02-24 16:28:13 +01:00
Vincent Richard
d3f539bf92 Fixed SMTP dot stuffing at the beginning of content. 2013-02-20 16:07:00 +01:00
Vincent Richard
d8b3d2b641 Added helper function to replace header field. 2013-02-17 22:18:32 +01:00
Vincent Richard
0757efad0d Reset SMTP session state (using RSET command) if transport is being reused. 2013-02-17 18:07:23 +01:00
Vincent Richard
725070467c Unit tests for seekableInputStreamRegionAdapter. 2013-02-15 15:17:04 +01:00
Vincent Richard
34c4fce797 Unit tests for output stream adapters. 2013-02-14 15:59:26 +01:00
Vincent Richard
bf40e22537 Unit tests for POP3Utils. 2013-02-14 11:16:26 +01:00
Vincent Richard
a6dd30c581 Unit tests for POP3Response. 2013-02-13 10:26:16 +01:00
Vincent Richard
feabba4470 Unit tests for SMTPCommand and SMTPCommandSet. Fixed SMTPCommandSet::isFinished(). 2013-02-12 17:54:36 +01:00
Vincent Richard
ad9bef78c4 Updated copyright year and maintainer email address. 2013-01-10 17:30:31 +01:00
Vincent Richard
3a5621c2aa Trivial 64-bit warning fixes. 2012-12-12 16:35:55 +01:00
Vincent Richard
7fdcc31ab3 Fixed compilation issues in unit tests. 2012-12-11 22:02:47 +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
ec715e6058 Added tests for Quoted-Printable encoding. 2012-04-05 22:29:32 +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
92b4dc8648 Fixed encoding of whitespace. Fixed old test case. 2011-06-26 12:47:25 +00: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
4f9dc93200 Added support for mailboxes that specify an (encoded) full name with an empty email address, set by a <> marker (Zarafa). 2011-06-19 18:49:55 +00:00
Vincent Richard
d7c2fb2e58 Flush stateful data from iconv (thanks to John van der Kamp, Zarafa). 2011-03-31 19:13:03 +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
3cec9612fa Fixed possible infinite loop (thanks to John van der Kamp, Zarafa). 2011-01-21 15:28:06 +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
90ad8c9154 Fixed unit test after bug fix. 2010-12-10 16:24:06 +00:00
Vincent Richard
dbcb03893c Fold non-encoded lines in the case there is no whitespace in them. 2010-10-18 14:20:34 +00:00
Vincent Richard
097bde861d Fixed missing whitespace in text parsing. 2010-10-12 20:01:34 +00:00
Vincent Richard
e8cb19f9e5 Encode quotation marks in QP/RFC-2047. 2010-10-12 09:45:16 +00:00
Vincent Richard
d252ccf097 Encode TSpecials in RFC-2231 encoded chunks. 2010-08-17 21:47:25 +00:00
Vincent Richard
d6a8b099ed Connection time out. 2010-08-05 10:30:22 +00:00
Vincent Richard
4ff310c7e4 Always encode special charsets. 2010-05-21 07:41:15 +00:00
Vincent Richard
8f9fec339c Fixed parsing of non-significant whitespaces in field values. 2010-04-08 18:28:22 +00:00
Vincent Richard
b94fe09cae Fixed bug #2933667: CRLF filter broken. 2010-01-20 08:42:47 +00:00
Vincent Richard
a3bf37fb4f Fixed not exception-safe constructor, which could lead to possible memory leak (thanks to Bartek Szurgot). Get rid of const-ness on factories. 2009-12-08 10:03:34 +00:00