Commit Graph

27 Commits

Author SHA1 Message Date
Michael Elkins
6f647ae37b fixed maildir message filenames to comply with the maildir(5) specification.
fixed write_strip() and imap_fetch_message() to check the return code of
write() and fsync() to comply with maildir(5) spec.
2001-10-03 00:01:18 +00:00
Michael Elkins
e2f1cd779b we should issue a CAPABILITY even if we aren't going to use ssl/tls so that
cram-md5 auth still works.
2001-10-02 22:46:47 +00:00
Michael Elkins
8af21c5604 handle untagged responses in imap_fetch_message() so that it doesn't bomb
out if new mail arrives while in the process of downloading

noted in BUGS section of man page that if new mail arrives after the initial
message list has been retrieved from the IMAP server, that new mail will not
be fetched until the next invocation of isync.
2001-06-18 21:38:44 +00:00
Michael Elkins
9a5b57eb7d isync should continue to process additional mailboxes even if there is an
error with a previous mailbox.

added -a (--all) flag to synchronize all mailboxes defined in ~/.isyncrc
2001-06-18 17:49:08 +00:00
Michael Elkins
216c26cceb fixed compiler warnings under Solaris 2.7 2001-02-28 01:02:50 +00:00
Michael Elkins
1b97128b47 rfc2595 compliance patch from Daniel Resare <noa@metamatrix.se>
- CAPABILITY should be reissued after starting TLS since the
	  previous call was not protected
2001-02-19 18:44:15 +00:00
Michael Elkins
1db31aabd7 patch from Daniel Resare <noa@metamatrix.se>:
1 giving a path to a nonexistant rc-file with the -c argument dumps core

  The patch adds a check to ensure that the given rc-file is accessible

2 the error messages given from failed openssl calls are bogus

  The handles the error from SSL_connect () correctly. The bug is
  understndable since the error handling in openssl is quite obfuscated.
  Good news is that the documentation manapges has been greatly updated in
  the latest version (0.9.6). See in particular err(3), ERR_get_error(3)
  and SSL_get_error(3).

  Please note that possible SSL_ERROR_SSL type errors from SSL_read() and
  SSL_write() is not handled. This should also be fixed.

3 connecting using the STARTTLS command with an imap server that is
  configured only to accept the TLSv1 protocol gives an error because isync
  sends an SSLv2 Hello message for backwards compability. (This is the case
  with the uw-imap 2000 that ships with redhat-7.0)
  I've read RFC2595 several times to see if it says something about
  compability SSL2/SSL3 hello messages but can't find anything. IMHO the
  correct thing to do is change the default to not use SSL2/3 compability
  hello when using the STARTTLS command but use it if the imaps port is
  used. The patch implements this change

4 repeated calls to SSL_CTX_set_options overwrites the old settings (the
  values needs to be ORed together)

  fixed in the patch

patch from me@mutt.org:
	\Recent messages were put in the cur/ directory instead of new/

	give error message when the LOGIN command fails
2001-02-14 20:46:41 +00:00
Michael Elkins
6dba87f0ec patch from Daniel Resare <noa@metamatrix.se>
- don't initialize ssl support if none of use_sslv* is enabled
2001-02-01 23:35:47 +00:00
Michael Elkins
77358f1706 include <sys/types.h> for off_t
patch from "lorenzo martignoni" <lorenzo.martignoni@technologist.com>
	- fixed uploading of message to IMAP server
2001-01-26 20:21:27 +00:00
Michael Elkins
91d2f60584 fixed cram compilation error under bsd
updated man page
2001-01-24 07:09:28 +00:00
Michael Elkins
7173d07192 added support for tilde (~) expansion in the Mailbox' and CertificateFile'
configuration directives

added `Maildir' configuration command to specify the default location of the
user's mailboxes.  If a relative path is used in a `Mailbox' command, this
path is used as a prefix.
2001-01-16 19:45:08 +00:00
Michael Elkins
b3672634e5 set imap->prefix to be the namespace prefix
update version to 0.5

fixed compilation warnings in imap.c
2001-01-11 10:21:20 +00:00
Michael Elkins
bcecbe5eeb broke config code into config.c
added support for uploading local messages with no UID to the IMAP server

added Expunge configuration option

added CopyDeletedTo configuration option
2001-01-11 10:13:47 +00:00
Michael Elkins
521b68eb63 fixed compilation error with no libssl support ("lorenzo martignoni"
<lorenzo.martignoni@technologist.com>)
2000-12-31 22:17:54 +00:00
Michael Elkins
e585d40076 use imap_close to terminate a connection in imap_open() 2000-12-27 21:16:43 +00:00
Michael Elkins
acd674f93e allow leading whitespace in config files
now possible to sync multiple mailboxes by specifying multiple aliases on
the command line.  IMAP connections are reused if possible.

don't initialize ssl unless we are going to use it.
2000-12-27 21:14:22 +00:00
Michael Elkins
6f4cd030f8 don't use NAMESPACE unless the server supports it 2000-12-23 21:57:06 +00:00
Michael Elkins
b3eb5661eb added CRAM-MD5 authentication support.
parse server capability string to determine if STARTTLS is available
2000-12-23 00:02:42 +00:00
Michael Elkins
074298d482 isync-brokenservers.diff (Jeremy Katz <katzj@linuxpower.org>)
adds support for disabling NAMESPACE, and disable various flavors of TLS/SSL
for use with some broken IMAP servers.
2000-12-22 21:22:24 +00:00
Michael Elkins
04fdf7d120 prompt user if they wish to continue if the server's X.509 certificate can't
be verified.

sync_mailbox should consider uid == 0 to be "unknown"
2000-12-22 19:30:01 +00:00
Michael Elkins
0527181f45 added MaxSize configuration variable
fixed --fast to work robustly without relying on the \Recent flag in
messages
2000-12-22 07:14:32 +00:00
Michael Elkins
a8f9af4296 RFC822.PEEK is obsolete in RFC2060. Use BODY.PEEK[] instead, which does
the same thing

keep track of the uidvalidity so isync can detect if the mailbox on the
server has changed since the last sync.
2000-12-21 23:10:18 +00:00
Michael Elkins
bcd160efb2 can't assume flag order when fetching a message. just search for the
first `{' to find the message size.
2000-12-21 19:11:02 +00:00
Michael Elkins
ba7650c9b7 added generic IMAP list parser and rewrote imap_exec() to handle
arbitrary data instead of hardcoded
2000-12-21 10:24:53 +00:00
Michael Elkins
b6089a2dcb added OpenSSL support 2000-12-21 06:27:05 +00:00
Michael Elkins
21bf53b2ab don't fetch deleted messages when expunging
display number of messages that are to be deleted

flags for \Recent messages were not properly fetched

local messages with updated flags were not corrected renamed
2000-12-21 00:30:53 +00:00
Michael Elkins
f47d0d7c11 initial import 2000-12-20 21:41:21 +00:00