]>
git.ipfire.org Git - thirdparty/dovecot/core.git/log
Timo Sirainen [Sat, 16 Feb 2013 05:15:55 +0000 (07:15 +0200)]
dsync: Various importer fixes. Handle unexpectedly wrong mailbox state better.
Timo Sirainen [Sat, 16 Feb 2013 05:12:18 +0000 (07:12 +0200)]
dsync: Wait for child process to close only after closing the stdin/out/err to it.
Otherwise the ssh process doesn't shutdown.
Timo Sirainen [Wed, 13 Feb 2013 10:43:34 +0000 (12:43 +0200)]
fs layout: Don't assert-crash if namespace prefix begins with the separator.
Timo Sirainen [Wed, 13 Feb 2013 10:27:32 +0000 (11:27 +0100)]
Renamed quota_last_extra to quota_grace.
Timo Sirainen [Wed, 13 Feb 2013 10:22:22 +0000 (12:22 +0200)]
auth: When receiving SIGUSR2 log also about current cache usage.
Timo Sirainen [Mon, 11 Feb 2013 01:13:45 +0000 (03:13 +0200)]
NEWS, example-config: Add a note about quota_last_extra
Timo Sirainen [Mon, 11 Feb 2013 01:07:24 +0000 (03:07 +0200)]
quota: Use quota_last_extra only for LDA/LMTP (not for IMAP).
Timo Sirainen [Mon, 11 Feb 2013 01:03:12 +0000 (03:03 +0200)]
lib-lda: Assert-crashfix when sending a rejection mail failed.
Timo Sirainen [Mon, 11 Feb 2013 01:02:49 +0000 (03:02 +0200)]
quota: Added quota_last_extra setting, which defaults to 10%
This can be used to save the last message when user is almost over quota.
So by default the last message can bring the quota over 10% of the total
quota limit. The setting allows also explicit values. Setting it to 0 brings
it back to previous behavior.
Timo Sirainen [Mon, 11 Feb 2013 00:03:43 +0000 (02:03 +0200)]
lib-imap-urlauth: Use MAILBOX_ATTRIBUTE_PREFIX_DOVECOT for the imap-urlauth key.
Timo Sirainen [Mon, 11 Feb 2013 00:03:13 +0000 (02:03 +0200)]
lib-storage: Added MAILBOX_ATTRIBUTE_DOVECOT_PREFIX macro.
Stephan Bosch [Sun, 10 Feb 2013 23:43:25 +0000 (01:43 +0200)]
fts-solr: Use built-in lib-http instead of libcurl. Removed libcurl dependency.
Timo Sirainen [Sun, 10 Feb 2013 23:22:51 +0000 (01:22 +0200)]
dsync: Minor fix to deciding when to use GUIDs vs. header hashes.
Timo Sirainen [Sun, 10 Feb 2013 23:10:57 +0000 (01:10 +0200)]
dsync: Fixes for syncing without GUIDs.
Timo Sirainen [Sun, 10 Feb 2013 23:07:53 +0000 (01:07 +0200)]
dsync: When doing a header-based sync, convert all linefeeds to LFs.
Fixes syncing where one side used CRLFs and the other side used LFs.
Timo Sirainen [Sun, 10 Feb 2013 22:29:40 +0000 (00:29 +0200)]
i_stream_sync() for file should reset eof flag immediately.
Timo Sirainen [Sun, 10 Feb 2013 22:28:28 +0000 (00:28 +0200)]
dsync: Automatically figure out which mailboxes can sync with message GUIDs.
Timo Sirainen [Sun, 10 Feb 2013 22:26:15 +0000 (00:26 +0200)]
lib-storage: Added mailbox_status.have_guids flag
Timo Sirainen [Sun, 10 Feb 2013 22:25:29 +0000 (00:25 +0200)]
lib-storage: Minor code cleanup
Timo Sirainen [Sun, 10 Feb 2013 22:24:56 +0000 (00:24 +0200)]
lib-storage: Don't unnecessarily clear mailbox_status multiple times.
Timo Sirainen [Sun, 10 Feb 2013 22:23:07 +0000 (00:23 +0200)]
lib-storage: mailbox_status.nonpermanent_modseqs is now only set with STATUS_HIGHESTMODSEQ
Timo Sirainen [Sun, 10 Feb 2013 21:27:49 +0000 (23:27 +0200)]
dsync: When looking up header hashes, use only Date: and Message-Id: headers
This makes it more efficient, at least in future when imapc backend
optimizes this.
Timo Sirainen [Sun, 10 Feb 2013 21:11:52 +0000 (23:11 +0200)]
dsync: Renamed "guid_requests" to "mail_requests"
The mails aren't necessarily requested by their GUID.
Timo Sirainen [Sun, 10 Feb 2013 21:09:55 +0000 (23:09 +0200)]
dsync: Removed unused DSYNC_MAILBOX_IMPORT_FLAG_MAILS_HAVE_GUIDS flag.
Timo Sirainen [Sun, 10 Feb 2013 21:05:46 +0000 (23:05 +0200)]
dsync: Fixed mailbox tree sync with some backends (imapc)
Timo Sirainen [Tue, 5 Feb 2013 01:53:40 +0000 (03:53 +0200)]
lib-storage: Changed mailbox_attribute_get() to return a struct for value.
This allows returning flags for the values in future. Mainly readonly-flag
for internal attributes and when restricted by ACL plugin.
Timo Sirainen [Tue, 5 Feb 2013 01:37:47 +0000 (03:37 +0200)]
lib-fs: Changed FS_OPEN_FLAG_UNIMPORTANT to a reversed FS_OPEN_FLAG_FSYNC.
This explains its behavior better.
Timo Sirainen [Tue, 5 Feb 2013 01:30:01 +0000 (03:30 +0200)]
fs-metawrap: Don't duplicate work if fs_get_metadata() is called multiple times.
Timo Sirainen [Tue, 5 Feb 2013 01:24:45 +0000 (03:24 +0200)]
cydir, dbox, maildir: Don't leak the stream if mail.istream_opened() fails
Timo Sirainen [Tue, 5 Feb 2013 01:23:59 +0000 (03:23 +0200)]
lib-index: Memory leak fix
Timo Sirainen [Tue, 5 Feb 2013 01:23:46 +0000 (03:23 +0200)]
fs-metawrap: Memory leak fixes
Timo Sirainen [Tue, 5 Feb 2013 01:23:30 +0000 (03:23 +0200)]
lib-fs: Avoid memory leaks if file was closed before fs_read()/fs_copy() was finished.
Timo Sirainen [Mon, 4 Feb 2013 23:16:48 +0000 (01:16 +0200)]
fs-metawrap: Set underlying file async only for fs_read_stream() lookups.
Timo Sirainen [Mon, 4 Feb 2013 20:15:59 +0000 (22:15 +0200)]
iostream-temp: Set a name for the returned istream.
Timo Sirainen [Mon, 4 Feb 2013 20:07:14 +0000 (22:07 +0200)]
lib-http: If http_client_request_set_payload() fails to get stream size, log an error.
Timo Sirainen [Mon, 4 Feb 2013 20:03:10 +0000 (22:03 +0200)]
iostream-temp: Don't try to dup() the stream fd if it's already closed.
Timo Sirainen [Mon, 4 Feb 2013 20:02:42 +0000 (22:02 +0200)]
fs-metawrap: Delay writing the metadata headers until first data is written.
Also some other read/write fixes.
Timo Sirainen [Mon, 4 Feb 2013 18:18:22 +0000 (20:18 +0200)]
lib-fs: Added FS_OPEN_FLAG_SEEKABLE. Globally handle fs_read_stream() seekability and waits.
Timo Sirainen [Mon, 4 Feb 2013 18:17:14 +0000 (20:17 +0200)]
fs-metawrap: Fixed stat() to work when parent file's input stream didn't have a parent.
Timo Sirainen [Mon, 4 Feb 2013 18:15:32 +0000 (20:15 +0200)]
fs-metawrap: Error handling fixes
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 [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 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 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: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.