aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
Commit message (Collapse)AuthorAgeFilesLines
* Factor out common NTLM code.Matthias Andree2010-10-091-47/+3
|
* Fix dead assignments.Matthias Andree2010-10-091-1/+1
|
* Remove some unneeded SASL cancellations.Matthias Andree2010-09-251-7/+0
|
* Cancel SASL AUTH properly on GSSAPI errors.Matthias Andree2010-09-251-1/+0
|
* Don't try to match trailing literals in sscanf,Matthias Andree2010-08-281-5/+16
| | | | | but rather note how much input was consumed, stop short of the string, and use strncasecmp to match explicitly.
* parse response to FETCH in a more flexible mannerSunil Shetye2010-08-281-37/+39
| | | | remove for loop in imap_fetch_headers()
* Avoid wedging Exchange 2007 with GSSAPI.Matthias Andree2010-08-211-1/+1
| | | | | | | | | Exchange 2007 wedges if we try GSSAPI authentication and fail for lack of suitable credentails (for instance, because the user did not run kinit). Only try GSSAPI automatically if we have credentials. Reported by Patrick Rynhart, Debian Bug #568455, and Alan Murrell, to the fetchmail-users list.
* Add --sslcertfile option and FETCHMAIL_NO_DEFAULT_X509_PATHS env var,Matthias Andree2010-04-181-1/+1
| | | | and always load the default X.509 trust stores, unless the latter is set.
* Fix lots of warnings, most around string literals...Matthias Andree2010-03-181-1/+1
| | | | | | | ...that were converted to char* when they should have been converted to const char *. Use braces for empty if/else statements.
* Fix input type for isalnum().Matthias Andree2010-02-041-1/+1
| | | | svn path=/branches/BRANCH_6-3/; revision=5477
* Stricter validation of IMAP responses containing byte or message counts.Matthias Andree2010-02-041-12/+33
| | | | svn path=/branches/BRANCH_6-3/; revision=5469
* IMAP SEARCH fixes & FETCH fallback by Sunil ShetyeMatthias Andree2010-02-041-39/+130
| | | | | | | | | | | | | | | | | * The IMAP client now uses "SEARCH UNSEEN" rather than "SEARCH UNSEEN NOT DELETED" again on IMAP2, to fix a regression in fetchmail 6.2.5 reported by Will Stringer in June 2004. (Sunil Shetye) * The IMAP client now uses "SEARCH UNSEEN UNDELETED" on IMAP4 and IMAP4r1 servers (Sunil Shetye). * Workaround: The IMAP client now falls back to "FETCH n:m FLAGS" if the server does not support "SEARCH". (Sunil Shetye) * The IMAP client now requests message numbers in batches of 1,000 to avoid problems if there are more than 1860 unseen messages. (Sunil Shetye) Note that this wasn't security relevant because fetchmail would only read up to the maximum buffer size and leave the remainder of the string unread, going out of synch afterwards. svn path=/branches/BRANCH_6-3/; revision=5468
* Clarify IMAP BYE response logging.Matthias Andree2010-01-221-1/+1
| | | | svn path=/branches/BRANCH_6-3/; revision=5462
* Fix IMAP IDLE and untagged (* ...) response parser, by Sunil Shetye.Matthias Andree2010-01-221-139/+159
| | | | | | | | | | | | | The IMAP client no longer skips messages from several IMAP servers including Dovecot if fetchmail's "idle" is in use. Causes were that fetchmail (a) ignored some untagged responses when it should not (b) relied on EXISTS messages in response to EXPUNGE, which aren't mandated by RFC-3501 (the IMAP standard) and aren't sent by Dovecot either. Fix by Sunil Shetye (the fix also consolidates IMAP response handling, improving overall robustness of the IMAP client), bug report and testing by Matt Doran, with further hints from Timo Sirainen. svn path=/branches/BRANCH_6-3/; revision=5459
* Preliminary Yahoo/Zimbra IMAP ID ("guid" "1") support. Not ready for prime-time.Matthias Andree2009-06-301-0/+9
| | | | svn path=/branches/BRANCH_6-3/; revision=5363
* Support NIL as body length (Exchange). Fixes Berlios Bug #11980.Matthias Andree2009-04-231-0/+7
| | | | svn path=/branches/BRANCH_6-3/; revision=5269
* Fix a few compiler warnings around implicit conversion or extra ";".Matthias Andree2009-01-141-2/+2
| | | | svn path=/branches/BRANCH_6-3/; revision=5261
* Merge Daniel Richard G.'s --sslcommonname option.Matthias Andree2008-03-071-7/+12
| | | | | | | | Exception from no-features policy on 6.3.X is made to keep people away from doing more dangerous things in order to get rid of CommonName mismatch warnings. svn path=/branches/BRANCH_6-3/; revision=5165
* Fix Berlios Bug #11797, imap_mark_seen doesn't consider expunged messagesMatthias Andree2007-12-261-0/+4
| | | | | | | (and marks the wrong messages seen after expunges, leading to data loss in 'keep flush' configurations). Report and patch by Alexander Cherepanov. Thanks\! svn path=/branches/BRANCH_6-3/; revision=5147
* Patch by Sunil Shetye:Matthias Andree2006-12-161-3/+15
| | | | | | | Track IDLE start time for IMAP, some servers do not reset their internal counters when sending information asynchronously. svn path=/branches/BRANCH_6-3/; revision=4990
* Trash shroud store.Matthias Andree2006-11-271-0/+2
| | | | svn path=/branches/BRANCH_6-3/; revision=4965
* First step towards really fixing TLS vuln, CVE-2006-5867, still incomplete.Matthias Andree2006-11-261-53/+55
| | | | svn path=/branches/BRANCH_6-3/; revision=4962
* Fix TLS issue: fail if sslfingerprint, sslproto tls1 or sslcertck are ↵Matthias Andree2006-11-121-62/+58
| | | | | | configured and STARTTLS fails. Only by omitting all of these options, fetchmail will try opportunistic TLS. svn path=/branches/BRANCH_6-3/; revision=4929
* Snapshot 6.3.6-rc1.Matthias Andree2006-11-011-2/+9
| | | | svn path=/branches/BRANCH_6-3/; revision=4925
* Add IMAP AUTH=EXTERNAL support. BerliOS Patch #1095.Matthias Andree2006-08-141-2/+36
| | | | | | | Courtesy of Götz 'nimrill' Babin-Ebell. This patch also makes --sslproto arguments case insensitive. svn path=/branches/BRANCH_6-3/; revision=4896
* Log opportunistic TLS upgrades in verbose mode.Matthias Andree2006-08-071-2/+7
| | | | svn path=/branches/BRANCH_6-3/; revision=4881
* * IMAP4 patch by Sunil Shetye:Matthias Andree2006-05-211-14/+18
| | | | | | | - do not depend on server updating RECENT counts at all - also enter IDLE loop when messages are present on the server. svn path=/branches/BRANCH_6-3/; revision=4847
* Make IMAP4 IDLE work on servers that do not update RECENT counts. Reported ↵Matthias Andree2006-05-151-3/+5
| | | | | | by Lars Tewes. svn path=/branches/BRANCH_6-3/; revision=4842
* Add two missing comments.Matthias Andree2006-05-151-2/+2
| | | | svn path=/branches/BRANCH_6-3/; revision=4840
* When using NTLM authentication, use regular IMAP response code handler after Matthias Andree2006-05-121-4/+2
| | | | | | | completing NTLM handshake, for robustness and consistency. Taken from the NetBSD portable packages collection, patch-ac. svn path=/branches/BRANCH_6-3/; revision=4825
* Further cleanups to compile with C++ compiler.Matthias Andree2006-03-151-1/+1
| | | | svn path=/branches/BRANCH_6-3/; revision=4744
* Do not send EXPUNGE after NOOP-idling (Sunil Shetye's patch, fetchmail-users@).Matthias Andree2006-03-141-10/+17
| | | | svn path=/branches/BRANCH_6-3/; revision=4739
* Fix more compiler warnings.Matthias Andree2006-03-141-15/+23
| | | | svn path=/branches/BRANCH_6-3/; revision=4736
* merge Mirek's fetchmail-signed.patchMatthias Andree2006-03-141-7/+5
| | | | svn path=/branches/BRANCH_6-3/; revision=4734
* Merge Sunil Shetye's patch to fix NOOP-based IDLE emulation.Matthias Andree2006-03-101-23/+29
| | | | | | | Bug reported by Casper Gripenberg and Brendan Lynch. Another patch (not merged) sent by Brendan Lynch. svn path=/branches/BRANCH_6-3/; revision=4724
* Handle other clients concurrently accessing IMAP mailboxes better. Matthias Andree2006-03-011-11/+33
| | | | | | | | Fetchmail quits the poll if the EXPUNGE count does not match expectations, and servers not updating RECENT counts after EXPUNGE are handled in a better way. (Patch by Sunil Shetye.) svn path=/branches/BRANCH_6-3/; revision=4700
* don't complain about READ-ONLY IMAP folders in --fetchall --keep mode.Matthias Andree2006-01-201-0/+5
| | | | | | Reported Alexander Zangerl, Debian Bug#348964. svn path=/branches/BRANCH_6-3/; revision=4665
* Use a simplified version of Sunil's patch to cope with servers Matthias Andree2005-12-181-5/+24
| | | | | | | such as mail.internode.on.net bld-mail04 that return the UID in response to RFC822.HEADER or RFC822.SIZE. Reported by Jason White. svn path=/branches/BRANCH_6-3/; revision=4555
* Revise a check that didn't work on 64-bit SUSE Linux 10.0.Matthias Andree2005-11-271-1/+1
| | | | svn path=/trunk/; revision=4480
* Use more stringent check for untagged responses - we check that the start ↵Matthias Andree2005-11-171-69/+77
| | | | | | with "*" SPACE. svn path=/trunk/; revision=4450
* Patch to make imap_trail actually work. Sunil Shetye.Matthias Andree2005-11-141-2/+3
| | | | svn path=/trunk/; revision=4441
* When eating message trailer, don't see any line containing "OK" as theMatthias Andree2005-11-091-4/+7
| | | | | | | | end of the trailer, but wait for the proper tagged OK line. To work around the qmail + Courier-IMAP problem in Debian Bug#338007. svn path=/trunk/; revision=4396
* Global variable cleanup, to fix daemon mode reinitialization problems.Matthias Andree2005-10-211-12/+27
| | | | | | Patch by Sunil Shetye. svn path=/trunk/; revision=4362
* Properly cast arguments of ctype is*()/to*() functions to unsigned char.Matthias Andree2005-09-251-2/+2
| | | | svn path=/trunk/; revision=4324
* Make SSL connection failures PS_SOCKET (not PS_AUTHFAIL). Reported by Thomas ↵Matthias Andree2005-09-211-1/+1
| | | | | | Wolff. svn path=/trunk/; revision=4314
* Expunge between IMAP folders when polling multiple folders. Sunil Shetye.Matthias Andree2005-09-211-22/+18
| | | | | | Fix IMAP expunged message counting. Sunil Shetye. svn path=/trunk/; revision=4301
* Large protocol independence patch.Matthias Andree2005-08-281-4/+7
| | | | svn path=/trunk/; revision=4280
* Remove port/service dualism and make everything a service.Matthias Andree2005-08-021-5/+0
| | | | svn path=/trunk/; revision=4219
* Fix IMAP code to use password of arbitrary length from configurationMatthias Andree2005-07-231-3/+10
| | | | | | file (although not when read interactively). Debian Bug#276424. svn path=/trunk/; revision=4170
* strncpy -> strlcpy. Mark 'bogus message count\!' message translatable.Matthias Andree2005-07-201-5/+4
| | | | svn path=/trunk/; revision=4150