]>
git.ipfire.org Git - thirdparty/dovecot/core.git/log
Timo Sirainen [Wed, 30 Jan 2013 22:14:28 +0000 (00:14 +0200)]
dsync: If remote command child process doesn't die at exit, kill -9 it.
Timo Sirainen [Wed, 30 Jan 2013 21:24:20 +0000 (23:24 +0200)]
auth: Fixed compiling GSSAPI after recent changes.
Timo Sirainen [Wed, 30 Jan 2013 20:44:48 +0000 (22:44 +0200)]
auth: Added passdb { result_* and skip } settings.
passdb { skip = never | authenticated | unauthenticated } can be used to
skip over a passdb lookup based on previous passdb lookups.
passdb { result_success, result_failure, result_internalfail } can be used
to specify what to do on those conditions. Choices as continue,
continue-ok, continue-fail, return, return-ok, return-fail. The -ok and
-fail variants update the current "success" flag, while continue/return uses
the current flag. The authentication succeeds only if the success flag is
set after the last lookup. The continue variants continue to the next
passdb, while return variants finish the lookup immediately.
Timo Sirainen [Wed, 30 Jan 2013 20:23:09 +0000 (22:23 +0200)]
auth: Code cleanup: Renamed some fields used in internal communication with worker.
Timo Sirainen [Wed, 30 Jan 2013 20:19:13 +0000 (22:19 +0200)]
auth: Auth requests' flag fields were never passed to worker processes.
Timo Sirainen [Wed, 30 Jan 2013 20:18:09 +0000 (22:18 +0200)]
auth: Fixed login USER reply broken by recent changes.
Timo Sirainen [Wed, 30 Jan 2013 19:08:58 +0000 (21:08 +0200)]
auth: Cleaned up flags in auth request. Removed those that already exist in extra_fields.
It's now slightly slower to check for those flags in extra_fields, but it's
going to be easier to make commit/rollback feature to extra_fields.
Timo Sirainen [Wed, 30 Jan 2013 18:06:43 +0000 (20:06 +0200)]
auth: Allocate auth-fields array lazily. Also some naming cleanups.
Timo Sirainen [Wed, 30 Jan 2013 17:57:20 +0000 (19:57 +0200)]
auth: Code cleanup: Renamed auth-stream to auth-fields.
Timo Sirainen [Wed, 30 Jan 2013 17:46:58 +0000 (19:46 +0200)]
auth: Code cleanup: Merged extra_cache_fields into extra_fields.
They are separated using a hidden-flag in the extra field. This required a
new implementation for auth-streams.
Timo Sirainen [Wed, 30 Jan 2013 17:11:30 +0000 (19:11 +0200)]
auth: Code cleanup: Minor auth_stream API simplifications.
Timo Sirainen [Wed, 30 Jan 2013 17:08:00 +0000 (19:08 +0200)]
auth: Code cleanup: Avoid using auth_stream_reply as temporary strings.
Timo Sirainen [Wed, 30 Jan 2013 16:40:49 +0000 (18:40 +0200)]
auth: Code cleanup: Removed unnecessary userdb_ prefix checks.
The userdb_ fields are nowadays placed to userdb_reply immediately.
Timo Sirainen [Wed, 30 Jan 2013 16:35:02 +0000 (18:35 +0200)]
auth: Code cleanup: Removed unnecessary auth_stream_reply usage from auth-worker communication.
Timo Sirainen [Wed, 30 Jan 2013 16:12:23 +0000 (18:12 +0200)]
auth: Code cleanup - removed auth_stream_split()
Timo Sirainen [Tue, 29 Jan 2013 11:31:05 +0000 (13:31 +0200)]
README: Added RFC 6851
Timo Sirainen [Mon, 28 Jan 2013 12:37:59 +0000 (14:37 +0200)]
lib-storage: Allow mail_storage_copy_error() with the same source and dest.
If it was used without checking it would try to free the error string and
after that strdup() it.
Timo Sirainen [Mon, 28 Jan 2013 11:56:24 +0000 (13:56 +0200)]
dsync: When syncing locally, mailbox_copy() the mail to attempt a fast copy.
Timo Sirainen [Mon, 28 Jan 2013 11:48:09 +0000 (13:48 +0200)]
dsync: Fixed syncing locally when GUIDs weren't available.
Timo Sirainen [Thu, 24 Jan 2013 14:30:33 +0000 (16:30 +0200)]
lib-storage: Fixed mailbox_exists() for LAYOUT=index.
Timo Sirainen [Tue, 22 Jan 2013 10:59:32 +0000 (12:59 +0200)]
dsync: Error handling crashfix
Timo Sirainen [Tue, 22 Jan 2013 10:59:22 +0000 (12:59 +0200)]
imapc: Handle mailbox_update() when possible, instead of always just failing.
Timo Sirainen [Tue, 22 Jan 2013 10:58:56 +0000 (12:58 +0200)]
imapc: Return INTERNALDATE as save-date (better than error).
Timo Sirainen [Tue, 22 Jan 2013 10:49:04 +0000 (12:49 +0200)]
imapc: Avoid unnecessarily selecting a mailbox when looking up its GUID.
Timo Sirainen [Mon, 21 Jan 2013 17:45:13 +0000 (19:45 +0200)]
Increased initial memory pool sizes.
Timo Sirainen [Mon, 21 Jan 2013 17:43:39 +0000 (19:43 +0200)]
dsync: Added a quick way to debug unexpected changes.
Timo Sirainen [Mon, 21 Jan 2013 17:41:24 +0000 (19:41 +0200)]
dsync: Fixes to handling storage formats that don't use 128bit GUIDs.
Timo Sirainen [Mon, 21 Jan 2013 16:33:55 +0000 (18:33 +0200)]
dict-cdb: Handle cdb_read() errors.
Timo Sirainen [Mon, 21 Jan 2013 16:31:08 +0000 (18:31 +0200)]
dict: Added support for cdb backend.
Based on patch by Hleb Valoshka.
Timo Sirainen [Mon, 21 Jan 2013 16:12:41 +0000 (18:12 +0200)]
dsync: Fixed infinite loop when message suddenly got expunged.
Timo Sirainen [Mon, 21 Jan 2013 16:12:12 +0000 (18:12 +0200)]
lib-index: Fixed sorting appended messages when some were assigned new UIDs.
Timo Sirainen [Mon, 21 Jan 2013 15:57:18 +0000 (17:57 +0200)]
dsync: If remote doesn't send some message bodies, log an error about each one separately.
Timo Sirainen [Mon, 21 Jan 2013 15:56:36 +0000 (17:56 +0200)]
dsync backup: Old unwanted messages weren't deleted as they should have.
Timo Sirainen [Mon, 21 Jan 2013 15:45:18 +0000 (17:45 +0200)]
lib-index: mail_transaction_log_view_set_all() didn't necessarily scan .log.2 file.
Timo Sirainen [Mon, 21 Jan 2013 15:44:16 +0000 (17:44 +0200)]
dsync: GUIDs weren't set properly to expunge records, causing non-optimal behavior.
Timo Sirainen [Mon, 21 Jan 2013 14:57:49 +0000 (16:57 +0200)]
dsync: Fixed crashes when sending already expunged messages.
Timo Sirainen [Mon, 21 Jan 2013 14:52:49 +0000 (16:52 +0200)]
dsync: Verify messages' GUIDs better.
Timo Sirainen [Mon, 21 Jan 2013 14:44:33 +0000 (16:44 +0200)]
dsync: Fixed syncing to non-remote locations.
Timo Sirainen [Mon, 21 Jan 2013 12:43:09 +0000 (14:43 +0200)]
lib-fs: Added "metawrap" wrapper to implement metadata as headers in the file content.
Timo Sirainen [Mon, 21 Jan 2013 12:42:10 +0000 (14:42 +0200)]
i_stream_read_next_line() should have also set eof=TRUE on ENOBUFS errors.
Timo Sirainen [Mon, 21 Jan 2013 12:19:21 +0000 (14:19 +0200)]
lib-fs: fs_file_path() is now a virtual function.
This fixes it returning the correct filename when file was created using
FS_OPEN_MODE_CREATE_UNIQUE_128 and a wrapper fs.
Timo Sirainen [Mon, 21 Jan 2013 09:40:38 +0000 (11:40 +0200)]
lib-fs: Added flags to iteration, and FS_ITER_FLAG_DIRS as the first flag.
Timo Sirainen [Thu, 17 Jan 2013 07:00:54 +0000 (09:00 +0200)]
doveadm: Compiling fix
Timo Sirainen [Wed, 16 Jan 2013 10:02:18 +0000 (12:02 +0200)]
sdbox: Fixed rebuilding index when UIDVALIDITY is missing.
Timo Sirainen [Wed, 16 Jan 2013 07:15:38 +0000 (09:15 +0200)]
sdbox: next-uid may have been set wrong when rebuilding indexes for empty mailbox.
Timo Sirainen [Wed, 16 Jan 2013 06:01:40 +0000 (08:01 +0200)]
dsync_remote_cmd: The -l parameter no longer exists.
Timo Sirainen [Tue, 15 Jan 2013 06:39:30 +0000 (08:39 +0200)]
lib-index: Newly added messages weren't always sorted by UIDs.
Timo Sirainen [Tue, 15 Jan 2013 06:30:57 +0000 (08:30 +0200)]
dovecot-config: Removed unnecessary/duplicate ssl library links.
Timo Sirainen [Mon, 14 Jan 2013 16:24:19 +0000 (18:24 +0200)]
lib-index: Added asserts.
Timo Sirainen [Mon, 14 Jan 2013 15:58:09 +0000 (17:58 +0200)]
lib-index: Fixed marking transaction log file corrupted due to added O_APPEND flag.
Timo Sirainen [Mon, 14 Jan 2013 10:56:09 +0000 (12:56 +0200)]
doveadm user: Avoid initializing the user as much as possible.
Timo Sirainen [Mon, 14 Jan 2013 06:38:36 +0000 (08:38 +0200)]
example-config: Added mail_attribute_dict
Timo Sirainen [Mon, 14 Jan 2013 06:01:47 +0000 (08:01 +0200)]
Several fixes to handling "istream input line too long" conditions.
Timo Sirainen [Mon, 14 Jan 2013 05:57:39 +0000 (07:57 +0200)]
i_stream_read_next_line() now sets stream_errno=ENOBUFS if input buffer gets full.
Previously the caller couldn't easily separate this condition from "more
data needed", potentially causing infinite loops.
Timo Sirainen [Sun, 13 Jan 2013 17:15:37 +0000 (19:15 +0200)]
doveadm: Increased doveadm client's max command line length.
Timo Sirainen [Fri, 11 Jan 2013 04:18:36 +0000 (06:18 +0200)]
lib-imap-storage: Removed broken optimization for seeking to partial offset.
The optimization worked only when physical_start=0. It would have been
possible to fix it by finding the message_part where its header of body
offset is physical_start and only then start decreasing virtual_skip, but
probably too much complexity to be worth the trouble, especially since
clients rarely would benefit from this optimization.
Timo Sirainen [Fri, 11 Jan 2013 01:59:50 +0000 (03:59 +0200)]
lib-imap-storage: Added imap_msgpart_get_partial_size() missing from previous commit.
Timo Sirainen [Fri, 11 Jan 2013 01:58:54 +0000 (03:58 +0200)]
imap: Improved unexpected FETCH error messages.
Timo Sirainen [Thu, 10 Jan 2013 12:20:07 +0000 (14:20 +0200)]
dsync: Added "remoteprefix:" destination, which is same as "remote:" except sends "username\n" prefix.
Timo Sirainen [Thu, 10 Jan 2013 12:00:10 +0000 (14:00 +0200)]
dsync: Wait for remote command to finish before shutting down.
This makes sure that any error messages during deinit stage are logged. Also
non-zero exit codes are logged.
Timo Sirainen [Thu, 10 Jan 2013 11:56:59 +0000 (13:56 +0200)]
dsync server: Fixed crash at deinit
Timo Sirainen [Thu, 10 Jan 2013 10:12:50 +0000 (12:12 +0200)]
dsync: Close mail streams earlier on failures to avoid assert-crashing
Timo Sirainen [Thu, 10 Jan 2013 09:52:27 +0000 (11:52 +0200)]
lib-storage: Maildir++ layout shouldn't disallow "cur", "new" or "tmp" mailbox names.
Timo Sirainen [Thu, 10 Jan 2013 08:23:44 +0000 (10:23 +0200)]
lib-storage: Improved "Using permissions" debug message.
Timo Sirainen [Thu, 10 Jan 2013 08:21:27 +0000 (10:21 +0200)]
dsync: Added support back for dsync locking.
Only the source directory is now locked to avoid deadlocks when both source
and destination are locked. This of course now means that both source and
destination is allowed to run dsync at the same time, which isn't ideal
either..
Timo Sirainen [Thu, 10 Jan 2013 08:02:47 +0000 (10:02 +0200)]
dsync: Attempt to preserve \Recent flag as well
Timo Sirainen [Thu, 10 Jan 2013 07:33:19 +0000 (09:33 +0200)]
dsync: Handle syncing mailboxes with same name but different GUIDs.
Timo Sirainen [Thu, 10 Jan 2013 06:07:19 +0000 (08:07 +0200)]
dsync: Removed unnecessary -n parameter from dsync-server.
The setting is sent within dsync protocol.
Timo Sirainen [Thu, 10 Jan 2013 05:54:39 +0000 (07:54 +0200)]
replicator: Use stateful dsyncing whenever possible.
Timo Sirainen [Thu, 10 Jan 2013 05:53:26 +0000 (07:53 +0200)]
replicator: doveadm connections weren't reset properly
Timo Sirainen [Thu, 10 Jan 2013 05:39:02 +0000 (07:39 +0200)]
dsync: Fixed parsing state string.
Timo Sirainen [Thu, 10 Jan 2013 05:31:51 +0000 (07:31 +0200)]
mdbox: Crashfix for storage rebuild
Timo Sirainen [Thu, 10 Jan 2013 04:52:37 +0000 (06:52 +0200)]
dsync: Fixed printing output state when running via doveadm-server.
Timo Sirainen [Thu, 10 Jan 2013 04:51:19 +0000 (06:51 +0200)]
doveadm: Added assert.
Timo Sirainen [Wed, 9 Jan 2013 09:03:43 +0000 (11:03 +0200)]
dsync: Another fix to handling expunges from the end of mailbox.
Timo Sirainen [Wed, 9 Jan 2013 07:11:09 +0000 (09:11 +0200)]
dsync: Mailbox syncing fix
Timo Sirainen [Wed, 9 Jan 2013 05:53:53 +0000 (07:53 +0200)]
dsync: Error handling fix.
Timo Sirainen [Wed, 9 Jan 2013 05:02:28 +0000 (07:02 +0200)]
Merged changes from v2.1 tree.
Timo Sirainen [Wed, 9 Jan 2013 05:01:41 +0000 (07:01 +0200)]
mdbox rebuild: Update to previous commit
Timo Sirainen [Wed, 9 Jan 2013 04:59:51 +0000 (06:59 +0200)]
mdbox rebuild: Don't always duplicate messages that have conflicting GUIDs.
Timo Sirainen [Wed, 9 Jan 2013 04:57:34 +0000 (06:57 +0200)]
mdbox rebuild: Use mail size instead of record size when guessing if the mails are the same.
Timo Sirainen [Wed, 9 Jan 2013 03:43:09 +0000 (05:43 +0200)]
dsync: Fixed handling UID renumbering when new mail was saved during dsync.
Timo Sirainen [Wed, 9 Jan 2013 03:42:03 +0000 (05:42 +0200)]
dsync: Don't wrongly log errors about missing message bodies.
Also added some debug logging related to it.
Timo Sirainen [Wed, 9 Jan 2013 03:35:20 +0000 (05:35 +0200)]
mdbox: Allow reflink-copying a mail when wanted GUID matches the current GUID.
Timo Sirainen [Wed, 9 Jan 2013 03:33:32 +0000 (05:33 +0200)]
lib-storage: dest_mail wasn't reset if previous save was aborted.
This could have happened only with dsync.
Timo Sirainen [Wed, 9 Jan 2013 03:30:06 +0000 (05:30 +0200)]
dbox: Give a name to the file's output stream (for improved error logging).
Timo Sirainen [Wed, 9 Jan 2013 03:28:58 +0000 (05:28 +0200)]
o_stream_send_istream(): Fixed copying within same file, when istream's size is unknown.
This fixes copying a mail from mdbox's m.* file to the end of the same file.
Timo Sirainen [Wed, 9 Jan 2013 03:29:13 +0000 (05:29 +0200)]
lib-index: Comment update
Timo Sirainen [Wed, 9 Jan 2013 03:38:13 +0000 (05:38 +0200)]
Merged changes from v2.1 tree.
Timo Sirainen [Tue, 8 Jan 2013 14:24:20 +0000 (16:24 +0200)]
dsync: Make remote's stderr fd nonblocking to avoid hanging.
Timo Sirainen [Tue, 8 Jan 2013 08:57:34 +0000 (10:57 +0200)]
dsync: Fixes to printing remote's stderr output.
Timo Sirainen [Tue, 8 Jan 2013 08:25:21 +0000 (10:25 +0200)]
dsync: Print remote's stderr line-buffered.
Especially when debugging is enabled there can be a lot of output, which
makes this useful.
Timo Sirainen [Tue, 8 Jan 2013 05:43:29 +0000 (07:43 +0200)]
dsync: Fixes to handling output stream buffering.
Timo Sirainen [Tue, 8 Jan 2013 05:42:38 +0000 (07:42 +0200)]
replicator: Send only one sync command to doveadm-server per connection.
This fixes setuid()/setgid() problems when multiple UIDs are used.
Timo Sirainen [Tue, 8 Jan 2013 04:41:56 +0000 (06:41 +0200)]
dsync: Minor fix for talking with remote dsync.
Timo Sirainen [Tue, 8 Jan 2013 03:37:43 +0000 (05:37 +0200)]
DEBUG: buffer_verify_pool() crashed with empty buffer.
Timo Sirainen [Tue, 8 Jan 2013 03:23:06 +0000 (05:23 +0200)]
dsync: Crashfix for handling expunges from end of mailbox.
Timo Sirainen [Tue, 8 Jan 2013 03:19:37 +0000 (05:19 +0200)]
dsync: Fixed syncing expunge for last mail in mailbox.
Timo Sirainen [Tue, 8 Jan 2013 02:58:08 +0000 (04:58 +0200)]
dsync: Avoid updating modseqs unnecessarily.
lib-index perhaps should do this automatically as well.
Timo Sirainen [Tue, 8 Jan 2013 02:33:01 +0000 (04:33 +0200)]
dsync: Avoid infinite looping.