Commit Graph

407 Commits

Author SHA1 Message Date
Vincent Richard
6b713d502e Fixed calls to 'empty' instead of 'clear' (thanks to John van der Kamp, from Zarafa). 2010-03-16 11:54:11 +00:00
Vincent Richard
2854eed183 Return false instead of throwing an exception if file does not exist in isDirectory(), isFile(), canRead() and canWrite(). 2010-03-16 08:39:45 +00:00
Vincent Richard
3604182a9a Fixed compilation issue with 'const'. 2010-03-10 15:54:23 +00:00
Vincent Richard
75fcad48c9 Fixed bug #2966885: memory leak caused by strong ref (thanks to tuxx from SF). 2010-03-10 13:29:33 +00:00
Vincent Richard
fa6c1dba06 Don't quote if no encoding is needed. 2010-02-10 09:41:36 +00:00
Vincent Richard
5c2d078b4f Allow spaces to appear in mailbox display name without encoding or quoting. Encode or quote if CR or LF is present. 2010-02-10 09:12:25 +00:00
Vincent Richard
b05039de3d Fixed compilation issue on Windows. 2010-02-03 11:01:40 +00:00
Vincent Richard
6298cdc850 Use homemade isSpace() instead of std::ispace() for portability. 2010-02-03 10:56:12 +00:00
Vincent Richard
1b19b40022 Removed wide-char support. 2010-02-03 10:45:17 +00:00
Vincent Richard
69421bbd6f Fixed memory leak. 2010-02-01 16:33:31 +00:00
Vincent Richard
668087ea36 Fixed bug #2927077: account for multi-byte charsets in invalid sequence output. 2010-02-01 13:26:12 +00:00
Vincent Richard
625fd5f156 Fixed bug #2927077: account for multi-byte charsets in invalid sequence output. 2010-02-01 13:06:06 +00:00
Vincent Richard
b94fe09cae Fixed bug #2933667: CRLF filter broken. 2010-01-20 08:42:47 +00:00
Vincent Richard
45faafdced Makes 'To' optional, like 'Cc' and 'Bcc'. An exception is still thrown if there are no recipients at all (see bug #2912670). 2009-12-13 12:50:36 +00:00
Vincent Richard
7a6dcdf385 Fixed non thread-safe getLocalCharset() function (thanks to Bartek Szurgot). 2009-12-08 10:21:33 +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
Vincent Richard
6016fd5879 Initialize multi-threading for GNUTLS/GCrypt (thanks to Bartek Szurgot). 2009-12-08 09:31:06 +00:00
Vincent Richard
82e1a690d9 Fixed directory renaming. 2009-12-01 14:24:55 +00:00
Vincent Richard
ee2fa4feaf Added option to return ISO week-numbering instead of default calendar-numbering. 2009-12-01 13:44:34 +00:00
Vincent Richard
5d82825687 Added block size on sockets to allow different buffer size for SSL. 2009-11-30 13:04:15 +00:00
Vincent Richard
90f838232f Quote mailbox name instead of encoding it whenever it's possible. 2009-11-12 15:40:56 +00:00
Vincent Richard
b0fbd0edf0 Auto-detect filename. Renamed 'filename' argument to 'filepath' for disambiguity. Added constructor for input stream. Use 'word' instead of 'string' for filename. 2009-11-04 14:12:06 +00:00
Vincent Richard
5341f2d1f7 Removed some unnecessary consts on integral types where overrides conflict. Added <cctype> to get the std::isspace that doesn't require a 2nd arg 'locale' (thanks to Ben Jackson). 2009-11-04 12:52:49 +00:00
Vincent Richard
63d6a2ac5a Reset EOF flag when stream is reset. 2009-11-03 14:17:55 +00:00
Vincent Richard
75b32c4125 Fixed possible segfault (thanks to László Vadócz). 2009-11-03 12:37:51 +00:00
Vincent Richard
ac6865fe36 Fixed possible segfault (thanks to John van der Kamp, from Zarafa). 2009-09-15 19:36:03 +00:00
Vincent Richard
a5d258dc72 Relicensed VMime under the GNU GPL version 3. Changed copyright year to 2009. 2009-09-06 12:02:10 +00:00
Vincent Richard
6bfaff3ce4 maildirFolder::addMessage() : iff FLAG_RECENT is present, add message to 'new' instead of 'cur' (Georg Sauthoff). 2009-07-11 12:39:36 +00:00
Vincent Richard
f36ccb2558 fsync() in posixFile::fileCreate(); changed posixFile::rename to exclusive semantics - if dst exists it fails (Georg Sauthoff). 2009-07-11 12:31:18 +00:00
Vincent Richard
a67f0a537e Ensure 'unsigned long' is 4 bytes long (Georg Sauthoff). 2009-07-11 12:21:59 +00:00
Vincent Richard
3442caf607 gnutls_x509_crt_list_import does not support multiple DER certificates (Georg Sauthoff). 2009-06-21 21:32:25 +00:00
Vincent Richard
0537a5eb8e Include hostname in message id (ensure unicity when working on a network file system). 2009-06-21 21:19:00 +00:00
Vincent Richard
6e1acbf794 Use ::flush() (aka fsync()) after a maildir message is written (Georg Sauthoff). 2009-06-21 21:08:56 +00:00
Vincent Richard
9bd54d3e47 Changed posix write wrapper since a) write can be interrupted and b) write can write less than specified without error (Georg Sauthoff). 2009-06-21 21:07:35 +00:00
Vincent Richard
148c161128 Added other missing return error checks for posix system calls; check consistent for -1 (Georg Sauthoff). 2009-06-21 21:05:16 +00:00
Vincent Richard
43bbb3c410 Check return status of fsync (Georg Sauthoff). 2009-06-21 20:57:03 +00:00
Vincent Richard
7d75b131ef Fixed duplicate switch case on AIX (thanks to Robin Rawson-Tetley). 2009-04-09 20:24:08 +00:00
Vincent Richard
d0bc8b3a95 Fixed block size through filtered streams. 2009-04-09 18:15:50 +00:00
Vincent Richard
c2d2603761 Fixed non-numeric timezone parsing (thanks to John van der Kamp, Zarafa). 2009-01-09 21:07:42 +00:00
Vincent Richard
2fe5fceb3f Fixed week of year for 53th week (non ISO-compliant). 2008-12-29 21:46:08 +00:00
Vincent Richard
a74393b092 Send CRLF in the same packet as command to avoid problems with some servers. 2008-12-16 21:44:42 +00:00
Vincent Richard
d9c3a8eda0 Missing #include for GCC 4.4 (thanks to Martin Michlmayr). 2008-11-09 13:48:04 +00:00
Vincent Richard
13f69779c2 New namespace for encoders. 2008-10-12 13:59:09 +00:00
Vincent Richard
3f4226eaac Fixed compilation warnings. 2008-10-12 10:05:28 +00:00
Vincent Richard
3d5b699cd9 Encode '?' characters to avoid breaking QP encoding (Zarafa). 2008-07-11 21:48:58 +00:00
Vincent Richard
b9c6740957 Fixed 'negative unsigned' index causing crash (Zarafa). 2008-07-11 21:46:32 +00:00
Vincent Richard
f626c4fbe8 Enable re-generation of broken Content-Id's that had no '@' sign in them (Zarafa). 2008-07-11 21:37:38 +00:00
Vincent Richard
689f99f7a6 Treat empty encoding as default '7-bit' (Zarafa). 2008-07-11 21:33:18 +00:00
Vincent Richard
30f0825877 Fixed bad buffer length causing duplicate data (Zarafa). 2008-07-11 21:27:48 +00:00
Vincent Richard
85cd5f7abf Escape all RFC-2047 'especials' characters (Zarafa). 2008-07-11 21:12:42 +00:00
Vincent Richard
166f6206f4 Fix for possible NULL return value for setlocale() (Zarafa). 2008-07-11 21:07:32 +00:00
Vincent Richard
1d093c46a7 Actually add the 'Final-Recipient' header (Zarafa). 2008-07-11 21:04:31 +00:00
Vincent Richard
ad0ea8ce9f Remove BCC headers before sending the message over SMTP (Zarafa). 2008-07-11 21:02:12 +00:00
Vincent Richard
a68e122354 Recover from broken emails without a final boundary (Zarafa). 2008-07-11 20:45:17 +00:00
Vincent Richard
439b2b3e90 Fixed extra space in subject (see https://sourceforge.net/forum/message.php?msg_id=4894970). 2008-04-28 19:49:48 +00:00
Vincent Richard
9246b79aae Removed old GNU TLS error. 2008-04-14 20:14:28 +00:00
Vincent Richard
50c3621cd3 Fixed constructor ambiguity in 'fileAttachment'. 2008-01-28 12:29:28 +00:00
Vincent Richard
0c30c298da Changed copyright year to 2008. 2008-01-04 18:07:40 +00:00
Vincent Richard
bc0e5a9a48 Use std::vector<> instead of new[] allocation (avoid memory leaks by using RAII idiom). 2007-12-23 16:19:39 +00:00
Vincent Richard
a87652e7b4 Fixed incorrect white-space between words. 2007-11-20 21:45:54 +00:00
Vincent Richard
6cafb90c08 Initialize Winsock before using gethostbyname(). 2007-10-16 18:13:47 +00:00
Vincent Richard
240db19366 Silently accept quoted string. 2007-08-30 21:38:54 +00:00
Vincent Richard
fd0647db85 Added function to unquote strings. 2007-08-30 21:38:22 +00:00
Vincent Richard
8066394538 Reset exception pointer (thanks to Emmanuel Cabestan). 2007-08-10 09:04:18 +00:00
Vincent Richard
e984682e26 Fixed bug in modified UTF-7 encoding. 2007-07-09 22:05:54 +00:00
Vincent Richard
5e3a99710b Throw exception when badbit is set. 2007-07-09 21:54:01 +00:00
Vincent Richard
cb5e91a24c New GCC definition. 2007-07-09 21:53:00 +00:00
Vincent Richard
923a53990b Fixed wrong block size (thanks to Emmanuel Cabestan). 2007-06-07 16:36:04 +00:00
Vincent Richard
8c6ba0e058 Fixed bug #1721186: thread-safe reference counting. 2007-05-22 19:25:59 +00:00
Vincent Richard
a25333888d Fixed bug #1656547: segfault in urlUtils::decode() if the string ends with '%'. 2007-05-21 16:01:12 +00:00
Vincent Richard
e801eac884 Allow more than one mechanism after AUTH=. 2007-04-24 09:06:41 +00:00
Vincent Richard
a5de2571e3 Better parsing of ESMTP extensions. 2007-03-28 08:28:12 +00:00
Vincent Richard
a88d21a336 Fixed typo in the copyright header, and added missing paragraph about linking. 2007-03-27 12:42:53 +00:00
Vincent Richard
5a2c2e4128 Added support for Courier maildir format. 2007-03-22 16:03:41 +00:00
Vincent Richard
b90ca5481d Fixed warning. 2007-03-01 11:40:48 +00:00
Vincent Richard
15b93aaa59 Fixed bad parsing of RFC-2047 quoting. 2007-02-22 14:26:10 +00:00
Vincent Richard
04509027fb Root part should not be detected as an attachment. 2007-02-06 11:32:29 +00:00
Vincent Richard
d284cfa729 Changed copyright year to 2007. 2007-01-01 20:55:15 +00:00
Vincent Richard
c46500fdd3 Allow 'AUTH=LOGIN' capability for some servers. 2006-12-26 08:28:59 +00:00
Vincent Richard
3263ad2760 Fixed attachment detection with non-MIME message (thanks to Peter Libic). 2006-12-14 21:38:04 +00:00
Vincent Richard
f95b91c547 Fixed invalid reuse of cert with gnutls_x509_crt_import (thanks to Benjamin Biron). 2006-12-08 13:07:06 +00:00
Vincent Richard
58594efcd8 Allow a line containing only spaces as header separator. 2006-12-05 19:36:57 +00:00
Vincent Richard
386fefeb0f Check for space/tab instead of using isspace(). 2006-11-24 13:22:28 +00:00
Vincent Richard
afc1548ac4 Preferred block size for streams. 2006-11-18 09:27:30 +00:00
Vincent Richard
c31f38f108 Temporary fix for socket stream copy. 2006-11-17 22:58:29 +00:00
Vincent Richard
8f7a3ab27a Fixed maximum line length bug. 2006-11-17 22:57:48 +00:00
Vincent Richard
f34baf40b2 Imbue classic 'C' locale for unformatted output. 2006-11-17 22:56:27 +00:00
Vincent Richard
84078f6bc1 Fixed typo causing bad line length computation in RFC-2047 Base64 output. 2006-11-17 14:59:10 +00:00
Vincent Richard
64d91947c3 Fixed reference + do not clear stream in adapters. 2006-11-15 10:41:35 +00:00
Vincent Richard
ae0cd86c4f Use std::copy instead of loop (thanks to Michal Rzechonek). 2006-11-14 13:19:57 +00:00
Vincent Richard
b63f6513f2 Use 'char' instead of 'unsigned char' for conversion with std::ctype. 2006-11-09 17:27:18 +00:00
Vincent Richard
f99fc84915 Imbue classic 'C' locale for the output of message parts and protocol commands. 2006-11-08 18:33:18 +00:00
Vincent Richard
c2ec474b03 Fixed compilation problem with GCC 3.3. 2006-10-20 17:48:10 +00:00
Vincent Richard
0894c98959 Renamed 'vmime::platformDependant' to 'vmime::platform'. 2006-10-11 14:52:41 +00:00
Vincent Richard
b2d67de8a9 Reissue EHLO after successful STARTTLS. 2006-10-02 19:51:27 +00:00
Vincent Richard
b79a6ad890 Fixed bug #1096610: non-integral number of chars in RFC-2047 encoded words. 2006-10-02 13:44:00 +00:00
Vincent Richard
4927c22948 Attachment [file]name. 2006-09-04 16:16:00 +00:00
Vincent Richard
29df79e4e5 Fixed parsing when space occurs at the end of the field value. 2006-08-25 14:36:44 +00:00
Vincent Richard
bcaff413ca Do not treat attached text files as text parts. 2006-08-21 13:20:30 +00:00
Vincent Richard
3abf3bdcb8 Fix for message ids without angle brackets. 2006-08-09 07:18:45 +00:00