]>
git.ipfire.org Git - thirdparty/dovecot/core.git/log
Timo Sirainen [Mon, 4 Feb 2013 18:14:16 +0000 (20:14 +0200)]
i_stream_create(): Copy stream_errno/eof immediately from the parent stream.
This makes wrapper istream behavior more reliable when the original istream
is an istream-error.
Timo Sirainen [Mon, 4 Feb 2013 18:13:26 +0000 (20:13 +0200)]
istream: Fail in the default stat() implementation if stream_errno is set.
Timo Sirainen [Mon, 4 Feb 2013 18:12:10 +0000 (20:12 +0200)]
istream-seekable: Fail stat() if stream_errno is set.
Timo Sirainen [Mon, 4 Feb 2013 18:10:59 +0000 (20:10 +0200)]
lib-http: Added http_client_request_set_destroy_callback()
This is useful for io_remove()ing the payload stream's fd at the right time.
Timo Sirainen [Mon, 4 Feb 2013 16:17:21 +0000 (18:17 +0200)]
lib-http: Added http_url_escape_param()
Timo Sirainen [Mon, 4 Feb 2013 15:06:40 +0000 (17:06 +0200)]
lib-index: Bug in cache file size verification caused the whole cache file to be mapped.
Timo Sirainen [Mon, 4 Feb 2013 14:10:50 +0000 (16:10 +0200)]
lib-storage: If message parser's input stream is closed early, don't treat it as error.
This seems to happen sometimes during message saving(?), although I'm not
exactly sure why. In any case it shouldn't log an error about it. This
behavior is probably better than failing. The caller should be the one to
figure out if saving has failed or not.
Timo Sirainen [Mon, 4 Feb 2013 14:03:54 +0000 (16:03 +0200)]
imap: Set [io]stream name for imap client connections.
Timo Sirainen [Mon, 4 Feb 2013 13:59:50 +0000 (15:59 +0200)]
istream-tee: Copy the parent stream's name to child streams.
Timo Sirainen [Mon, 4 Feb 2013 13:59:12 +0000 (15:59 +0200)]
i_stream_close(): Set stream_errno to EPIPE instead of ENOENT.
Timo Sirainen [Sun, 3 Feb 2013 19:53:24 +0000 (21:53 +0200)]
iostream-temp: Avoid copying data if IOSTREAM_TEMP_FLAG_TRY_FD_DUP is set.
Timo Sirainen [Sun, 3 Feb 2013 19:52:48 +0000 (21:52 +0200)]
i_stream_create_error() should have set eof=TRUE immediately.
Timo Sirainen [Sun, 3 Feb 2013 19:52:19 +0000 (21:52 +0200)]
lib-fs: fs_write_stream_finish(file, NULL) is now alias to fs_write_stream_finish_async(file)
This makes wrapper implementations easier.
Timo Sirainen [Sun, 3 Feb 2013 19:51:40 +0000 (21:51 +0200)]
lib-fs: fs-posix now allows reading from the same file that was created.
Timo Sirainen [Sun, 3 Feb 2013 19:48:58 +0000 (21:48 +0200)]
lib-fs: istream-metawrap is a bit more flexible now, allowing stat()ing and reading from fd
Timo Sirainen [Sat, 2 Feb 2013 20:21:36 +0000 (22:21 +0200)]
fts-solr: Compile warning fix
Timo Sirainen [Sat, 2 Feb 2013 15:02:55 +0000 (17:02 +0200)]
Oops :) Update copyrights to 2013 without breaking all .c files.
Timo Sirainen [Sat, 2 Feb 2013 15:01:07 +0000 (17:01 +0200)]
Updated copyright notices to include year 2013.
Timo Sirainen [Sat, 2 Feb 2013 14:52:23 +0000 (16:52 +0200)]
fts-solr: Deinit solr connection at plugin unload.
Timo Sirainen [Fri, 1 Feb 2013 22:31:44 +0000 (00:31 +0200)]
dbox: Fail if trying to create a mailbox that already exists.
Timo Sirainen [Fri, 1 Feb 2013 00:25:18 +0000 (02:25 +0200)]
fts-solr: Reverted previous change, it only crashes.
The plugin is already unloaded at lib_atexit() time.
Timo Sirainen [Fri, 1 Feb 2013 00:18:54 +0000 (02:18 +0200)]
fts-solr: Free the solr_connection at exit.
Stephan Bosch [Thu, 31 Jan 2013 23:39:41 +0000 (01:39 +0200)]
lib-http: Various bugfixes
Timo Sirainen [Thu, 31 Jan 2013 23:03:05 +0000 (01:03 +0200)]
auth: first/last_valid_uid settings shouldn't have had auth_ prefix.
Timo Sirainen [Thu, 31 Jan 2013 20:59:13 +0000 (22:59 +0200)]
ostream: If stream is closed with stream_errno=0, set it to EPIPE.
Timo Sirainen [Thu, 31 Jan 2013 20:58:24 +0000 (22:58 +0200)]
ostream: Default seek&write_at implementations should fail with ESPIPE, not EPIPE.
Timo Sirainen [Thu, 31 Jan 2013 20:14:12 +0000 (22:14 +0200)]
replicator: Don't try to reuse doveadm connections (and have them immediately fail)
Timo Sirainen [Thu, 31 Jan 2013 20:13:36 +0000 (22:13 +0200)]
replicator plugin: Use non-blocking open for the replicator fifo.
This fixes an infinite hang if the replicator process isn't running.
Timo Sirainen [Thu, 31 Jan 2013 19:49:00 +0000 (21:49 +0200)]
replicator: Use locking when running dsync.
Timo Sirainen [Thu, 31 Jan 2013 19:01:09 +0000 (21:01 +0200)]
replicator: Crashfix at deinit
Timo Sirainen [Thu, 31 Jan 2013 17:58:34 +0000 (19:58 +0200)]
dsync: More fixes to merging flag/keyword changes.
Timo Sirainen [Thu, 31 Jan 2013 17:45:50 +0000 (19:45 +0200)]
doveadm fetch: Added "modseq" field.
Timo Sirainen [Thu, 31 Jan 2013 17:45:33 +0000 (19:45 +0200)]
dsync: Fixed syncing message keywords.
"add" and "final" can't be mixed together always without causing keywords to
be added back unintentionally.
Timo Sirainen [Thu, 31 Jan 2013 17:44:28 +0000 (19:44 +0200)]
dsync: If both local and remote have the same message flags, don't go changing them.
Timo Sirainen [Thu, 31 Jan 2013 17:05:55 +0000 (19:05 +0200)]
dsync: When we know that remote does a flag update, try to guess the remote's new modseq and set it
Timo Sirainen [Thu, 31 Jan 2013 16:47:20 +0000 (18:47 +0200)]
dsync: If mailbox UIDVALIDITY is 0, sync it to assign it instead of assert-crashing.
Timo Sirainen [Thu, 31 Jan 2013 16:39:44 +0000 (18:39 +0200)]
dsync: Fixed syncing keyword removals.
Timo Sirainen [Thu, 31 Jan 2013 16:27:22 +0000 (18:27 +0200)]
lib-ssl-iostream: Pass the plain istream's fd to ssl_istream.
Timo Sirainen [Thu, 31 Jan 2013 16:17:10 +0000 (18:17 +0200)]
iostream-rawlog: Ignore 0 byte writes instead of assert-crashing.
Timo Sirainen [Thu, 31 Jan 2013 15:03:16 +0000 (17:03 +0200)]
dsync: Increased "remote cmd exit wait" from 5 to 30 seconds.
Timo Sirainen [Thu, 31 Jan 2013 15:01:46 +0000 (17:01 +0200)]
dsync: Ignore GUID mismatch on expunged message pair.
Timo Sirainen [Wed, 30 Jan 2013 22:27:17 +0000 (00:27 +0200)]
auth: Removed assert-checks, allowing plugins to set skip_password_check.
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:45:10 +0000 (23:45 +0200)]
Added signature for changeset
b314c97d4bbf
Timo Sirainen [Wed, 30 Jan 2013 21:45:06 +0000 (23:45 +0200)]
Added tag 2.1.14 for changeset
b314c97d4bbf
Timo Sirainen [Wed, 30 Jan 2013 21:45:06 +0000 (23:45 +0200)]
Released v2.1.14.
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 15:55:20 +0000 (17:55 +0200)]
lib-index: Fixed invalidating buffered cache file with map_with_read.
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 14:53:52 +0000 (16:53 +0200)]
lib-index: Fixes to handling broken cache records that point outside file.
Especially try to avoid failing by trying to allocate gigabytes of memory.
Timo Sirainen [Tue, 22 Jan 2013 14:31:17 +0000 (16:31 +0200)]
lib-storage: Catch input stream errors when parsing mail.
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 [Tue, 15 Jan 2013 06:30:03 +0000 (08:30 +0200)]
buffer: Always keep +1 byte available for str_c()'s NUL.
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 11:01:33 +0000 (13:01 +0200)]
doveadm acl: Added "recalc" command to rebuild acl_lookup_dict for the user.