Commit Graph

25 Commits

Author SHA1 Message Date
Michael Elkins
dd22bd3f22 remove tilde backup files for distclean
fixed indentation

added full name to AUTHORS

reformated NEWS blurb for 0.8
2002-01-16 22:23:26 +00:00
Michael Elkins
2f2b123d71 sync_mailbox() did not update the msg struct when flags were changed,
causing the expunge command to fail

remove bogus strfcpy() line
2002-01-16 22:13:19 +00:00
Michael Elkins
d6fe5a92bd added debian build files
fixed indentation

added bug note to manpage about db file format not being architecture
independent
2002-01-16 21:43:58 +00:00
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
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
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
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
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
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
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
91d2f60584 fixed cram compilation error under bsd
updated man page
2001-01-24 07:09:28 +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
ab6decd8a9 display how many messages were fetched from the server 2000-12-31 22:37:36 +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
a954aeec96 fixed sync_mailbox() to correctly write new messages to the local maildir
box (Thomas Roessler <roessler@does-not-exist.org>)
2000-12-22 15:48:04 +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
b3d09b1723 added BUGS section to manpage detailing the fact that we break the
maildir(5) spec by parsing the filename

change message delivery to use the method described in maildir(5)
2000-12-21 18:16:44 +00:00
Michael Elkins
bbbe88e07d use getpass() to get the user's password
unlink the temp file if we are unable to fetch a new message from the
server.

update version to 0.3
2000-12-21 17:51:07 +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