Commit Graph

525 Commits

Author SHA1 Message Date
Michael Elkins
cb0d4b54b3 remove the uid from the db when a message is deleted from the maildir
optimize db fetch/store to not copy the base filename
2002-01-16 21:22:43 +00:00
Michael Elkins
c121ec912f updated year in copyright notice
the uid for each message in the maildir is now stored in a dbm database
rather than the filename.  this change was necessary because isync became
confused if you copied a message to another folder, in which case the uid
was invalid.

as a result of the above change, isync now acquires a mutex on the mailbox
to protect the dbm database from concurrent access.

main() was reworked to continue gracefully when an error is encountered, and
to always call maildir_close() so that the lock can be disabled, and the
database closed.
2002-01-16 19:47:28 +00:00
Michael Elkins
2c648da5cf post 0.7-release commit 2001-11-20 18:28:18 +00:00
Michael Elkins
3fe6f3f086 added --create/-C command line option to force creation of the local
maildir-style mailbox if nonexistent

debug.h was not included in isync_SOURCES in Makefile.am
2001-11-20 18:06:09 +00:00
Michael Elkins
f0c7fdf008 added memory debugging code
fixed memory leak in free_list()

free memory associated with global settings on exit
2001-11-19 19:41:14 +00:00
Michael Elkins
de1f9e1941 remove c++ style comments
use %lu and cast off_t to unsigned long in printf()
2001-11-16 21:23:14 +00:00
Michael Elkins
e02975e888 Added MaxMessages patch from Eivind Eklund <eivind@FreeBSD.org>.
config_defaults() can just use memcpy() instead of assigning each struct
member individually.

config_defaults() can be declared static
2001-11-15 23:59:27 +00:00
Michael Elkins
06a5edb452 move strndup() code into config.c for less complexity
change AC_REPLACE_FUNC(strndup) to AC_CHECK_FUNCS(strndup)

sed expression checking for gcc-3.0 should be quoted beccause it
fails under Solaris 2.7
2001-11-14 17:40:10 +00:00
Michael Elkins
2881d173b5 strndup() could return a non-NULL terminated string
size_t should be printed with %lu

when expending tildes (~), an extra slash was inserted after the user's home
directory
2001-11-13 00:36:44 +00:00
Michael Elkins
bb62e2c18d merge maildir_sync() and maildir_close(). the maxuid in a maildir still
needs to be updated in --fast mode, and the sync code already checks to see
if any changes were made to the mailbox.
2001-11-12 23:03:33 +00:00
Michael Elkins
49b36e7869 add FreeBSD to the list of tested platforms 2001-11-09 00:35:07 +00:00
Michael Elkins
087fb470e7 update version to 0.7
detect short write in write_strip()

fix compilation warnings with gcc-2.95.4
2001-11-09 00:23:50 +00:00
Michael Elkins
c84a888a7d set compiler warnings for gcc-3.0 as well
display message with count of uploaded messages

--quiet now supresses warnings in sync_mailbox()

fixed compiler warnings with -Wshadow
2001-10-31 19:50:01 +00:00
Michael Elkins
9647c79504 post 0.6 commit 2001-10-31 06:06:06 +00:00
Michael Elkins
e3797d65da add strndup replacement function for systems which lack it 2001-10-30 22:57:03 +00:00
Michael Elkins
8ca8c2b289 fixed broken code in maildir_clean_tmp() 2001-10-03 17:10:40 +00:00
Michael Elkins
c4050700c0 added code to clean the tmp directory in a maildir to comply with
maildir(5)
2001-10-03 16:48:17 +00:00
Michael Elkins
608386f918 forgot to add code to parse the `Delete' option 2001-10-03 06:32:16 +00:00
Michael Elkins
cb2f6e3ee6 forgot conditional #if HAVE_LIBSSL around setting of .use_imaps in main()
from command line arguments
2001-10-03 06:18:45 +00:00
Michael Elkins
bfffeffff6 update Copyright printed by --help
add compile time option list to --help output
2001-10-03 06:15:01 +00:00
Michael Elkins
e015398ff2 added `Delete' configuration option to force -d option
sync_mailbox() didn't consider MaxSize == 0 to mean "unlimited".

load_config() needs to print a newline in its error messages since
next_arg() kills the newline of the line that was read out of the config
file.
2001-10-03 05:42:22 +00:00
Michael Elkins
1efcad03f8 update TODO list with action items 2001-10-03 00:03:14 +00:00
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
4b102ee6ec the `Expunge' config directive didn't work since only the -e command line
argument was consulted.
2001-10-02 23:43:09 +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
891fab1a7d find_box() should attempt to expand all filenames if none of the other
methods found a match.
2001-07-18 18:56:11 +00:00
Michael Elkins
0f7823a4bf fixed to not expand filenames until they are used inside of maildir_open(),
so that aliases are not required for simple filenames.
[re: http://bugs.debian.org/102255]
2001-07-18 18:49:55 +00:00
Michael Elkins
5eaa4e5512 --host option didn't check for imaps: prefix 2001-06-22 23:30:41 +00:00
Michael Elkins
ea361ad116 fixed core when specifying multiple mailboxes on the command line 2001-06-21 20:45:50 +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
af941779f4 post 0.5-release commit 2001-06-13 17:13:30 +00:00
Michael Elkins
f843ffcdd4 updated ChangeLog. removed smtppush binary. 2001-06-13 16:57:25 +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
8944538399 always put changed messages in the cur/ subdirectory since they are no
longer new.

don't set \Seen implicitly for messages in the cur/ folder.  Require the S
flag on the message since Mutt will move Old (unread, but not recent)
messges into cur/.
2001-01-09 20:09:35 +00:00
Michael Elkins
32677da976 patch from Hugo Haas <hugo@larve.net>
-c was not specified in the getopt*() calls

	set global password to the one the user inputs and use that as the
	default for remaining mailboxes
2001-01-08 09:45:35 +00:00
Michael Elkins
ee0de20cf7 added --with-ssl-dir to specify an alternate installation of OpenSSL 2001-01-05 21:20:48 +00:00
Michael Elkins
21ac8842b4 pre 0.4 commit.
updated rpm spec file
2000-12-31 22:39:37 +00:00
Michael Elkins
ab6decd8a9 display how many messages were fetched from the server 2000-12-31 22:37:36 +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
d03ce3f73d fixed config parser to accept arbitrary whitespace 2000-12-28 18:44:06 +00:00
Michael Elkins
e585d40076 use imap_close to terminate a connection in imap_open() 2000-12-27 21:16:43 +00:00