2006-04-08  Holger Weiss  <holger@jhweiss.de>

 * imap.c: Return silently if server closed connection during logout.

 * sock.c: Return immediately if an SSL close_notify was received in
   sock_read().

 * sock.c: Increased the socket timeout from 15 to 60 seconds.

2005-11-03  Holger Weiss  <holger@jhweiss.de>

 * imap.c: Receive buffer must be null-terminated immediately in read_imap(),
   since it might be passed to strstr(3) in order to look for the IMAP command
   tag.

2005-01-29  Holger Weiss  <holger@jhweiss.de>

 * imap.c: Set AUTHENTICATED state in imap_connect() instead of in
   imap_login() if imap_read() returned IMAP_PREAUTH.

 * conf.c, conf.h, Makefile.am, Makefile.no_autoconf, imapdel.c, imapdel.h,
   readconf.c, readconf.h, session.c, session.h, textproc.c, textproc.h,
   text.c, text.h: Renamed imapdel.c and imapdel.h to session.c and session.h.
   Renamed readconf.c and readconf.h to conf.c and conf.h.  Renamed textproc.c
   and textproc.h to text.c and text.h.

2005-01-24  Holger Weiss  <holger@jhweiss.de>

 * imap.c, imap.h, imapdel.c, readconf.c, readconf.h, sock.c, sock.h: Full
   STARTTLS support.

 * imapdel.c: Fixed a bug which resulted in a wrong number of deleted messages
   being reported if deletemail was called without "-n".

 * imap.h, imapdel.c: The new IMAP_ERROR() macro provides an error string for
   the according integer error code.

 * imap.c, imap.h, imapdel.c: IMAP server EXISTS responses are recorded in
   order to print the total number of messages to the standard output stream.

 * deletemail.1, deletemailrc.example, NEWS, TODO: Updated the documentation
   with regard to the 0.4 release.

2005-01-23  Holger Weiss  <holger@jhweiss.de>

 * Makefile.am, Makefile.no_autoconf, stars.c, stars.h, textproc.c,
   textproc.h: Renamed stars.c and stars.h to textproc.c and textproc.h and
   moved crlf_terminated() and extract_line() from imap.c and imap.h to the
   new files.

2005-01-17  Holger Weiss  <holger@jhweiss.de>

 * imap.c: Fixed a bug which mangled the IMAP LOGIN command on some systems,
   depending on the snprintf(3) implementation.  This bug was reported by
   Andreas Rust <rust@webnova.de>.

 * imap.c: If the connection is lost, read_imap() no longer returns IMAP_FATAL
   silently.  Instead, if there is data on the response buffer, it will be
   parsed and printed as usual prior to returning IMAP_FATAL.

 * imap.c, imap.h, sock.c, sock.h: Split the new function sock_ssl_open() from
   sock_open() and added imap_starttls() in order to provide STARTTLS support.

 * readconf.c: Allow GLOBAL declerations only at the top of the configuration
   file.

2005-01-06  Holger Weiss  <holger@jhweiss.de>

 * imap.c: If multiple [ALERT]s are sent by the server within one response,
   all of them will be printed to the standard error stream.

2005-01-02  Holger Weiss  <holger@jhweiss.de>

 * deletemail.1, deletemailrc.example, NEWS, README, TODO: Updated the
   documentation with regard to the new features in the 0.3 release.

2005-01-01  Holger Weiss  <holger@jhweiss.de>

 * sock.c: For SSL connections, sock_peek() now says that data is available if
   either recv(3) returns >= 0 and/or SSL_pendig(3) returns > 0.

 * imap.c: Better error handling if the server closed the connection.  The
   behaviour now depends on whether or not we're logging out and whether or
   not the server sent data prior to the EOF.

 * readconf.c: New INITIALIZE_CONFIG() and CHECK_USE_GLOBAL_*() macros.

2004-12-31  Holger Weiss  <holger@jhweiss.de>

 * configure.ac, sock.c: If the system lacks a useable random device, we try
   to get some random seed data for SSL connections ourselves.

 * sock.c: For SSL connections, we check whether the CommonName (as set in the
   peers certificate) matches the "host:" value given by the user.  If not, an
   error will be printed to the standard error stream.

 * report.c, report.h, sock.c: Use ERR_print_errors_fp(3) for report()ing
   OpenSSL error messages.

 * configure.ac, system.h: Check for C99 bool type; if the system does not
   have it, we define it ourselves.

 * Makefile.am, Makefile.no_autoconf, Makefile.no_configure: Renamed
   Makefile.no_configure to Makefile.no_autoconf.

2004-12-30  Holger Weiss  <holger@jhweiss.de>

 * imap.c, imap.h, imapdel.c: Use generic imap_store() function instead of
   imap_delete().

2004-12-29  Holger Weiss  <holger@jhweiss.de>

 * sock.c: The second recv(3) call still used the locally defined SOCK_BUFSIZE
   as it's length argument, not the callers buffer length.  In our case, this
   was non-critical, since our caller in imap.c uses a 4 kilobyte buffer,
   whereas sock.c used a 1 kilobyte buffer.  However, the bug is fixed now.

 * imapdel.c, imap.c, imap.h, readconf.c, readconf.h, sock.c, sock.h: Added
   basic OpenSSL support.

2004-12-25  Holger Weiss  <holger@jhweiss.de>

 * Makefile.am, system.h: Added system.h to CVS repository in order to isolate
   platform specific definitions.

 * snprintf.c, system.h: Added snprintf.h to CVS repository, currently only
   for NeXTStep and friends.

2004-12-22  Holger Weiss  <holger@jhweiss.de>

 * deletemail.1, deletemailrc.example, NEWS, README, TODO: Updated the
   documentation with regard to the new features in the 0.2 release.

2004-12-21  Holger Weiss  <holger@jhweiss.de>

 * imapdel.c, imapdel.h, imap.c, imap.h, Makefile.am: Added imapdel.c and
   imapdel.h to CVS repository and put IMAPdelete() and free_folders() into
   the new files, so that imap.c and imap.h now implement and export the IMAP
   protocol commands, whereas imapdel.c controls the deletion of mail via IMAP
   and exports IMAPdelete().

 * deletemail.c, imap.c, imap.h, imapdel.c, imapdel.h, readconf.c, readconf.h,
   sock.c, sock.h: New configuration file variables "port", "unseen",
   "expunge" and "use_uid"; "host" replaces "server".

 * imap.c, sock.c: An unexpected TCP FIN sent by the server is now handled
   properly.

 * imap.c, sock.c, sock.h: The receive buffer is no longer allocated in
   sock.c, but instead (much better) handled by recv_resp() in imap.c,
   including the decision whether or not to wait for additional data.

 * imap.c: Escape `#', `\' and `&' according to RFC 2060 in quotify().

 * imap.c: extract_line() is now used for printing server responses.

 * imap.c: If the server sends an unexpected NO, BAD, BYE or ALERT, the
   message (if any) is printed (using extract_line()).

 * imap.c: Split the new function parse_search_response() from imap_search().

 * deletemail.c: New command line switch "-s".

 * deletemail.c: By default, a warning is printed to the standard error stream
   if the configuration file is group or world readable.

 * readconf.c: New configuration keywords GLOBAL and ACCOUNT.

 * readconf.c: save_bool(), save_int() and save_str() are now used for saving
   configuration variables.

 * deletemailrc.example, Makefile.am: Added example ~/.deletemailrc to CVS
   repository.

 * Makefile.am, Makefile.no_configure: Added Makefile for building without
   configure script to CVS repository.

 * .indent.pro: Added BSD indent(1) configuration to CVS repository.

2004-12-14  Holger Weiss  <holger@jhweiss.de>

 * deletemail.c, imap.c, readconf.c, readconf.h: Allow multiple folders per
   connection.

 * readconf.c: Added check_conf() which is called immediately before the
   linked list of config structures is returned.  Default values are set in
   there if not specified by the user.

 * Makefile.in, aclocal.m4, config.h.in, configure, depcomp, install-sh,
   missing: Deleted the stuff generated by GNU autotools from CVS repository.

2004-12-13  Holger Weiss  <holger@jhweiss.de>

 * readconf.c: More robust configuration file parsing.  If the last character
   of a configuration line is a backslash, the following line will be appended
   prior to parsing.  Whitespace and `#' must be escaped using a backslash if
   the value isn't quoted.  If the value is quoted, the quote sign must be
   escaped using a backslash.  A `\' must always be escaped using a backslash.
   Better syntax checking and debug messages.

2004-12-09  Holger Weiss  <holger@jhweiss.de>

 * aclocal.m4, ChangeLog, config.h.in, deletemail.c, imap.c, install-sh,
   malloc.c, readconf.c, realloc.c, sock.c, stars.h, TODO, AUTHORS, configure,
   COPYING, deletemail.h, imap.h, Makefile.am, missing, readconf.h, report.c,
   sock.h, strcasestr.c, configure.ac, deletemail.1, depcomp, INSTALL,
   Makefile.in, NEWS, README, report.h, stars.c, strncasecmp.c:
   Initital release.
