Commit Graph

224 Commits (51f2d2b6dda1417a824a01315eca2f70646fbd42)

Author SHA1 Message Date
Krista Bennett cc4c5c5e3e missing header file, plus weird static thing persists 2017-10-24 23:10:49 +02:00
Krista Bennett 7d1c362d1d Removed static from function impacting windows build 2017-10-09 11:43:19 +02:00
Krista Grothoff 3274c7b373 Merged patch to fix CVE-2017-8825 2017-10-06 15:41:03 +02:00
Krista Grothoff 268c806127 Added Dirk's patch for iOS compilation 2016-12-22 02:48:15 +01:00
Krista Grothoff 27bab78968 modifications for memoryhole and main texts in attachments 2016-12-13 15:11:40 +01:00
Krista Grothoff a6038fd284 Added detection and mitigation for CRCR pattern appearing in empty strings and foiling parses for some headers which had empty values (e.g. SpamAssassin). 2016-09-14 12:11:39 +02:00
Edouard Tisserant c762e2ec11 Merge https://github.com/dinhviethoa/libetpan 2015-10-02 21:23:37 +02:00
Hoa V. DINH 2bbd57231f Fixed crash in email generation 2015-07-01 12:29:36 -07:00
Yuk Lai Suen 1f970d7a3e Update parameter for mailimap_has_extension and mailimap_has_authentication to use const char * 2015-06-17 23:16:33 -07:00
Hoa V. Dinh 9d88f56dde Fixes of the workaround for qq.com IMAP server 2015-04-27 15:34:01 -07:00
Hoa V. Dinh 66b3650d87 Implemented workaround for qq mail (#200) 2015-04-27 14:38:47 -07:00
Hoa V. Dinh 959f87c709 Fixed #198, #173: parse missing closing quote if it's not parsed as part of a word with an opening quote in a phrase 2015-04-27 10:56:30 -07:00
Lin Zhan a52aef4819 Update mailimap.c
#190  parse response
2015-03-26 13:59:49 +08:00
Hoà V. DINH 13de63f249 Merge pull request #193 from zhanleewo/patch-1
Added macro LIBETPAN_HAS_MAILIMAP_163_WORKAROUND
2015-03-25 09:47:29 -07:00
Lin Zhan 1f8408718f Update mailimap.h
Changed ENABLE_163_WORKAROUND to LIBETPAN_HAS_MAILIMAP_163_WORKAROUND
2015-03-25 15:22:34 +08:00
Lin Zhan 8aeca42f2a Update mailimap.h 2015-03-25 15:19:59 +08:00
Lin Zhan b66b77bafb Add macro ENABLE_163_WORKAROUND
I have added this feature into the mailcore2,  the compiler will ignore this feature if someone compile the new version of mailcore2 without this patch and this macro definition.
2015-03-25 15:15:06 +08:00
Hoà V. DINH 050f15f30c Merge pull request #190 from zhanleewo/patch-1
Implemented workaround for 163.com servers.
2015-03-24 11:46:13 -07:00
Hoa V. Dinh 36581edc90 Send top-level multiple search without parenthesis 2015-03-24 11:38:14 -07:00
Lin Zhan d3770a9835 Update mailimap.c
changed parameter name from `imap` to `session`.
2015-03-24 17:49:17 +08:00
Lin Zhan 4175a4ebaf Update mailimap.c 2015-03-24 17:45:36 +08:00
Lin Zhan 40518e0f5d Update mailimap.h 2015-03-24 17:44:55 +08:00
Lin Zhan 12f9dd83c3 Update mailimap_types.h
changed mailimap's member `complex_command_tag_enabled` to `is_163_workaround_enabled`.
2015-03-24 16:04:30 +08:00
Lin Zhan 00b201eb31 Update mailimap.h
changed 
` int mailimap_is__complex_command_tag_enabled(mailimap * imap); `
` void mailimap_set_complex_command_tag_enabled(mailimap * imap, int enabled);`
to
`int mailimap_is_163_workaround_enabled(mailimap * imap);`
`void mailimap_set_163_workaround_enabled(mailimap * imap, int enabled);`
2015-03-24 16:02:08 +08:00
Lin Zhan 293143a246 Update mailimap.c
changed 
` int mailimap_is__complex_command_tag_enabled(mailimap * imap); `
` void mailimap_set_complex_command_tag_enabled(mailimap * imap, int enabled);`
to
`int mailimap_is_163_workaround_enabled(mailimap * imap);`
`void mailimap_set_163_workaround_enabled(mailimap * imap, int enabled);`
2015-03-24 15:58:43 +08:00
Lin Zhan 1ea3f883cd Update mailimap.c 2015-03-23 15:06:21 +08:00
Lin Zhan 382bccb740 Update mailimap.c 2015-03-23 15:04:49 +08:00
Lin Zhan dc4410f9c7 Update mailimap.h 2015-03-23 15:03:27 +08:00
Lin Zhan 09c5ad3b39 Update mailimap.h 2015-03-23 15:02:30 +08:00
Lin Zhan ce9989d749 Update mailimap_types.h 2015-03-23 15:01:02 +08:00
Lin Zhan f0f5b4a64d Update mailimap.c 2015-03-20 16:59:43 +08:00
Lin Zhan 0d2e1b28f3 Update mailimap.c
163 mail server will reject the command which with a number tag.
2015-03-20 16:50:51 +08:00
Volker Birk 9a2ace2814 renaming functions on request 2015-03-09 14:20:48 +01:00
Volker Birk 0d32d30e49 renaming wrappers.h to syscall_wrappers.h 2015-03-06 09:14:05 +01:00
Volker Birk 25cd0df373 wrappers applied 2015-03-05 16:33:56 +01:00
Hoa V. Dinh dcf4861553 #183: added comment 2015-01-26 09:24:12 -08:00
Ewan Mellor 725716250a Fix IMAP ID send.
Use mailimap_quoted_send rather than mailimap_astring_send when
sending names and values inside mailimap_id_param_send.
This means skipping the "workaround for buggy Courier-IMAP that
does not accept quoted-strings for fields name but prefer atoms"
and instead always sending quoted strings.

RFC 2971 (with reference to RFC 2060) is clear that these fields
may only be quoted strings or literals, not atoms.  Yahoo's server
rejects this command when atoms are sent (and it is correct to do so).

We shouldn't break compat with well-behaving servers as a workaround
for buggy ones, so using quoted strings here is the best choice.
2015-01-26 03:29:32 -08:00
Hoa V. DINH b2fbdaf28e Fixed warnings reported by PVS-Studio 2015-01-19 14:03:47 -08:00
Hoa V. Dinh 3310162627 Handle properly stream errors 2015-01-14 11:10:31 -08:00
Viktor Gedzenko 85a39afe95 Added timeout handling while SMTP auth 2015-01-14 11:43:26 +02:00
Hoa V. Dinh c61bb340d8 More exports for windows 2014-11-16 14:44:19 -08:00
Hoa V. Dinh 3c0de18eee Removed duplication 2014-11-16 12:03:00 -08:00
Hoa V. Dinh c5103de9ff Exports for windows, cleanup 2014-11-16 11:51:01 -08:00
Hoa V. Dinh 5cd077edb2 Dll exports for win32 2014-11-15 22:25:58 -08:00
Hoa V. DINH 4079ddce0a Fixed build for Linux 2014-10-21 22:58:56 -07:00
Hoa V. DINH 7020007cfc Parse this: =?utf-8?Q?=D0=92=D0=B5=D1=81=D1=82=D0=BD=D0=B8=D0=BA=20=D0=A7=D0=B8=D0=BF=D1=82=D1=80=D0=B8=D0=BF=D0=B0=C2=AE=20:)?= <cheaptripinsider@moitrip.ru>. The colon didn't go through. (https://github.com/MailCore/mailcore2/issues/870) 2014-10-21 22:30:32 -07:00
Hoa V. DINH 126bd7c564 Fixed crash (#919) 2014-10-21 08:00:14 -07:00
Hoa V. DINH 6f269a36ac Fixed error 2014-10-21 00:01:00 -07:00
Hoa V. DINH d03bc62ce1 Fixed warnings. Fixed 32/64 conversions 2014-10-20 23:59:59 -07:00
Hoa V. DINH cba71ca522 If BYE response data is received, return a stream error instead of returning a parse error (fixed #42) 2014-10-20 22:51:45 -07:00