]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
11 years agoauth, login, mail: Added %{auth_user}, %{auth_username} and %{auth_domain}
Timo Sirainen [Tue, 14 Jan 2014 01:24:47 +0000 (03:24 +0200)] 
auth, login, mail: Added %{auth_user}, %{auth_username} and %{auth_domain}
They expand to the SASL authentication ID. So if master user login is done,
it expands to the master user. If username changes during authentication, it
expands to the original username. Otherwise %{user} and %{auth_user} are
equal.

11 years agoauth: Send original_user to auth client also when there aren't any extra fields.
Timo Sirainen [Tue, 14 Jan 2014 00:43:09 +0000 (02:43 +0200)] 
auth: Send original_user to auth client also when there aren't any extra fields.

11 years agodbox: Removed unused code.
Timo Sirainen [Mon, 13 Jan 2014 20:58:13 +0000 (15:58 -0500)] 
dbox: Removed unused code.

11 years agoiostream-temp: Support o_stream_pwrite()
Timo Sirainen [Mon, 13 Jan 2014 20:44:34 +0000 (22:44 +0200)] 
iostream-temp: Support o_stream_pwrite()

11 years agodoveadm fs delete: Fixed non-recursive deletion broken by previous commit
Timo Sirainen [Mon, 13 Jan 2014 18:57:12 +0000 (20:57 +0200)] 
doveadm fs delete: Fixed non-recursive deletion broken by previous commit

11 years agohttp: Improved HTTP header parser state machine and error messages.
Stephan Bosch [Fri, 10 Jan 2014 20:00:39 +0000 (15:00 -0500)] 
http: Improved HTTP header parser state machine and error messages.

11 years agolib-http: Added option to the header parser to make it lenient towards illegal charac...
Stephan Bosch [Fri, 10 Jan 2014 20:00:28 +0000 (15:00 -0500)] 
lib-http: Added option to the header parser to make it lenient towards illegal characters in header field content.
The offending characters are then skipped without error. This is required
for the http client as a workaround for bugs in certain HTTP servers. This
behavior is explicitly not enabled for the http-request-parser as used by
our own HTTP server implementation.

11 years agolib-master: Added unit test for master_service_settings_cache_read()
Timo Sirainen [Fri, 10 Jan 2014 19:59:15 +0000 (21:59 +0200)] 
lib-master: Added unit test for master_service_settings_cache_read()

11 years agoimap proxy: Avoid duplicate CAPABILITY reply when backend is Dovecot.
Timo Sirainen [Fri, 10 Jan 2014 18:00:39 +0000 (13:00 -0500)] 
imap proxy: Avoid duplicate CAPABILITY reply when backend is Dovecot.
This happened if the client sent a CAPABILITY command to the proxy.

11 years agodoveadm fs delete: Added -n parameter to asynchronously delete multiple files at...
Timo Sirainen [Thu, 9 Jan 2014 22:19:19 +0000 (00:19 +0200)] 
doveadm fs delete: Added -n parameter to asynchronously delete multiple files at once.

11 years agolib-storage: Implemented get_metadata() for fail-mailbox.
Timo Sirainen [Wed, 8 Jan 2014 16:24:36 +0000 (11:24 -0500)] 
lib-storage: Implemented get_metadata() for fail-mailbox.
This fixes a crash when a nonexistent mailbox was allocated and accessed
(via LAYOUT=index).

11 years agoimap proxy: Set proxy_state correctly also with proxy_nopipelining.
Timo Sirainen [Tue, 7 Jan 2014 19:33:29 +0000 (14:33 -0500)] 
imap proxy: Set proxy_state correctly also with proxy_nopipelining.

11 years agoimap proxy: Added proxy_nopipelining passdb setting to work around other servers...
Timo Sirainen [Mon, 23 Dec 2013 13:30:31 +0000 (15:30 +0200)] 
imap proxy: Added proxy_nopipelining passdb setting to work around other servers' bugs.

11 years agomdbox: When purging writes new data, flush them to disk before locking the map index.
Timo Sirainen [Fri, 20 Dec 2013 17:59:22 +0000 (19:59 +0200)] 
mdbox: When purging writes new data, flush them to disk before locking the map index.

11 years agoAdded signature for changeset 614bd6600011
Timo Sirainen [Fri, 20 Dec 2013 02:57:25 +0000 (04:57 +0200)] 
Added signature for changeset 614bd6600011

11 years agoAdded tag 2.2.10 for changeset 614bd6600011
Timo Sirainen [Fri, 20 Dec 2013 02:57:19 +0000 (04:57 +0200)] 
Added tag 2.2.10 for changeset 614bd6600011

11 years agoReleased v2.2.10. 2.2.10
Timo Sirainen [Fri, 20 Dec 2013 02:57:19 +0000 (04:57 +0200)] 
Released v2.2.10.

11 years agoCompiler warning fix.
Timo Sirainen [Fri, 20 Dec 2013 02:25:17 +0000 (04:25 +0200)] 
Compiler warning fix.
Older libmysqlclient uses const char * as the arg.

11 years agoimap-quota: SETQUOTA supports now also user@domain:quotaroot name.
Timo Sirainen [Fri, 20 Dec 2013 02:23:04 +0000 (04:23 +0200)] 
imap-quota: SETQUOTA supports now also user@domain:quotaroot name.

11 years agoimap: GETMETADATA should return nonexistent entries also with NIL values.
Timo Sirainen [Thu, 19 Dec 2013 23:06:02 +0000 (01:06 +0200)] 
imap: GETMETADATA should return nonexistent entries also with NIL values.

11 years agoauth: If LDAP server returns LDAP_OPERATIONS_ERROR, reconnect.
Timo Sirainen [Thu, 19 Dec 2013 21:54:28 +0000 (23:54 +0200)] 
auth: If LDAP server returns LDAP_OPERATIONS_ERROR, reconnect.
Apparently the server somehow lost the bind.

11 years agoquota-status: Allow mail to go over quota up to quota_grace.
Timo Sirainen [Thu, 19 Dec 2013 21:43:54 +0000 (23:43 +0200)] 
quota-status: Allow mail to go over quota up to quota_grace.

11 years agoimap: Minor comment update: Horde uses wildcards, not Kolab.
Timo Sirainen [Thu, 19 Dec 2013 21:09:45 +0000 (23:09 +0200)] 
imap: Minor comment update: Horde uses wildcards, not Kolab.

11 years agoimap: Allow wildcards in GETMETADATA mailbox-name.
Timo Sirainen [Thu, 19 Dec 2013 21:08:03 +0000 (23:08 +0200)] 
imap: Allow wildcards in GETMETADATA mailbox-name.
RFC 5464 doesn't specify this, but its earlier draft did, and Kolab uses it.

11 years agoimap: GETMETADATA wasn't working correctly if options parameter wasn't specified.
Timo Sirainen [Thu, 19 Dec 2013 21:07:15 +0000 (23:07 +0200)] 
imap: GETMETADATA wasn't working correctly if options parameter wasn't specified.

11 years agoimap: SETMETADATA shouldn't assert-crash when entry name is invalid
Timo Sirainen [Thu, 19 Dec 2013 21:04:55 +0000 (23:04 +0200)] 
imap: SETMETADATA shouldn't assert-crash when entry name is invalid

11 years agoimap: If any FETCH/STORE tries to access modseqs when NOMODSEQ was returned, return...
Timo Sirainen [Thu, 19 Dec 2013 19:37:28 +0000 (21:37 +0200)] 
imap: If any FETCH/STORE tries to access modseqs when NOMODSEQ was returned, return BAD.

11 years agoimap: Ignore QRESYNC parameters for SELECT when returning NOMODSEQ.
Timo Sirainen [Thu, 19 Dec 2013 19:31:57 +0000 (21:31 +0200)] 
imap: Ignore QRESYNC parameters for SELECT when returning NOMODSEQ.

11 years agofs-sis: Memory leak fix.
Timo Sirainen [Thu, 19 Dec 2013 19:25:43 +0000 (21:25 +0200)] 
fs-sis: Memory leak fix.

11 years agopop3c: Memory leak fixes
Timo Sirainen [Thu, 19 Dec 2013 19:25:28 +0000 (21:25 +0200)] 
pop3c: Memory leak fixes

11 years agoimap: if mailbox has non-permanent modseqs, never send HIGHESTMODSEQ/MODSEQs.
Timo Sirainen [Thu, 19 Dec 2013 19:25:08 +0000 (21:25 +0200)] 
imap: if mailbox has non-permanent modseqs, never send HIGHESTMODSEQ/MODSEQs.

11 years agoCompiler warning fix.
Timo Sirainen [Thu, 19 Dec 2013 19:21:39 +0000 (21:21 +0200)] 
Compiler warning fix.

11 years agopop3c: If POP3 server doesn't support UIDLs, don't advertise GUID support.
Timo Sirainen [Thu, 19 Dec 2013 02:18:30 +0000 (04:18 +0200)] 
pop3c: If POP3 server doesn't support UIDLs, don't advertise GUID support.

11 years agopop3c: Added pop3c_quick_received_date setting.
Timo Sirainen [Thu, 19 Dec 2013 02:05:52 +0000 (04:05 +0200)] 
pop3c: Added pop3c_quick_received_date setting.
With this enabled dsync no longer requires calling TOP for each message to
get the metadata.

11 years agopop3c: Use UIDLs as GUIDs.
Timo Sirainen [Thu, 19 Dec 2013 02:01:58 +0000 (04:01 +0200)] 
pop3c: Use UIDLs as GUIDs.

11 years agomail-filter: If filter returns 0 bytes, treat it as EIO error.
Timo Sirainen [Tue, 17 Dec 2013 19:33:32 +0000 (21:33 +0200)] 
mail-filter: If filter returns 0 bytes, treat it as EIO error.

11 years agoCompiler warning fix
Timo Sirainen [Sat, 14 Dec 2013 12:40:13 +0000 (14:40 +0200)] 
Compiler warning fix

11 years agoldap: Added blocking=yes setting to use auth-workers.
Timo Sirainen [Fri, 13 Dec 2013 11:44:32 +0000 (13:44 +0200)] 
ldap: Added blocking=yes setting to use auth-workers.

11 years agolib-master: Show better error message when process_limit is reached.
Timo Sirainen [Thu, 12 Dec 2013 16:21:49 +0000 (18:21 +0200)] 
lib-master: Show better error message when process_limit is reached.

11 years agoauth: Previous userdb changes caused userdb prefetch to be used always.
Timo Sirainen [Thu, 12 Dec 2013 16:08:25 +0000 (18:08 +0200)] 
auth: Previous userdb changes caused userdb prefetch to be used always.

11 years agoauth: Don't crash when userdb hasn't been specified at all.
Timo Sirainen [Thu, 12 Dec 2013 15:59:28 +0000 (17:59 +0200)] 
auth: Don't crash when userdb hasn't been specified at all.

11 years agolzma: Reading until EOF without seeing LZMA_STREAM_END isn't an error.
Timo Sirainen [Thu, 12 Dec 2013 14:37:37 +0000 (16:37 +0200)] 
lzma: Reading until EOF without seeing LZMA_STREAM_END isn't an error.

11 years agologin-*: Make sure "need to write more" flag doesn't get stuck during handshake.
Timo Sirainen [Wed, 11 Dec 2013 17:39:12 +0000 (19:39 +0200)] 
login-*: Make sure "need to write more" flag doesn't get stuck during handshake.
This should prevent busy-looping in SSL_accept(). (Second attempt at doing
this, first one was in e95479f439aa.)

11 years agoauth: Use refcounting for LDAPMessage to make sure it always gets freed correctly.
Timo Sirainen [Wed, 11 Dec 2013 16:39:36 +0000 (18:39 +0200)] 
auth: Use refcounting for LDAPMessage to make sure it always gets freed correctly.
This may fix some memory leaks in some (error?) cases.

11 years agoauth: ldap with auth_bind=yes leaked memory
Timo Sirainen [Wed, 11 Dec 2013 16:39:08 +0000 (18:39 +0200)] 
auth: ldap with auth_bind=yes leaked memory
Existing LDAP search request can't just be converted into bind request
before the search request is freed. So just create a new request.

11 years agomaster: Include used protocols in the "starting up" log message.
Timo Sirainen [Mon, 9 Dec 2013 16:41:30 +0000 (18:41 +0200)] 
master: Include used protocols in the "starting up" log message.

11 years agoquota: Fix to previous wildcard change
Timo Sirainen [Mon, 9 Dec 2013 13:42:20 +0000 (15:42 +0200)] 
quota: Fix to previous wildcard change

11 years agomysql: Added ssl_verify_server_cert=no|yes parameter.
Timo Sirainen [Sun, 8 Dec 2013 22:02:58 +0000 (00:02 +0200)] 
mysql: Added ssl_verify_server_cert=no|yes parameter.
To make sure we don't break existing installations, default to "no". For
v2.3 it should default to "yes".

Patch by Gareth Palmer

11 years agolib-http: Don't try to automatically retry requests whose payload was already lost.
Timo Sirainen [Sun, 8 Dec 2013 21:41:33 +0000 (23:41 +0200)] 
lib-http: Don't try to automatically retry requests whose payload was already lost.
Patch by Stephan Bosch.

11 years agostats: Workaround opening /proc/self/io in processes that have only temporarily dropp...
Timo Sirainen [Sun, 8 Dec 2013 21:26:40 +0000 (23:26 +0200)] 
stats: Workaround opening /proc/self/io in processes that have only temporarily dropped root privileges.

11 years agoquota: Allow mailbox names in quota_rules to contain "*" and "?" wildcards.
Timo Sirainen [Sun, 8 Dec 2013 21:04:18 +0000 (23:04 +0200)] 
quota: Allow mailbox names in quota_rules to contain "*" and "?" wildcards.

11 years agofts: Fixed crash with some search queries in empty mailbox.
Timo Sirainen [Sun, 8 Dec 2013 20:30:10 +0000 (22:30 +0200)] 
fts: Fixed crash with some search queries in empty mailbox.

11 years agomaster: Finished the previous DEBUG_OUTOFMEM -> CORE_OUTOFMEM and CORE_ERROR change.
Timo Sirainen [Sun, 8 Dec 2013 20:21:40 +0000 (22:21 +0200)] 
master: Finished the previous DEBUG_OUTOFMEM -> CORE_OUTOFMEM and CORE_ERROR change.

11 years agoRenamed DEBUG_OUTOFMEM environment to CORE_OUTOFMEM. Added CORE_ERROR to dump core...
Timo Sirainen [Sun, 8 Dec 2013 20:20:12 +0000 (22:20 +0200)] 
Renamed DEBUG_OUTOFMEM environment to CORE_OUTOFMEM. Added CORE_ERROR to dump core on the first error.

11 years agoquota: Added support for SETQUOTA IMAP command.
Timo Sirainen [Sun, 8 Dec 2013 19:26:29 +0000 (21:26 +0200)] 
quota: Added support for SETQUOTA IMAP command.
The configuration is done via quota_set setting. Currently only dict backend
is supported. For example:

plugin {
  quota_set = dict:file:/var/lib/dovecot/quota/%u
}
The SETQUOTA command is available only for the "admin" user (userdb lookup
must return admin=y).

11 years agoimap-quota: Admin user can (again) use GETQUOTA for other users' quota roots.
Timo Sirainen [Sun, 8 Dec 2013 19:24:10 +0000 (21:24 +0200)] 
imap-quota: Admin user can (again) use GETQUOTA for other users' quota roots.

11 years agolib-storage: Added mail_user->admin flag.
Timo Sirainen [Sun, 8 Dec 2013 19:22:38 +0000 (21:22 +0200)] 
lib-storage: Added mail_user->admin flag.
The previous admin-flag used to mix up "admin user" and "admin tool", while
this new purpose only means "admin user".

11 years agolib-dict: Added "fs" wrapper dict backend, which uses lib-fs.
Timo Sirainen [Sun, 8 Dec 2013 19:13:22 +0000 (21:13 +0200)] 
lib-dict: Added "fs" wrapper dict backend, which uses lib-fs.
Each dict key is a separate file where the file's contents are the dict
value.

11 years agoauth: Added userdb result_success/failure/tempfail and skip settings, similar to...
Timo Sirainen [Sun, 8 Dec 2013 18:48:03 +0000 (20:48 +0200)] 
auth: Added userdb result_success/failure/tempfail and skip settings, similar to passdb's.

11 years agolib-storage: Don't crash in mailbox_is_inconsistent() if mailbox hasn't been opened.
Timo Sirainen [Sun, 8 Dec 2013 17:02:12 +0000 (19:02 +0200)] 
lib-storage: Don't crash in mailbox_is_inconsistent() if mailbox hasn't been opened.

11 years agoauth: passdb/userdb dict rewrite to support more complex configuration.
Timo Sirainen [Sun, 8 Dec 2013 17:00:31 +0000 (19:00 +0200)] 
auth: passdb/userdb dict rewrite to support more complex configuration.
See the new doc/example-config/dovecot-dict-auth.conf.ext for explanation
how it works. The old configuration format will also stay functional.

11 years agolib-imap: imap_envelope_parse() added extra "," after address group.
Timo Sirainen [Tue, 3 Dec 2013 19:31:59 +0000 (21:31 +0200)] 
lib-imap: imap_envelope_parse() added extra "," after address group.
This function wasn't actually used by Dovecot anywhere anymore.
Patch by Potapov Sergey.

11 years agoimap: If SELECT fails with "mailbox is inconsistent", disconnect client. (Plus relate...
Timo Sirainen [Tue, 3 Dec 2013 15:29:38 +0000 (17:29 +0200)] 
imap: If SELECT fails with "mailbox is inconsistent", disconnect client. (Plus related cleanups.)
The inconsistency can also be used to indicate that something is badly wrong
and nothing useful can be done before client reconnects.

11 years agolib-http: Removed assert
Timo Sirainen [Tue, 3 Dec 2013 15:17:03 +0000 (17:17 +0200)] 
lib-http: Removed assert
Time can't be relied on exactly.

11 years agoimap: Don't send [NOMODSEQ] on SELECT/EXAMINE reply when condstore hasn't been enable...
Timo Sirainen [Mon, 2 Dec 2013 23:33:18 +0000 (01:33 +0200)] 
imap: Don't send [NOMODSEQ] on SELECT/EXAMINE reply when condstore hasn't been enabled yet.
This is definitely the better behavior and was also clearly intended by the
CONDSTORE RFC, although with some mixed language.

11 years agopop3: Handle UIDL failures by disconnecting the client instead of killing the whole...
Timo Sirainen [Mon, 2 Dec 2013 16:47:52 +0000 (18:47 +0200)] 
pop3: Handle UIDL failures by disconnecting the client instead of killing the whole process.

11 years agoreplicator: Give a better error message with path when replicator.db is corrupted.
Timo Sirainen [Tue, 26 Nov 2013 20:10:23 +0000 (21:10 +0100)] 
replicator: Give a better error message with path when replicator.db is corrupted.

11 years agoAdded signature for changeset 2852a7c55fc7
Timo Sirainen [Sun, 24 Nov 2013 23:24:35 +0000 (01:24 +0200)] 
Added signature for changeset 2852a7c55fc7

11 years agoAdded tag 2.2.9 for changeset 2852a7c55fc7
Timo Sirainen [Sun, 24 Nov 2013 23:24:32 +0000 (01:24 +0200)] 
Added tag 2.2.9 for changeset 2852a7c55fc7

11 years agoReleased v2.2.9. 2.2.9
Timo Sirainen [Sun, 24 Nov 2013 23:24:32 +0000 (01:24 +0200)] 
Released v2.2.9.

11 years agoMakefile: Added missing \
Timo Sirainen [Sun, 24 Nov 2013 22:46:40 +0000 (00:46 +0200)] 
Makefile: Added missing \

11 years agoMakefile: Added missing header files
Timo Sirainen [Sun, 24 Nov 2013 22:44:21 +0000 (00:44 +0200)] 
Makefile: Added missing header files

11 years agolib-compression: Added support for liblzma (xz)
Timo Sirainen [Sun, 24 Nov 2013 21:02:13 +0000 (23:02 +0200)] 
lib-compression: Added support for liblzma (xz)
Annoyingly this is mainly copy&pasted [io]stream-bzlib, but I'm not sure if
it's worth the effort to try to create common functions for them.

11 years agoman: doveadm-mailbox.1: Added -g's description for mailbox create.
Pascal Volk [Sun, 24 Nov 2013 20:19:48 +0000 (20:19 +0000)] 
man: doveadm-mailbox.1: Added -g's description for mailbox create.

11 years agoFixed sscanf() error handling.
Timo Sirainen [Sun, 24 Nov 2013 19:41:06 +0000 (21:41 +0200)] 
Fixed sscanf() error handling.
Patch by Jann Horn.

11 years agoman: doveadm-log.1: Added description for option -s.
Pascal Volk [Sun, 24 Nov 2013 19:58:45 +0000 (19:58 +0000)] 
man: doveadm-log.1: Added description for option -s.

11 years agoman: doveadm-import.1: Added description for option -s.
Pascal Volk [Sun, 24 Nov 2013 18:29:55 +0000 (18:29 +0000)] 
man: doveadm-import.1: Added description for option -s.

11 years agoman: doveadm-expunge.1: Added option -d also to section synopsis.
Pascal Volk [Sun, 24 Nov 2013 18:02:40 +0000 (18:02 +0000)] 
man: doveadm-expunge.1: Added option -d also to section synopsis.

11 years agoData stack has now an extra NULL pointer padding before its actual data starts.
Timo Sirainen [Sun, 24 Nov 2013 18:41:42 +0000 (20:41 +0200)] 
Data stack has now an extra NULL pointer padding before its actual data starts.
This is just an extra safety measure against buffer overflows.
Patch by Jann Horn.

11 years agoauth: Fixed (non-exploitable) buffer overflow in DIGEST-MD5 data parsing.
Timo Sirainen [Sun, 24 Nov 2013 18:27:27 +0000 (20:27 +0200)] 
auth: Fixed (non-exploitable) buffer overflow in DIGEST-MD5 data parsing.
Found by Jann Horn.

11 years agoman: doveadm-move.1: Fixed syntax errors, escaped some dashes.
Pascal Volk [Sat, 23 Nov 2013 23:22:09 +0000 (23:22 +0000)] 
man: doveadm-move.1: Fixed syntax errors, escaped some dashes.

11 years agoman: doveadm-index.1: Added description for options -n and -q.
Pascal Volk [Sat, 23 Nov 2013 19:35:09 +0000 (19:35 +0000)] 
man: doveadm-index.1: Added description for options -n and -q.

11 years agofts: Renamed fts_autoindex_on_save to fts_autoindex
Timo Sirainen [Sat, 23 Nov 2013 19:18:30 +0000 (21:18 +0200)] 
fts: Renamed fts_autoindex_on_save to fts_autoindex

11 years agoreplicator: Memory leak fix for previous commit
Timo Sirainen [Sat, 23 Nov 2013 19:13:26 +0000 (21:13 +0200)] 
replicator: Memory leak fix for previous commit

11 years agoreplicator: Added replication_dsync_parameters setting to pass "doveadm sync" parameters.
Timo Sirainen [Sat, 23 Nov 2013 19:12:39 +0000 (21:12 +0200)] 
replicator: Added replication_dsync_parameters setting to pass "doveadm sync" parameters.
-f and -s parameters are added automatically when needed.

11 years agoman: doveadm-move.1: Added description for 'user source_user'.
Pascal Volk [Sat, 23 Nov 2013 18:24:24 +0000 (18:24 +0000)] 
man: doveadm-move.1: Added description for 'user source_user'.

11 years agofts: Added plugin { fts_autoindex_on_save } setting.
Timo Sirainen [Sat, 23 Nov 2013 17:28:48 +0000 (19:28 +0200)] 
fts: Added plugin { fts_autoindex_on_save } setting.
When enabled and a mail is saved/copied, the indexer process is requested to
index the changed mailbox.

fts_autoindex_max_recent_msgs setting can also be used to skip indexing
mailboxes that have too many \Recent messages (implying that the mailbox is
never actually accessed). This corresponds to doveadm index -n parameter.

11 years agoman: doveadm-user.1: Added description for the -u option.
Pascal Volk [Sat, 23 Nov 2013 16:28:04 +0000 (16:28 +0000)] 
man: doveadm-user.1: Added description for the -u option.

11 years agolib-dns: If existing dns connection dies in write(), retry connect once.
Timo Sirainen [Sat, 23 Nov 2013 16:35:08 +0000 (18:35 +0200)] 
lib-dns: If existing dns connection dies in write(), retry connect once.

11 years agolib-http: Compiler warning fix
Timo Sirainen [Sat, 23 Nov 2013 10:19:49 +0000 (12:19 +0200)] 
lib-http: Compiler warning fix

11 years agolib-storage: Non-crashing way of avoiding fs lookups for storages without mail root.
Timo Sirainen [Fri, 22 Nov 2013 22:38:41 +0000 (00:38 +0200)] 
lib-storage: Non-crashing way of avoiding fs lookups for storages without mail root.

11 years agolib-http: Fixed request hang on connect() timeout.
Timo Sirainen [Fri, 22 Nov 2013 22:00:43 +0000 (00:00 +0200)] 
lib-http: Fixed request hang on connect() timeout.

11 years agolib-storage: Don't do filesystem permission lookups if storage has no mailbox root...
Timo Sirainen [Fri, 22 Nov 2013 21:52:37 +0000 (23:52 +0200)] 
lib-storage: Don't do filesystem permission lookups if storage has no mailbox root dir.

11 years agodns: Don't idle-disconnect clients
Timo Sirainen [Fri, 22 Nov 2013 21:31:36 +0000 (23:31 +0200)] 
dns: Don't idle-disconnect clients
It's the job for the clients.

11 years agolib-dns: Fixed handling write() failure to dns-lookup server process.
Timo Sirainen [Fri, 22 Nov 2013 21:15:07 +0000 (23:15 +0200)] 
lib-dns: Fixed handling write() failure to dns-lookup server process.

11 years agohttp: Implemented delayed requests scheduling.
Stephan Bosch [Fri, 22 Nov 2013 20:12:08 +0000 (22:12 +0200)] 
http: Implemented delayed requests scheduling.
Requests can now be (re)submitted with a delay. The request is not sent
until the delay time expires. This facilitates handling the Retry-After
header in responses. This can either be performed automatically if the
indicated delay is not too long or explicitly by the code using lib-http.

11 years agohttp: Preparse Retry-After header if response status is 503 or 3xx.
Stephan Bosch [Fri, 22 Nov 2013 20:08:44 +0000 (22:08 +0200)] 
http: Preparse Retry-After header if response status is 503 or 3xx.

11 years agohttp-client: Improved handing of delayed request errors.
Stephan Bosch [Fri, 22 Nov 2013 20:08:20 +0000 (22:08 +0200)] 
http-client: Improved handing of delayed request errors.
Originally each request would have its own zero timeout, but now only one
timeout is put in the host object.

11 years agohttp-client: Changed struct http_client_host_port into a struct http_client_queue...
Stephan Bosch [Fri, 22 Nov 2013 20:07:41 +0000 (22:07 +0200)] 
http-client: Changed struct http_client_host_port into a struct http_client_queue object.
Peer and request objects now reference the queue object directly rather
than the host object. This way, there is no need to find the matching
host:port in the host anymore. This makes the queueing structure more
intuitive and more efficient. This is a first step towards support for
connecting to HTTP services through unix sockets or directing requests at
specific hosts (so not from the URL). This patch also fixes a potential
timeout leak (to_connect) in http_client_host_port (now http_client_queue)
and makes sure it is moved during switch_ioloop(). Finally it updates the
structure comment at the top of http-client.c.

11 years agoiostream-rawlog: Timestamp prefix is now optional.
Timo Sirainen [Fri, 22 Nov 2013 20:05:52 +0000 (22:05 +0200)] 
iostream-rawlog: Timestamp prefix is now optional.