Commit Graph

21 Commits

Author SHA1 Message Date
Oswald Buddenhagen
2d5a73c55d don't hang after failed start_tls()
we'd send a LOGOUT command in plain text while the server was already
expecting an encrypted command, which would typically lead to waiting
for more data and thus an indefinite hang.
so close the socket immediately instead of letting the normal shutdown
path take care of it.
inspired by a patch by Steven Flintham.

-REFMAIL: 4C9AB98E.3000400@lemma.co.uk
2010-10-03 12:05:40 +02:00
Oswald Buddenhagen
608a2863e0 handle failure to store message. this helps with invalid messages like
0-byte files after crashes.
2009-03-21 16:05:51 +00:00
Oswald Buddenhagen
d47cca7dd9 backport: deal with UIDVALIDITY of 0 properly.
CCMAIL: skinner@destiny-denied.co.uk
-REF: 20080822094543.GA3528@ugly.local
2008-08-23 07:55:15 +00:00
Oswald Buddenhagen
d2ccc93584 backport: give the implicitly created imap account config the name of
the store.
2008-04-13 09:57:27 +00:00
Oswald Buddenhagen
5d03247bec backport: don't use #ifdef inside htons() arguments - it can be a macro. 2007-09-22 08:49:05 +00:00
Oswald Buddenhagen
0eb399c672 accept empty SEARCH IMAP responses - reasonable servers omit them
alltogether, but this is allowed, too. patch by
CCMAIL: Alexander Gerasiov <gq@cs.msu.su>
fixes debian bug #413336

fixed in HEAD a year ago - accidentally ...
2007-04-04 13:27:24 +00:00
Oswald Buddenhagen
9a0539868a backport: fix crash due to uninited var when parsing IMAPServer.
-REF: <E1HFuIM-00041h-Nn@sc8-pr-cvs2.sourceforge.net>
2007-02-10 15:41:32 +00:00
Oswald Buddenhagen
3759f0c802 backport:
- un-document "Host imaps:[...]" syntax and introduce new option UseIMAPS
  instead
- apply ted's patch to support UseIMAPS in conjunction with Tunnel
- document that SSLv2 is No Good (TM)
2006-11-01 07:19:26 +00:00
Oswald Buddenhagen
6494cfc438 backport: move assigning default port to the place of use 2006-11-01 07:14:50 +00:00
Oswald Buddenhagen
927feae988 make config parsing more robust against bogus input and report errors
more clearly.
2006-03-19 10:46:33 +00:00
Oswald Buddenhagen
63c065a127 backport: compile fixes 2006-01-31 15:15:00 +00:00
Oswald Buddenhagen
25db6a3c31 revert 1.8 - what was i smoking?! the CREATE argument is already quoted;
we just extracted it from the previous command.
2005-12-17 13:47:51 +00:00
Oswald Buddenhagen
d2753c4188 64-bit cleanness 2005-09-21 16:14:05 +00:00
Oswald Buddenhagen
bf4266eadc quote CREATE argument 2005-03-28 10:43:31 +00:00
Oswald Buddenhagen
e8c769ea76 ignore user-defined flags (for now).
also, split off the backslash from the "core" flag names.
2004-10-17 15:34:53 +00:00
Oswald Buddenhagen
e75ebf75f6 fix segfault due to wrong pointer being passed to parse_response_code.
inspired by Raimar Döffinger
2004-10-17 09:00:15 +00:00
Oswald Buddenhagen
6741bc94d9 remove spurious crlf during cram auth. not sure that this instance of
socket_write should be (re)moved, but as long as the .cont callback is
used only for this ...
investigation & patch by Mike Delaney.
2004-10-17 08:30:02 +00:00
Oswald Buddenhagen
e0cc45044f stdarg.h at the right places 2004-09-20 11:28:33 +00:00
Oswald Buddenhagen
af0b75a5dc stddef.h for offsetof 2004-09-08 16:14:12 +00:00
Oswald Buddenhagen
1b75236135 fix -C for imap mailboxes:
- SELECT does not return [TRYCREATE]
- fix bit field truncation
2004-08-13 11:03:12 +00:00
Oswald Buddenhagen
130664b622 The Big Rewrite. too many change to list them all.
as opposed to earlier threats, BerkDB was not entirely dropped; i
suppose the isync 0.7 -> 0.8 change had a reason, so i added an
alternative UID storage scheme.
note that BDB 4.0 is not sufficient, as the db->open function changed in
an incompatible way ...

i updated the debian packaging except for a changelog entry.
note that i removed the upgrade blurb, as upstream now has a smooth
upgrade path down to at least isync 0.4.
2004-03-27 16:07:20 +00:00