]>
git.ipfire.org Git - thirdparty/dovecot/core.git/log
Timo Sirainen [Wed, 20 Mar 2013 20:05:53 +0000 (22:05 +0200)]
Added tag 2.2.rc3 for changeset
11bd79bf4866
Timo Sirainen [Wed, 20 Mar 2013 20:05:53 +0000 (22:05 +0200)]
Released v2.2.rc3.
Timo Sirainen [Wed, 20 Mar 2013 19:44:48 +0000 (21:44 +0200)]
Merged changes from v2.1 tree.
Timo Sirainen [Wed, 20 Mar 2013 19:13:20 +0000 (21:13 +0200)]
doveadm pw -t: Don't ask for password if -p is also specified.
Patch by Paul Wallingford.
Timo Sirainen [Wed, 20 Mar 2013 19:04:29 +0000 (21:04 +0200)]
mbox: Moved .subscriptions back to control_dir/ root instead of control_dir/.imap/
Timo Sirainen [Wed, 20 Mar 2013 18:56:58 +0000 (20:56 +0200)]
layout=fs: Fixed crash with mbox when control dir was enabled.
Timo Sirainen [Wed, 20 Mar 2013 18:47:46 +0000 (20:47 +0200)]
dsync: Fixed retrying a search when GUIDs aren't available.
Timo Sirainen [Wed, 20 Mar 2013 18:47:14 +0000 (20:47 +0200)]
dsync: Avoid a creating a lot of searches for each synced mailbox.
Timo Sirainen [Wed, 20 Mar 2013 18:24:31 +0000 (20:24 +0200)]
dsync: Don't crash when requested mail doesn't have a GUID.
Timo Sirainen [Wed, 20 Mar 2013 18:17:15 +0000 (20:17 +0200)]
layout=fs: Fixed assert-crash when mail root doesn't exist (pop3c).
Timo Sirainen [Wed, 20 Mar 2013 17:18:01 +0000 (19:18 +0200)]
imap: Don't crash with invalid FETCH BODY[sections]
Timo Sirainen [Wed, 20 Mar 2013 16:52:51 +0000 (18:52 +0200)]
example-config: Removed a warning about mail_attachment_dir not being tested.
Timo Sirainen [Wed, 20 Mar 2013 16:46:10 +0000 (18:46 +0200)]
fts: Fixed crash when searching virtual mailboxes and fts backend without lookup_multi().
Patch by Mike Abbott / Apple
Timo Sirainen [Wed, 20 Mar 2013 16:24:21 +0000 (18:24 +0200)]
lib-lda: Send QUIT after DATA replies have been received.
Timo Sirainen [Wed, 20 Mar 2013 16:09:46 +0000 (18:09 +0200)]
acl: Put ACL files to control dir if storage doesn't have a mail directory.
Timo Sirainen [Wed, 20 Mar 2013 15:59:32 +0000 (17:59 +0200)]
layout=index: Fixed mailbox_exists()
Timo Sirainen [Wed, 20 Mar 2013 15:54:52 +0000 (17:54 +0200)]
imap: Fixed RESETKEY assert-crashing
Timo Sirainen [Wed, 20 Mar 2013 15:44:07 +0000 (17:44 +0200)]
layout=index: Don't return a path for \Noselect mailboxes.
Timo Sirainen [Wed, 20 Mar 2013 15:43:32 +0000 (17:43 +0200)]
lib-storage: mailbox_rename() shouldn't require source mailbox to exist.
\Noselect mailboxes may not exist. The nonexistence will be noticed
eventually in the backend code.
Timo Sirainen [Wed, 20 Mar 2013 15:10:47 +0000 (17:10 +0200)]
lib-fs: Fixed fs_default_copy() to work with async writes.
Timo Sirainen [Wed, 20 Mar 2013 10:04:39 +0000 (12:04 +0200)]
replicator: Renamed doveadm-connection to dsync-client.
Timo Sirainen [Wed, 20 Mar 2013 07:59:27 +0000 (09:59 +0200)]
dsync: Fixed attribute value comparisons.
Timo Sirainen [Tue, 19 Mar 2013 21:31:41 +0000 (23:31 +0200)]
Compiler warning fix.
Timo Sirainen [Tue, 19 Mar 2013 17:08:17 +0000 (19:08 +0200)]
lib-storage: Added a way to create plugins that forcibly hook into mail storage.
Mostly meant for doveadm_sieve plugin.
Timo Sirainen [Tue, 19 Mar 2013 17:05:27 +0000 (19:05 +0200)]
lib-storage: Mailbox attributes can now be accessed via istreams.
The idea is to use istreams for larger values.
Timo Sirainen [Tue, 19 Mar 2013 16:52:39 +0000 (18:52 +0200)]
dsync: Fixed sending mailbox attributes with stream ibc.
Timo Sirainen [Tue, 19 Mar 2013 16:50:55 +0000 (18:50 +0200)]
dsync: Mail requests were lost when attributes were being synced.
Timo Sirainen [Tue, 19 Mar 2013 16:48:47 +0000 (18:48 +0200)]
acl: Don't iterate ACL attributes if prefix has no chance of matching them.
Timo Sirainen [Tue, 19 Mar 2013 12:00:49 +0000 (14:00 +0200)]
acl: Preserve dovecot-acl file's mtime when dsyncing.
Timo Sirainen [Tue, 19 Mar 2013 12:00:21 +0000 (14:00 +0200)]
acl: Don't unnecessarily rewrite dovecot-acl file when re-adding the same ACL.
Timo Sirainen [Tue, 19 Mar 2013 11:59:22 +0000 (13:59 +0200)]
dsync: Set last_change timestamp for unset attributes.
Timo Sirainen [Tue, 19 Mar 2013 11:59:02 +0000 (13:59 +0200)]
lib-storage: Allow mailbox_attribute_set() to also unset values.
This allows giving the last_change timestamp also when unsetting.
Timo Sirainen [Tue, 19 Mar 2013 11:34:12 +0000 (13:34 +0200)]
lib-storage: mailbox_attribute_set() now uses struct mail_attribute_value.
This allows settig the last_change value, as well as using streams and
setting other flags in future.
Timo Sirainen [Tue, 19 Mar 2013 10:39:43 +0000 (12:39 +0200)]
net_is_in_network(): Don't assert-crash with invalid IP.
It's probably better to do the check here instead of remembering for caller
to do the check.
Timo Sirainen [Tue, 19 Mar 2013 10:18:25 +0000 (12:18 +0200)]
test-json-parser: Fixed failing test with some non-gcc/clang compilers.
Timo Sirainen [Tue, 19 Mar 2013 10:13:33 +0000 (12:13 +0200)]
ldap auth: Removed base() wrapper around @dn values.
The idea was to provide extensibility, but it can better be done with LDAP
URLs.
Timo Sirainen [Tue, 19 Mar 2013 09:52:15 +0000 (11:52 +0200)]
lib-fs: fs-test now sets the ssl_client_set.ca_dir
Timo Sirainen [Tue, 19 Mar 2013 09:42:51 +0000 (11:42 +0200)]
Moved ssl_client_ca_dir and ssl_crypto_device to mail_storage_settings.
Probably could also be moved to master_service_settings, but that makes
accessing them a bit more tricky with the current code.
Timo Sirainen [Tue, 19 Mar 2013 09:39:07 +0000 (11:39 +0200)]
lib-fs: Allow passing through SSL client settings via struct fs_settings.
Timo Sirainen [Mon, 18 Mar 2013 19:31:34 +0000 (21:31 +0200)]
ldap auth: "!ldapField" now requests the given field, but doesn't return it directly.
It's only useful for listing fields that %{ldap_ptr} can potentially access.
Timo Sirainen [Mon, 18 Mar 2013 19:23:54 +0000 (21:23 +0200)]
ldap auth: Added %{ldap_ptr:realAttr} to get the value from the realAttr.
For example:
password_attrs = \
=proxy=y, \
=host=%{ldap_ptr:activeHost}, \
primaryHost, secondaryHost
Where activeHost's value is either "primaryHost" or "secondaryHost".
Timo Sirainen [Mon, 18 Mar 2013 19:20:54 +0000 (21:20 +0200)]
ldap auth: Fix to previous change.
Timo Sirainen [Mon, 18 Mar 2013 18:51:33 +0000 (20:51 +0200)]
ldap auth: Support field values containing DNs to other LDAP records and getting them.
For example:
user_attrs = \
=user=%{ldap:uid}, \
@mail=base(%{ldap:mailDN}), \
=uid=%{ldap:uidNumber@mail}, \
=gid=%{ldap:gidNumber@mail}, \
=home=%{ldap:rootPath@mail}/%d/%n
This first does the regular lookup, and then does another lookup using
mailDN's value as the new lookup's base. The other lookup's filter is
currently hardcoded to "no filter".
Timo Sirainen [Mon, 18 Mar 2013 14:51:58 +0000 (16:51 +0200)]
auth: Return "nologin" and "proxy" fields to login process without "=value".
Timo Sirainen [Mon, 18 Mar 2013 13:59:40 +0000 (15:59 +0200)]
Compiling fix for Solaris
Timo Sirainen [Mon, 18 Mar 2013 13:47:14 +0000 (15:47 +0200)]
istream-qp-decoder: Fixed assert-crashing with buffer size allocations.
The original implementation was copy&pasted from istream-base64-decoder
without enough thinking..
Timo Sirainen [Mon, 18 Mar 2013 13:46:16 +0000 (15:46 +0200)]
quoted-printable decoding: Don't add CR if it wasn't in input.
This guarantees that the decoded Q-P won't be larger than its input.
Timo Sirainen [Fri, 15 Mar 2013 20:58:51 +0000 (21:58 +0100)]
lib-master: include unistd.h for master_getopt() users.
Timo Sirainen [Fri, 15 Mar 2013 20:55:40 +0000 (21:55 +0100)]
Compile fix on non-gcc/clang.
Timo Sirainen [Fri, 15 Mar 2013 19:49:39 +0000 (20:49 +0100)]
Compile fix on non-gcc/clang.
Timo Sirainen [Thu, 14 Mar 2013 13:41:39 +0000 (15:41 +0200)]
acl: Added ACL checks for attributes. Added ACL <-> mailbox attribute mapping.
The ACL checks will be useful once IMAP METADATA extension is finished. The
mapping is used by dsync to sync ACLs via generic attribute syncing.
Timo Sirainen [Thu, 14 Mar 2013 13:41:09 +0000 (15:41 +0200)]
dsync: Added support for syncing mailbox attributes.
Timo Sirainen [Thu, 14 Mar 2013 13:32:14 +0000 (15:32 +0200)]
lib-storage: Changed mailbox_attribute_get/set() APIs to have a transaction and update index.
The _get() doesn't currently actually use the transaction. It was mainly put
there for future use where it could be useful. It's also possible that
_iter() will need a transaction also. For now these decisions seem good
enough.
Timo Sirainen [Thu, 14 Mar 2013 13:29:18 +0000 (15:29 +0200)]
lib-index: mail_index_attribute_[un]set() adds changed attributes' keys to transaction log.
This provides them both a modseq (so their changes become visible) as well
as an efficient way to see what attributes have changed by reading the
transaction log. The values themselves aren't written to the log, because
they could be large.
Timo Sirainen [Thu, 14 Mar 2013 13:24:48 +0000 (15:24 +0200)]
lib-master: Added version_string_verify_full()
Timo Sirainen [Thu, 14 Mar 2013 13:25:07 +0000 (15:25 +0200)]
istream-dot unit test updated.
Timo Sirainen [Wed, 13 Mar 2013 20:11:39 +0000 (22:11 +0200)]
iostreams: Added close_parent flag to close() handler and clarified close/destroy APIs.
This makes it unambiguous how things work: Unless you explicitly call
[io]_stream_close(), the parent streams won't be closed. This is what most
(hopefully all!) of the existing code expects.
I was wondering a bit if [io]_stream_destroy() should simply have been
removed and replaced with [io]_stream_unref() calls, since they would have
worked basically everywhere, but there might be some places where it's
better to have explicitly closed the stream (and where closing the parent
stream doesn't matter).
Timo Sirainen [Wed, 13 Mar 2013 13:05:05 +0000 (15:05 +0200)]
lda, lmtp: postmaster_address = postmaster@%d works now.
Timo Sirainen [Mon, 11 Mar 2013 15:25:46 +0000 (17:25 +0200)]
lib-fs: Fixed fs_delete() API description.
Timo Sirainen [Mon, 11 Mar 2013 12:44:48 +0000 (14:44 +0200)]
acl: Delay initializing default backend ACLs.
This fixes a crash with LAYOUT=index.
Timo Sirainen [Sun, 10 Mar 2013 18:52:10 +0000 (20:52 +0200)]
fts-solr: Removed unnecessary code.
Timo Sirainen [Sun, 10 Mar 2013 18:49:51 +0000 (20:49 +0200)]
lib-http: Don't crash if request callback manages to get the connection destroyed.
Timo Sirainen [Sun, 10 Mar 2013 18:38:35 +0000 (20:38 +0200)]
lib-http: Added assert.
Timo Sirainen [Sun, 10 Mar 2013 18:37:41 +0000 (20:37 +0200)]
lib-http: Callback can now request a retry with http_client_request_try_retry()
This can be useful for handling "try again" errors from HTTP servers.
Timo Sirainen [Sun, 10 Mar 2013 18:34:49 +0000 (20:34 +0200)]
lib-http: Removed unnecessary code from test-http-client
Timo Sirainen [Sun, 10 Mar 2013 17:55:45 +0000 (19:55 +0200)]
lib-http: Free peer if it can't be connected to and it has no pending requests.
Timo Sirainen [Sun, 10 Mar 2013 17:54:51 +0000 (19:54 +0200)]
lib-http: If host can't be connected to, don't keep retrying with more than one connection.
This also fixes infinitely trying to reconnect to host and retry.
Timo Sirainen [Sun, 10 Mar 2013 16:37:46 +0000 (18:37 +0200)]
lib-http: If SSL connection gets lost, log the last SSL error.
Timo Sirainen [Sun, 10 Mar 2013 16:37:10 +0000 (18:37 +0200)]
lib-ssl-iostream: Enable SSL_MODE_ENABLE_PARTIAL_WRITE
Timo Sirainen [Sun, 10 Mar 2013 16:36:40 +0000 (18:36 +0200)]
lib-ssl-iostream: Fixed "bad write retry" errors when output had to be buffered.
Timo Sirainen [Sun, 10 Mar 2013 16:16:28 +0000 (18:16 +0200)]
iostream-rawlog: Pass through close() to parent input/output stream.
Timo Sirainen [Sun, 10 Mar 2013 15:19:14 +0000 (17:19 +0200)]
lib-http: Fixed hangs with urgent requests.
Timo Sirainen [Sun, 10 Mar 2013 15:17:47 +0000 (17:17 +0200)]
lib-http: Allow caller to find out what state a request is in.
Timo Sirainen [Fri, 8 Mar 2013 18:25:12 +0000 (20:25 +0200)]
lib-http: Send Content-Length whenever payload is specified, even if its size is 0.
Timo Sirainen [Wed, 6 Mar 2013 09:39:43 +0000 (11:39 +0200)]
Added ostream-hash for calculating a hash from data going through ostream.
Timo Sirainen [Tue, 5 Mar 2013 19:44:07 +0000 (21:44 +0200)]
lib-http: Avoid hanging on urgent requests.
Patch by Timo & Stephan. There are still some problems though, all urgent
requests don't seem to get a new connection.
Timo Sirainen [Tue, 5 Mar 2013 14:32:12 +0000 (16:32 +0200)]
lib-http: Fixed crash caused by previous change.
Timo Sirainen [Tue, 5 Mar 2013 12:32:03 +0000 (14:32 +0200)]
lib-http: If we get disconnected, say exactly what the error was.
Timo Sirainen [Tue, 5 Mar 2013 12:31:43 +0000 (14:31 +0200)]
connection: Give input/output streams a name.
Timo Sirainen [Tue, 5 Mar 2013 12:31:29 +0000 (14:31 +0200)]
connection_list_deinit(): Set disconnect_reason correctly to CONNECTION_DISCONNECT_DEINIT
Timo Sirainen [Tue, 5 Mar 2013 10:20:41 +0000 (12:20 +0200)]
lib-fs: istream-metawrap supports now seeking before reading the metadata.
Timo Sirainen [Tue, 5 Mar 2013 09:45:26 +0000 (11:45 +0200)]
lib-http: Fixed http_client_wait() assert.
Timo Sirainen [Tue, 5 Mar 2013 09:45:10 +0000 (11:45 +0200)]
Added io_loop_have_immediate_timeouts()
Timo Sirainen [Tue, 5 Mar 2013 09:24:46 +0000 (11:24 +0200)]
lib-http: If connection was refused to a host, retry again on next request.
Instead of never retrying again for the host.
Timo Sirainen [Mon, 4 Mar 2013 14:27:16 +0000 (16:27 +0200)]
tcpwrap: Fixed crash at startup.
Timo Sirainen [Mon, 4 Mar 2013 13:53:42 +0000 (15:53 +0200)]
dbox: Crashfix on some failed save error conditions.
Timo Sirainen [Mon, 4 Mar 2013 13:18:08 +0000 (15:18 +0200)]
lib-settings: Improved error messages when config server disconnects too early.
Timo Sirainen [Mon, 4 Mar 2013 13:12:17 +0000 (15:12 +0200)]
lib-storage: raw storage allows opening mails with absolute paths again.
Fixed dovecot-lda -p parameter.
Timo Sirainen [Mon, 4 Mar 2013 12:59:13 +0000 (14:59 +0200)]
Fixed compiling without zlib.
Timo Sirainen [Wed, 27 Feb 2013 16:00:29 +0000 (18:00 +0200)]
doveadm: Fixed connecting to UNIX sockets.
Timo Sirainen [Wed, 27 Feb 2013 12:26:28 +0000 (14:26 +0200)]
acl: Don't assert-crash on storages that have no root directory.
Timo Sirainen [Wed, 27 Feb 2013 11:07:35 +0000 (13:07 +0200)]
message-decode: Minor fix to previous change.
The == condition should probably never happen, but handle it anyway.
Timo Sirainen [Wed, 27 Feb 2013 11:05:40 +0000 (13:05 +0200)]
message-decoder: Fixed assert-crash when trying to decode partial character twice.
Timo Sirainen [Wed, 27 Feb 2013 10:34:18 +0000 (12:34 +0200)]
timeout_add_short(1) may have caused infinite looping.
Timo Sirainen [Wed, 27 Feb 2013 10:34:00 +0000 (12:34 +0200)]
dsync: If I/O gets stalled, log the state in which it happened.
Timo Sirainen [Wed, 27 Feb 2013 10:07:06 +0000 (12:07 +0200)]
dsync: Fixed running dsync for multiple users within same command.
Timo Sirainen [Wed, 27 Feb 2013 10:00:03 +0000 (12:00 +0200)]
dsync: When changing duplicate mailbox GUIDs, choose the same mailbox on both sides.
Timo Sirainen [Wed, 27 Feb 2013 09:47:08 +0000 (11:47 +0200)]
dsync: Don't unnecessarily try to create all the mailboxes when they already exist.
Timo Sirainen [Wed, 27 Feb 2013 09:21:48 +0000 (11:21 +0200)]
dsync: Change duplicate local mailbox GUIDs if they're found.
Timo Sirainen [Wed, 27 Feb 2013 09:04:14 +0000 (11:04 +0200)]
dsync: Skip mailbox aliases (symlinks) for now.