]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
13 years agoReleased v2.2.alpha1. 2.2.alpha1
Timo Sirainen [Mon, 29 Oct 2012 20:47:32 +0000 (22:47 +0200)] 
Released v2.2.alpha1.

13 years agoanvil: Added a comment to remind what the anvil checksums are all about.
Timo Sirainen [Mon, 29 Oct 2012 20:42:28 +0000 (22:42 +0200)] 
anvil: Added a comment to remind what the anvil checksums are all about.

13 years agoIf prefix="" namespace isn't defined, autocreate it as an unusable namespace.
Timo Sirainen [Mon, 29 Oct 2012 20:03:25 +0000 (22:03 +0200)] 
If prefix="" namespace isn't defined, autocreate it as an unusable namespace.
This avoids having to handle mail_namespace_find() errors all over the
place. Instead now the mailbox accesses will simply fail.

13 years agolib-storage: Use const pointers for mail_namespace.(set|unexpanded_set)
Timo Sirainen [Mon, 29 Oct 2012 19:54:51 +0000 (21:54 +0200)] 
lib-storage: Use const pointers for mail_namespace.(set|unexpanded_set)

13 years agoautocreate plugin logs now a "deprecated" warning at startup
Timo Sirainen [Mon, 29 Oct 2012 19:42:32 +0000 (21:42 +0200)] 
autocreate plugin logs now a "deprecated" warning at startup

13 years agoMake static analyzer happier.
Timo Sirainen [Mon, 29 Oct 2012 19:31:39 +0000 (21:31 +0200)] 
Make static analyzer happier.

13 years agoiostream-rawlog: Avoid crashing more if write() to rawlog fails.
Timo Sirainen [Mon, 29 Oct 2012 19:28:45 +0000 (21:28 +0200)] 
iostream-rawlog: Avoid crashing more if write() to rawlog fails.

13 years agoMake static analyzer happier.
Timo Sirainen [Mon, 29 Oct 2012 18:48:08 +0000 (20:48 +0200)] 
Make static analyzer happier.

13 years agomaildir: Fixed potential crash when maildir suddenly loses some directories.
Timo Sirainen [Mon, 29 Oct 2012 18:45:41 +0000 (20:45 +0200)] 
maildir: Fixed potential crash when maildir suddenly loses some directories.

13 years agolayout=index: Fixed a crash in mailbox_rename() race condition.
Timo Sirainen [Mon, 29 Oct 2012 18:42:00 +0000 (20:42 +0200)] 
layout=index: Fixed a crash in mailbox_rename() race condition.

13 years agoiostream-rawlog: Avoid crashing if write() to rawlog fails.
Timo Sirainen [Mon, 29 Oct 2012 18:34:31 +0000 (20:34 +0200)] 
iostream-rawlog: Avoid crashing if write() to rawlog fails.

13 years agoimap: imap_id_send default changed to send name=Dovecot to client.
Timo Sirainen [Mon, 29 Oct 2012 18:17:07 +0000 (20:17 +0200)] 
imap: imap_id_send default changed to send name=Dovecot to client.

13 years agodoveadm user: Removed -m parameter and made it default. Added -u for old functionality.
Timo Sirainen [Mon, 29 Oct 2012 18:09:42 +0000 (20:09 +0200)] 
doveadm user: Removed -m parameter and made it default. Added -u for old functionality.
-u meaning "userdb lookup only".

13 years agodoveadm user -m: Show all returned userdb fields.
Timo Sirainen [Mon, 29 Oct 2012 18:07:13 +0000 (20:07 +0200)] 
doveadm user -m: Show all returned userdb fields.

13 years agolib-storage: Added mail_storage_service_save_userdb_fields()
Timo Sirainen [Mon, 29 Oct 2012 18:06:53 +0000 (20:06 +0200)] 
lib-storage: Added mail_storage_service_save_userdb_fields()

13 years agolib-storage: Renamed mail_storage_set_index_error() to mailbox_set_index_error()
Timo Sirainen [Mon, 29 Oct 2012 17:54:50 +0000 (19:54 +0200)] 
lib-storage: Renamed mail_storage_set_index_error() to mailbox_set_index_error()

13 years agoReplaced *_INDEX_PREFIX macros with a common MAIL_INDEX_PREFIX.
Timo Sirainen [Mon, 29 Oct 2012 17:52:21 +0000 (19:52 +0200)] 
Replaced *_INDEX_PREFIX macros with a common MAIL_INDEX_PREFIX.

13 years agologin proxy: For connect() failures log also the used local IP:port if available.
Timo Sirainen [Mon, 29 Oct 2012 17:04:36 +0000 (19:04 +0200)] 
login proxy: For connect() failures log also the used local IP:port if available.

13 years agomaster: Ignore service {} blocks with empty executable settings.
Timo Sirainen [Mon, 29 Oct 2012 16:32:40 +0000 (18:32 +0200)] 
master: Ignore service {} blocks with empty executable settings.

13 years agomaster: Removed unnecessary code duplication.
Timo Sirainen [Mon, 29 Oct 2012 16:29:07 +0000 (18:29 +0200)] 
master: Removed unnecessary code duplication.
The settings parsing already does this.

13 years agoRenamed configure.in to configure.ac.
Timo Sirainen [Mon, 29 Oct 2012 16:01:54 +0000 (18:01 +0200)] 
Renamed configure.in to configure.ac.
Apparently automakes in future won't support configure.in anymore.

13 years agoMerged changes from v2.1 tree.
Timo Sirainen [Mon, 29 Oct 2012 15:55:35 +0000 (17:55 +0200)] 
Merged changes from v2.1 tree.

13 years agolib-fs: Compile fix for OSes that don't support posix_fadvise(POSIX_FADV_WILLNEED)
Timo Sirainen [Mon, 29 Oct 2012 14:51:46 +0000 (16:51 +0200)] 
lib-fs: Compile fix for OSes that don't support posix_fadvise(POSIX_FADV_WILLNEED)

13 years agolib-dict: Abort async transaction commits if client gets disconnected from dict server.
Timo Sirainen [Mon, 29 Oct 2012 14:36:59 +0000 (16:36 +0200)] 
lib-dict: Abort async transaction commits if client gets disconnected from dict server.

13 years agoTODO updated
Timo Sirainen [Mon, 29 Oct 2012 13:32:44 +0000 (15:32 +0200)] 
TODO updated

13 years agolib-storage: Handle better when attempting to access shared mailboxes for nonexistent...
Timo Sirainen [Mon, 29 Oct 2012 13:30:59 +0000 (15:30 +0200)] 
lib-storage: Handle better when attempting to access shared mailboxes for nonexistent users.

13 years agolib-storage: Added struct mail_user.nonexistent flag, which is filled by userdb lookup.
Timo Sirainen [Mon, 29 Oct 2012 13:29:52 +0000 (15:29 +0200)] 
lib-storage: Added struct mail_user.nonexistent flag, which is filled by userdb lookup.

13 years agolib-storage: Fixes to handling separation of private/shared attributes.
Timo Sirainen [Mon, 29 Oct 2012 13:18:34 +0000 (15:18 +0200)] 
lib-storage: Fixes to handling separation of private/shared attributes.

13 years agolib-index: Fixes to replacing message's keywords.
Timo Sirainen [Mon, 29 Oct 2012 13:17:17 +0000 (15:17 +0200)] 
lib-index: Fixes to replacing message's keywords.

13 years agolib-storage: Crashfix to previous stream error checking change.
Timo Sirainen [Mon, 29 Oct 2012 13:13:54 +0000 (15:13 +0200)] 
lib-storage: Crashfix to previous stream error checking change.

13 years agolib-storage: Moved mail attribute dict to struct mail_storage.
Timo Sirainen [Mon, 29 Oct 2012 12:50:11 +0000 (14:50 +0200)] 
lib-storage: Moved mail attribute dict to struct mail_storage.
This also means that index_storage_destroy() must always be called, so
removed now unnecessary mail_storage.destroy=NULL checks.

13 years agoTreat modseq updates explicitly instead of as if they were flag changes.
Timo Sirainen [Mon, 29 Oct 2012 12:31:04 +0000 (14:31 +0200)] 
Treat modseq updates explicitly instead of as if they were flag changes.

13 years agolib-storage: Mailbox list indexes are now enabled also for shared/public mailboxes.
Timo Sirainen [Mon, 29 Oct 2012 12:19:53 +0000 (14:19 +0200)] 
lib-storage: Mailbox list indexes are now enabled also for shared/public mailboxes.

13 years agolib-storage: Allow calling mailbox_get_private_flags_mask() without mailbox being...
Timo Sirainen [Mon, 29 Oct 2012 12:19:24 +0000 (14:19 +0200)] 
lib-storage: Allow calling mailbox_get_private_flags_mask() without mailbox being open.
Most importantly used by mailbox list indexes to determine if it can
optimize a STATUS (UNSEEN) call.

13 years agoimap: Commit temporary mail's transaction before finishing sync.
Timo Sirainen [Mon, 29 Oct 2012 12:16:02 +0000 (14:16 +0200)] 
imap: Commit temporary mail's transaction before finishing sync.
Fixes assert-crash with mailbox list indexes.

13 years agolib-storage: Avoid assert-crashing when updating mailbox list index.
Timo Sirainen [Mon, 29 Oct 2012 12:17:40 +0000 (14:17 +0200)] 
lib-storage: Avoid assert-crashing when updating mailbox list index.

13 years agolib-storage: Check and log stream errors when parsing/searching messages.
Timo Sirainen [Mon, 29 Oct 2012 11:23:30 +0000 (13:23 +0200)] 
lib-storage: Check and log stream errors when parsing/searching messages.

13 years agolib-storage: Make sure mailbox was synced at least once when getting status/metadata.
Timo Sirainen [Mon, 29 Oct 2012 11:01:37 +0000 (13:01 +0200)] 
lib-storage: Make sure mailbox was synced at least once when getting status/metadata.

13 years agodsync: Make sure we're not trying to use uidvalidity=0 for existing mailboxes.
Timo Sirainen [Mon, 29 Oct 2012 11:00:36 +0000 (13:00 +0200)] 
dsync: Make sure we're not trying to use uidvalidity=0 for existing mailboxes.

13 years agolib-index: MAIL_INDEX_TRANSACTION_FLAG_AVOID_FLAG_UPDATES didn't work well enough...
Timo Sirainen [Mon, 29 Oct 2012 10:44:43 +0000 (12:44 +0200)] 
lib-index: MAIL_INDEX_TRANSACTION_FLAG_AVOID_FLAG_UPDATES didn't work well enough for keywords.
Removed the code that attempted to optimize some CPU usage at the cost of
writing too many changes.

13 years agolib-index: Avoid assert-crashing when syncing an old "keyword reset" from transaction...
Timo Sirainen [Mon, 29 Oct 2012 10:43:29 +0000 (12:43 +0200)] 
lib-index: Avoid assert-crashing when syncing an old "keyword reset" from transaction log.

13 years agoacl: Avoid assert-crashing when trying to access shared namespace root "mailboxes".
Timo Sirainen [Mon, 29 Oct 2012 10:40:14 +0000 (12:40 +0200)] 
acl: Avoid assert-crashing when trying to access shared namespace root "mailboxes".

13 years agolib-storage: Fixed listing layout=fs when namespace prefix part included wildcards.
Timo Sirainen [Fri, 26 Oct 2012 10:05:43 +0000 (13:05 +0300)] 
lib-storage: Fixed listing layout=fs when namespace prefix part included wildcards.

13 years agostats: Refresh user statistics during long maildir syncs.
Timo Sirainen [Fri, 26 Oct 2012 09:09:03 +0000 (12:09 +0300)] 
stats: Refresh user statistics during long maildir syncs.

13 years agolib-index: Optimize cache file reads with MAIL_INDEX_OPEN_FLAG_SAVEONLY
Timo Sirainen [Fri, 26 Oct 2012 08:43:05 +0000 (11:43 +0300)] 
lib-index: Optimize cache file reads with MAIL_INDEX_OPEN_FLAG_SAVEONLY

13 years agolib-index: After recent cache changes, cache was often wrongly being thought of as...
Timo Sirainen [Fri, 26 Oct 2012 08:37:07 +0000 (11:37 +0300)] 
lib-index: After recent cache changes, cache was often wrongly being thought of as unusable

13 years agolib-index: If cache file unexpectedly shrinks in header lookup, log an error.
Timo Sirainen [Fri, 26 Oct 2012 08:34:25 +0000 (11:34 +0300)] 
lib-index: If cache file unexpectedly shrinks in header lookup, log an error.

13 years agoIncreased initial memory pool size
Timo Sirainen [Fri, 26 Oct 2012 08:33:22 +0000 (11:33 +0300)] 
Increased initial memory pool size

13 years agolib-storage: Listing multiple mailbox patterns may have returned duplicates with...
Timo Sirainen [Fri, 26 Oct 2012 08:17:51 +0000 (11:17 +0300)] 
lib-storage: Listing multiple mailbox patterns may have returned duplicates with fs layout.

13 years agodbox: Log a better error if we have external attachments, but mail_attachment_dir...
Timo Sirainen [Fri, 26 Oct 2012 08:12:36 +0000 (11:12 +0300)] 
dbox: Log a better error if we have external attachments, but mail_attachment_dir is unset.

13 years agodoveadm backup: Don't assert-crash trying to delete noselect-mailboxes too early.
Timo Sirainen [Fri, 26 Oct 2012 08:07:43 +0000 (11:07 +0300)] 
doveadm backup: Don't assert-crash trying to delete noselect-mailboxes too early.

13 years agolib-index: mail_index_transaction_lookup_latest_keywords() didn't work properly.
Timo Sirainen [Fri, 26 Oct 2012 07:36:43 +0000 (10:36 +0300)] 
lib-index: mail_index_transaction_lookup_latest_keywords() didn't work properly.
It wasn't actually looking up the latest keywords.

13 years agodoveadm backup: Revert all local changes.
Timo Sirainen [Wed, 24 Oct 2012 12:05:40 +0000 (15:05 +0300)] 
doveadm backup: Revert all local changes.

13 years agodsync: Crashfix for scanning keyword changes in transaction log.
Timo Sirainen [Wed, 24 Oct 2012 12:05:15 +0000 (15:05 +0300)] 
dsync: Crashfix for scanning keyword changes in transaction log.

13 years agoNEWS updated
Timo Sirainen [Wed, 24 Oct 2012 10:04:38 +0000 (13:04 +0300)] 
NEWS updated

13 years agolib-storage: When mkdir()ing home, copy permissions from parent if it has setgid...
Timo Sirainen [Wed, 24 Oct 2012 09:47:34 +0000 (12:47 +0300)] 
lib-storage: When mkdir()ing home, copy permissions from parent if it has setgid-bit and we're using %h/~.
When using %d/%n instead of %h in the location directories, use the earlier
methods.

13 years agolib-storage: When creating user directory under domain, set its setgid-bit on.
Timo Sirainen [Wed, 24 Oct 2012 09:23:36 +0000 (12:23 +0300)] 
lib-storage: When creating user directory under domain, set its setgid-bit on.
The previous mkdir_parents_chown() change changed this behavior. I'm not
entirely sure if the setgid-bit is a good idea or not in here, but we'll
just continue the existing behavior.

13 years agomkdir_parents_chown(): If gid is set, make sure setgid-bit isn't copied from parent.
Timo Sirainen [Wed, 24 Oct 2012 09:15:19 +0000 (12:15 +0300)] 
mkdir_parents_chown(): If gid is set, make sure setgid-bit isn't copied from parent.

13 years agoraw storage: Don't set NAMESPACE_FLAG_INBOX_USER for the created namespace.
Timo Sirainen [Wed, 24 Oct 2012 08:52:14 +0000 (11:52 +0300)] 
raw storage: Don't set NAMESPACE_FLAG_INBOX_USER for the created namespace.

13 years agolib-imap: Replaced last traces of imap_quote*() with imap_append_string_for_humans()
Timo Sirainen [Wed, 24 Oct 2012 08:30:09 +0000 (11:30 +0300)] 
lib-imap: Replaced last traces of imap_quote*() with imap_append_string_for_humans()
Also the imap_append_*string() functions now decide whether to use
quoted-string or literal based on the output string length (if both would
work).

13 years agolib-imap: ENVELOPE parsing/writing no longer strips whitespace from machine readable...
Timo Sirainen [Wed, 24 Oct 2012 08:28:38 +0000 (11:28 +0300)] 
lib-imap: ENVELOPE parsing/writing no longer strips whitespace from machine readable fields.

13 years agolib-imap: bodystructure parsing now uses imap_append_string() instead of imap_quote*()
Timo Sirainen [Wed, 24 Oct 2012 08:22:28 +0000 (11:22 +0300)] 
lib-imap: bodystructure parsing now uses imap_append_string() instead of imap_quote*()
Some of the fields are parsed through rfc822_*() which guarantees that they
contain proper clean input. Other fields are also machine-readable and don't
benefit from having whitespace compressed or of any other things that
imap_quote*(fix_text=TRUE) did.

None of the fields in

13 years agoUse imap_append_astring() instead of imap_append_string() where possible.
Timo Sirainen [Wed, 24 Oct 2012 07:14:17 +0000 (10:14 +0300)] 
Use imap_append_astring() instead of imap_append_string() where possible.

13 years agolib-imap: Added imap_append_astring()
Timo Sirainen [Wed, 24 Oct 2012 07:08:06 +0000 (10:08 +0300)] 
lib-imap: Added imap_append_astring()

13 years agolib-imap: Changed public IS_ATOM*() macros to match RFC 3501 exactly.
Timo Sirainen [Wed, 24 Oct 2012 07:05:37 +0000 (10:05 +0300)] 
lib-imap: Changed public IS_ATOM*() macros to match RFC 3501 exactly.
Move the imap-parser specific "atom plus some more" parsing macro inside
imap-parser.c so it's not used by anyone else.

13 years agoUse imap_append_*string() instead of imap_quote_append*() where possible.
Timo Sirainen [Wed, 24 Oct 2012 06:39:52 +0000 (09:39 +0300)] 
Use imap_append_*string() instead of imap_quote_append*() where possible.
This makes it clearer what types of output should be sent.

13 years agolib-imap: Added imap_append_string() and imap_append_nstring()
Timo Sirainen [Wed, 24 Oct 2012 06:38:06 +0000 (09:38 +0300)] 
lib-imap: Added imap_append_string() and imap_append_nstring()

13 years agolib-imap: Renamed imap_dquote_append() to imap_append_quoted()
Timo Sirainen [Wed, 24 Oct 2012 06:21:46 +0000 (09:21 +0300)] 
lib-imap: Renamed imap_dquote_append() to imap_append_quoted()

13 years agoimap: Avoid double-quoting non-atom header field
Timo Sirainen [Wed, 24 Oct 2012 06:21:00 +0000 (09:21 +0300)] 
imap: Avoid double-quoting non-atom header field

13 years agomailbox_list_index=yes: Fixed refreshing list index after mailbox was created.
Timo Sirainen [Tue, 23 Oct 2012 17:46:35 +0000 (20:46 +0300)] 
mailbox_list_index=yes: Fixed refreshing list index after mailbox was created.

13 years agomaildir: Don't assert-crash on mailbox creation.
Timo Sirainen [Tue, 23 Oct 2012 17:46:12 +0000 (20:46 +0300)] 
maildir: Don't assert-crash on mailbox creation.

13 years agoimap: Another fix for handling partial FETCHes.
Timo Sirainen [Tue, 23 Oct 2012 17:30:41 +0000 (20:30 +0300)] 
imap: Another fix for handling partial FETCHes.

13 years agoimap: URLFETCH BINARY BODYPARTSTRUCTURE returns binary-decoded line counts.
Timo Sirainen [Tue, 23 Oct 2012 17:15:36 +0000 (20:15 +0300)] 
imap: URLFETCH BINARY BODYPARTSTRUCTURE returns binary-decoded line counts.

13 years agoistream-seekable: When read() reaches EOF, unreference underlying streams.
Timo Sirainen [Tue, 23 Oct 2012 17:09:35 +0000 (20:09 +0300)] 
istream-seekable: When read() reaches EOF, unreference underlying streams.
This was already done when the stream was kept in memory, but not when when
the stream was written to temporary file.

13 years agoimap: URLFETCH error handling fixes.
Timo Sirainen [Tue, 23 Oct 2012 17:07:06 +0000 (20:07 +0300)] 
imap: URLFETCH error handling fixes.

13 years agoconnection API: Track the number of connections.
Timo Sirainen [Tue, 23 Oct 2012 09:59:41 +0000 (12:59 +0300)] 
connection API: Track the number of connections.

13 years agodsync: Use mailbox_move() to reassign UIDs instead of copy+expunge.
Timo Sirainen [Tue, 23 Oct 2012 09:34:42 +0000 (12:34 +0300)] 
dsync: Use mailbox_move() to reassign UIDs instead of copy+expunge.

13 years agoauth: Log a nicer message if client timeouts authentication in the middle.
Timo Sirainen [Mon, 22 Oct 2012 15:59:20 +0000 (18:59 +0300)] 
auth: Log a nicer message if client timeouts authentication in the middle.

13 years agodecode2text.sh: Assume xmlunzip exists in the same directory as this script.
Timo Sirainen [Mon, 22 Oct 2012 15:35:56 +0000 (18:35 +0300)] 
decode2text.sh: Assume xmlunzip exists in the same directory as this script.
This avoids hardcoding /usr/local/libexec/dovecot/ path in it.

13 years agodirector: -D parameter now enables extensive debug logging.
Timo Sirainen [Mon, 22 Oct 2012 12:35:59 +0000 (15:35 +0300)] 
director: -D parameter now enables extensive debug logging.

13 years agodirector: Don't remove user's weak flag from notify connection.
Timo Sirainen [Mon, 22 Oct 2012 12:32:04 +0000 (15:32 +0300)] 
director: Don't remove user's weak flag from notify connection.
If notify connection worked properly, the weak flag should never have been
set in the first place. And if it's just suddenly removed, it won't finish
the pending requests properly.

13 years agodirector: Minor code cleanup
Timo Sirainen [Mon, 22 Oct 2012 12:30:01 +0000 (15:30 +0300)] 
director: Minor code cleanup

13 years agodirector: If user's weak-flag appears to have gotten stuck, unset it.
Timo Sirainen [Mon, 22 Oct 2012 12:29:27 +0000 (15:29 +0300)] 
director: If user's weak-flag appears to have gotten stuck, unset it.

13 years agodirector: Log more clearly why a request timeouts.
Timo Sirainen [Mon, 22 Oct 2012 12:23:25 +0000 (15:23 +0300)] 
director: Log more clearly why a request timeouts.

13 years agodirector: Don't handle pending requests from all around the code.
Timo Sirainen [Mon, 22 Oct 2012 12:20:57 +0000 (15:20 +0300)] 
director: Don't handle pending requests from all around the code.
I'm not sure if this actually fixes any bugs, but it definitely makes the
state cleaner.

13 years agodirector: Fixed previous broken change for handling USER-WEAK commands.
Timo Sirainen [Mon, 22 Oct 2012 12:17:39 +0000 (15:17 +0300)] 
director: Fixed previous broken change for handling USER-WEAK commands.

13 years agodoveadm sync/backup: Added -s <state> parameter to do a fast stateful sync.
Timo Sirainen [Sun, 21 Oct 2012 09:20:30 +0000 (12:20 +0300)] 
doveadm sync/backup: Added -s <state> parameter to do a fast stateful sync.
Initially use an empty string for the input state. The output state is
written to stdout.

13 years agodoveadm: "backup" command is working again.
Timo Sirainen [Sun, 21 Oct 2012 07:01:54 +0000 (10:01 +0300)] 
doveadm: "backup" command is working again.

13 years agolib-storage: Fixed deleting mailbox when mail_attribute_dict wasn't set.
Timo Sirainen [Sun, 21 Oct 2012 05:22:20 +0000 (08:22 +0300)] 
lib-storage: Fixed deleting mailbox when mail_attribute_dict wasn't set.

13 years agolib-fs: Fixes to async APIs.
Timo Sirainen [Sun, 21 Oct 2012 04:29:04 +0000 (07:29 +0300)] 
lib-fs: Fixes to async APIs.

13 years agoredis dict: Log an error if we get disconnected unexpectedly.
Timo Sirainen [Sun, 21 Oct 2012 04:13:44 +0000 (07:13 +0300)] 
redis dict: Log an error if we get disconnected unexpectedly.

13 years agolib-imap-urlauth: Minor fix to avoiding timing attacks against mailbox existence.
Timo Sirainen [Thu, 18 Oct 2012 03:58:01 +0000 (06:58 +0300)] 
lib-imap-urlauth: Minor fix to avoiding timing attacks against mailbox existence.
random_fill() is slightly slower than random_fill_weak(). Probably even
better way to handle timing attacks would be to always add a short random
pause before returning verification failure.

13 years agoMoved random_init() from lib-imap-urlauth to imap/imap-urlauth main().
Timo Sirainen [Thu, 18 Oct 2012 03:55:04 +0000 (06:55 +0300)] 
Moved random_init() from lib-imap-urlauth to imap/imap-urlauth main().
This way if the processes are chrooted they are still able to open
/dev/urandom.

13 years agolib-index: Crashfix for MAIL_INDEX_OPEN_FLAG_SAVEONLY change.
Timo Sirainen [Thu, 18 Oct 2012 03:45:39 +0000 (06:45 +0300)] 
lib-index: Crashfix for MAIL_INDEX_OPEN_FLAG_SAVEONLY change.

13 years agologin_log_format_elements: Added %{real_rip} variable.
Timo Sirainen [Thu, 18 Oct 2012 03:21:25 +0000 (06:21 +0300)] 
login_log_format_elements: Added %{real_rip} variable.
It differs from %r when Dovecot proxy sends an updated client IP address.
Patch by Jack Bates.

13 years agolib-index: Fixed handling of finding a duplicate dovecot.index.log file_seq
Timo Sirainen [Thu, 18 Oct 2012 03:00:18 +0000 (06:00 +0300)] 
lib-index: Fixed handling of finding a duplicate dovecot.index.log file_seq
Previously we assumed that the already opened file was always the wrong one,
but more common was that the newly opened file was .log.2 which should have
been deleted.

13 years agolib-index: Handle better race condition there dovecot.index.log and .log.2 are the...
Timo Sirainen [Thu, 18 Oct 2012 02:55:30 +0000 (05:55 +0300)] 
lib-index: Handle better race condition there dovecot.index.log and .log.2 are the same link.

13 years agolib-storage: Open index with MAIL_INDEX_OPEN_FLAG_SAVEONLY if mailbox has MAILBOX_FLA...
Timo Sirainen [Thu, 18 Oct 2012 02:23:27 +0000 (05:23 +0300)] 
lib-storage: Open index with MAIL_INDEX_OPEN_FLAG_SAVEONLY if mailbox has MAILBOX_FLAG_SAVEONLY

13 years agolib-index: Added MAIL_INDEX_OPEN_FLAG_SAVEONLY to do only minimal reads from cache...
Timo Sirainen [Thu, 18 Oct 2012 02:22:36 +0000 (05:22 +0300)] 
lib-index: Added MAIL_INDEX_OPEN_FLAG_SAVEONLY to do only minimal reads from cache file.

13 years agolib-index: Code cleanup: Removed mail_cache.data
Timo Sirainen [Thu, 18 Oct 2012 02:16:54 +0000 (05:16 +0300)] 
lib-index: Code cleanup: Removed mail_cache.data