]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
10 years agopop3: Added %{deleted_bytes} variable to pop3_logout_format
Timo Sirainen [Wed, 19 Aug 2015 11:33:09 +0000 (14:33 +0300)] 
pop3: Added %{deleted_bytes} variable to pop3_logout_format

10 years agopop3: If transcation commit failed at QUIT, don't log any messages as expunged.
Timo Sirainen [Wed, 19 Aug 2015 11:30:09 +0000 (14:30 +0300)] 
pop3: If transcation commit failed at QUIT, don't log any messages as expunged.

10 years agolib: kqueue notification should trigger also on file renames.
Timo Sirainen [Wed, 19 Aug 2015 10:41:54 +0000 (13:41 +0300)] 
lib: kqueue notification should trigger also on file renames.
For example if dovecot.index.log is renamed to dovecot.index.log.2, we
should notice that since there's now a new dovecot.index.log containing new
changes.

10 years agolib-storage: Code cleanup - Don't keep a separate notify_ios list.
Timo Sirainen [Wed, 19 Aug 2015 10:40:35 +0000 (13:40 +0300)] 
lib-storage: Code cleanup - Don't keep a separate notify_ios list.

10 years agolib-storage: Moved most of the \Recent flag handling code to mailbox-recent-flags.c
Timo Sirainen [Wed, 19 Aug 2015 09:56:55 +0000 (12:56 +0300)] 
lib-storage: Moved most of the \Recent flag handling code to mailbox-recent-flags.c
There are also some API changes, because functions were renamed and the
recent_* fields were moved to struct mailbox. I'm not aware of any plugins
using these though, except for index_mailbox_set_recent_seq() which for now
is kept as a backwards compatibility macro.

No changes were made to the actual code logic.

10 years ago*-login: Removed dead assignment to make static analyzer happy.
Timo Sirainen [Wed, 19 Aug 2015 08:34:36 +0000 (11:34 +0300)] 
*-login: Removed dead assignment to make static analyzer happy.

10 years agofts-solr: Flush Solr indexing HTTP requests every 1000 mails.
Timo Sirainen [Tue, 18 Aug 2015 20:20:35 +0000 (23:20 +0300)] 
fts-solr: Flush Solr indexing HTTP requests every 1000 mails.
This avoids the HTTP request from becoming too huge.

10 years agofts-solr: If HTTP request fails, log the status number as well.
Timo Sirainen [Tue, 18 Aug 2015 20:20:07 +0000 (23:20 +0300)] 
fts-solr: If HTTP request fails, log the status number as well.

10 years agofts-solr: Fix to previous memory leak fix - second request was failing.
Timo Sirainen [Tue, 18 Aug 2015 20:17:47 +0000 (23:17 +0300)] 
fts-solr: Fix to previous memory leak fix - second request was failing.
Duplicated data was sent to Solr because string wasn't truncated.

10 years agofts-solr: Fixed memory leak when indexing multiple mailboxes in one update context.
Timo Sirainen [Tue, 18 Aug 2015 20:07:19 +0000 (23:07 +0300)] 
fts-solr: Fixed memory leak when indexing multiple mailboxes in one update context.

10 years agolib-http: client: Fixed handling of request timeout.
Stephan Bosch [Tue, 18 Aug 2015 20:02:01 +0000 (23:02 +0300)] 
lib-http: client: Fixed handling of request timeout.
It was inappropriately active when the client needed to take action.
This showed particularly with large payloads sent using
http_client_request_send_payload().

10 years agolib-http: Previous test-http-client safe_memset() change broke in some systems.
Timo Sirainen [Tue, 18 Aug 2015 18:10:41 +0000 (21:10 +0300)] 
lib-http: Previous test-http-client safe_memset() change broke in some systems.
Since there's no easy way to fix this in Makefile.am, just do it by actually
using safe_memset()..

10 years agolib-http: test-http-client may have failed to load SSL library plugin.
Timo Sirainen [Tue, 18 Aug 2015 17:59:25 +0000 (20:59 +0300)] 
lib-http: test-http-client may have failed to load SSL library plugin.
safe_memset() wasn't necessarily compiled into test-http-client. This is a
bit kludgy way of just adding it. Another possibility could have been to use
-Wl,--whole-archive with GNU ld, but it's a bit tricky here.

10 years agolib-http: test-http-client double-freed memory
Timo Sirainen [Tue, 18 Aug 2015 17:54:47 +0000 (20:54 +0300)] 
lib-http: test-http-client double-freed memory

10 years agolib-http: url: Implemented http_url_clone_authority() to clone authority part of...
Stephan Bosch [Tue, 18 Aug 2015 17:39:24 +0000 (20:39 +0300)] 
lib-http: url: Implemented http_url_clone_authority() to clone authority part of existing HTTP URL.

10 years agolib-http: url: Implemented functions to copy/clone URLs including the userinfo part...
Stephan Bosch [Tue, 18 Aug 2015 17:39:24 +0000 (20:39 +0300)] 
lib-http: url: Implemented functions to copy/clone URLs including the userinfo part (normally skipped).

10 years agolib-http auth: Implemented cloning/copying of credentials struct.
Stephan Bosch [Tue, 18 Aug 2015 17:39:24 +0000 (20:39 +0300)] 
lib-http auth: Implemented cloning/copying of credentials struct.

10 years agolib-http client: Implemented proxy authentication using Basic scheme.
Stephan Bosch [Tue, 18 Aug 2015 17:39:24 +0000 (20:39 +0300)] 
lib-http client: Implemented proxy authentication using Basic scheme.

10 years agolib-http client: Added inline function to check whether request is directed at a...
Stephan Bosch [Tue, 18 Aug 2015 17:39:24 +0000 (20:39 +0300)] 
lib-http client: Added inline function to check whether request is directed at a proxy.

10 years agolib-http client: Implemented simple authentication using Basic scheme.
Stephan Bosch [Tue, 18 Aug 2015 17:39:24 +0000 (20:39 +0300)] 
lib-http client: Implemented simple authentication using Basic scheme.

10 years agolib-http client: Removed useless assignment of request->authority in http_client_requ...
Stephan Bosch [Tue, 18 Aug 2015 17:39:24 +0000 (20:39 +0300)] 
lib-http client: Removed useless assignment of request->authority in http_client_request_redirect().
It is assigned again in http_client_request_do_submit().

10 years agolib-http client: Minor whitespace cleanups in struct http_client_request.
Stephan Bosch [Tue, 18 Aug 2015 17:39:24 +0000 (20:39 +0300)] 
lib-http client: Minor whitespace cleanups in struct http_client_request.

10 years agolib-http: url: Make sure destination url struct is cleared in http_url_copy().
Stephan Bosch [Tue, 18 Aug 2015 17:39:24 +0000 (20:39 +0300)] 
lib-http: url: Make sure destination url struct is cleared in http_url_copy().

10 years agolib-http auth: Implemented client-side handling of basic authentication scheme.
Stephan Bosch [Tue, 18 Aug 2015 17:39:24 +0000 (20:39 +0300)] 
lib-http auth: Implemented client-side handling of basic authentication scheme.

10 years agolib-http auth: Fixed assertion on the validity of the token68 encountered during...
Stephan Bosch [Tue, 18 Aug 2015 17:39:24 +0000 (20:39 +0300)] 
lib-http auth: Fixed assertion on the validity of the token68 encountered during conversion to string.

10 years agolib-http auth: Made second argument of http_auth_create_challenges() const as it...
Stephan Bosch [Tue, 18 Aug 2015 17:39:24 +0000 (20:39 +0300)] 
lib-http auth: Made second argument of http_auth_create_challenges() const as it should be.

10 years agolib-http auth: Fixed segfault occurring in http_auth_challenge_copy() when there...
Stephan Bosch [Tue, 18 Aug 2015 17:39:24 +0000 (20:39 +0300)] 
lib-http auth: Fixed segfault occurring in http_auth_challenge_copy() when there are no parameters.

10 years agolib-master: Added support for HAProxy protocol.
Timo Sirainen [Tue, 18 Aug 2015 17:39:06 +0000 (20:39 +0300)] 
lib-master: Added support for HAProxy protocol.
Patch by Stephan Bosch - with some small changes.

10 years agomaster: Changed passing of listener settings from master to process to be more flexible.
Timo Sirainen [Tue, 18 Aug 2015 17:23:45 +0000 (20:23 +0300)] 
master: Changed passing of listener settings from master to process to be more flexible.
This is needed to allow adding new listener settings, such as `haproxy'.
Patch by Stephan Bosch - with some small changes.

10 years agolmtp, *-login: Use ip/port values from struct master_service_connection instead of...
Stephan Bosch [Mon, 15 Jun 2015 16:50:53 +0000 (18:50 +0200)] 
lmtp, *-login: Use ip/port values from struct master_service_connection instead of from the socket.
This way, a proxy protocol like HAProxy can transparently override these
addresses with what is seen by the proxy.

10 years agolib-master: Added local and real IP addresses and ports to struct master_service_conn...
Stephan Bosch [Mon, 15 Jun 2015 16:50:53 +0000 (18:50 +0200)] 
lib-master: Added local and real IP addresses and ports to struct master_service_connection.

10 years agolib-master: Moved connection accepting code to its own functions.
Timo Sirainen [Tue, 18 Aug 2015 17:03:28 +0000 (20:03 +0300)] 
lib-master: Moved connection accepting code to its own functions.
No functional changes.

10 years agolazy-expunge: If MAIL_FETCH_REFCOUNT fails because mail is expunged, ignore the error.
Timo Sirainen [Mon, 17 Aug 2015 16:31:42 +0000 (19:31 +0300)] 
lazy-expunge: If MAIL_FETCH_REFCOUNT fails because mail is expunged, ignore the error.

10 years agolazy-expunge: If MAIL_FETCH_REFCOUNT fails, log the storage error.
Timo Sirainen [Mon, 17 Aug 2015 16:28:55 +0000 (19:28 +0300)] 
lazy-expunge: If MAIL_FETCH_REFCOUNT fails, log the storage error.

10 years agolib-fts: Minor cleanup - initialize err with U_ZERO_ERROR instead of 0.
Timo Sirainen [Mon, 17 Aug 2015 11:25:59 +0000 (14:25 +0300)] 
lib-fts: Minor cleanup - initialize err with U_ZERO_ERROR instead of 0.
They're the same though.

10 years agolib-fts: Add Unicode TR29 rule WB5a setting to tokenizer.
Teemu Huovila [Mon, 17 Aug 2015 10:18:03 +0000 (13:18 +0300)] 
lib-fts: Add Unicode TR29 rule WB5a setting to tokenizer.
Splits prefixing contracted words from base word.
E.g. "l'homme" -> "l" "homme". Together with a language specific stopword list
unnecessary contractions can thus be filtered away.

This is disabled by default and only works with the TR29 algorithm.
Enable by "fts_tokenizer_generic = algorithm=tr29 wb5a=yes"

10 years agolib-fts: Add note about possible additional apostrophe.
Teemu Huovila [Mon, 17 Aug 2015 10:15:11 +0000 (13:15 +0300)] 
lib-fts: Add note about possible additional apostrophe.

10 years agolib-fts: Update comment on tr29 rules.
Teemu Huovila [Mon, 17 Aug 2015 10:14:44 +0000 (13:14 +0300)] 
lib-fts: Update comment on tr29 rules.

10 years agoindexer: Removed counting worker processes as service clients to prevent idle-kill.
Timo Sirainen [Mon, 17 Aug 2015 09:56:25 +0000 (12:56 +0300)] 
indexer: Removed counting worker processes as service clients to prevent idle-kill.
lib-master handles this internally now. Also if the max client count was
reached, we assert-crashed:

indexer: Panic: file master-service.c: line 672
(master_service_client_connection_created): assertion failed:
(service->master_status.available_count > 0)

10 years agolib-master: If idle-die callback returns FALSE, notify master that we don't want...
Timo Sirainen [Mon, 17 Aug 2015 09:53:52 +0000 (12:53 +0300)] 
lib-master: If idle-die callback returns FALSE, notify master that we don't want to die.
This avoids the master thinking that we're ignoring its idle-kill signal and
logging an error.

10 years agolib-master: Code cleanup - split master_status_update() to two functions.
Timo Sirainen [Mon, 17 Aug 2015 09:51:43 +0000 (12:51 +0300)] 
lib-master: Code cleanup - split master_status_update() to two functions.
No functional changes.

10 years agolib-fs: Moved enum fs_op from fs-randomfail.c to fs-api-private.h
Timo Sirainen [Sun, 16 Aug 2015 11:22:14 +0000 (13:22 +0200)] 
lib-fs: Moved enum fs_op from fs-randomfail.c to fs-api-private.h
These are useful for other purposes as well.

10 years agolib-fs: Fix to earlier write_stream_finish() commit
Timo Sirainen [Sun, 16 Aug 2015 11:17:06 +0000 (13:17 +0200)] 
lib-fs: Fix to earlier write_stream_finish() commit
2f1378beeef6 accidentally reversed == and != check.

10 years agolib-fs: fs_copy*() didn't update metadata_changed correctly.
Timo Sirainen [Sun, 16 Aug 2015 11:14:11 +0000 (13:14 +0200)] 
lib-fs: fs_copy*() didn't update metadata_changed correctly.
It was supposed to be (only) set when the copying actually finished.

10 years agolib-fs: Small code cleanup for handling write_stream_finish()
Timo Sirainen [Sun, 16 Aug 2015 11:10:48 +0000 (13:10 +0200)] 
lib-fs: Small code cleanup for handling write_stream_finish()

10 years agolib-fs: fs_write() didn't update stats.write_count correctly.
Timo Sirainen [Sun, 16 Aug 2015 11:07:21 +0000 (13:07 +0200)] 
lib-fs: fs_write() didn't update stats.write_count correctly.
If backend implemented asynchronous write(), the write_count was updated multiple
times. If backend didn't implement write(), then it was counted twice.

10 years agodsync: Fixed syncing a recursive delete of mailbox with children.
Timo Sirainen [Sat, 15 Aug 2015 10:14:35 +0000 (12:14 +0200)] 
dsync: Fixed syncing a recursive delete of mailbox with children.
For example if 1/2/3 exists in both sides and then 1/2/3, 1/2 and 1 are
deleted from one side, the next dsync would delete 1/2/3, but leave 1/2 and
1 undeleted.

10 years agodsync: If mailbox is already deleted locally, don't attempt to delete it again.
Timo Sirainen [Sat, 15 Aug 2015 10:05:34 +0000 (12:05 +0200)] 
dsync: If mailbox is already deleted locally, don't attempt to delete it again.
This only caused an unnecessary desync warning / exit code.

10 years agopop3: Added pop3_delete_type setting with values "default", "expunge" or "flag".
Timo Sirainen [Wed, 12 Aug 2015 09:52:06 +0000 (12:52 +0300)] 
pop3: Added pop3_delete_type setting with values "default", "expunge" or "flag".
This is related to pop3_deleted_flag setting. The main behefit here is that
you can now hide messages from POP3 by setting pop3_deleted_flag, but
without changing the actual deletion behavior by setting
pop3_delete_type=expunge.

10 years agolib-fts: Install headers on make install.
Timo Sirainen [Tue, 11 Aug 2015 11:27:01 +0000 (14:27 +0300)] 
lib-fts: Install headers on make install.

10 years agorawlog: Removed unnecessary/duplicate 'o' from getopt_args
Timo Sirainen [Mon, 10 Aug 2015 12:39:50 +0000 (15:39 +0300)] 
rawlog: Removed unnecessary/duplicate 'o' from getopt_args
This caused assert-crash at startup after ff17864ba6e0.

10 years agolda: Removed unnecessary/duplicate 'k' from getopt_args
Timo Sirainen [Mon, 10 Aug 2015 12:35:43 +0000 (15:35 +0300)] 
lda: Removed unnecessary/duplicate 'k' from getopt_args
This caused assert-crash at startup after ff17864ba6e0.

10 years agoman: doveadm-import -s description updated
Timo Sirainen [Sun, 9 Aug 2015 18:54:33 +0000 (21:54 +0300)] 
man: doveadm-import -s description updated
The previously mentioned subscriptions-file is specific to Maildir format.

10 years agodoveadm: Make sure we can't accidentally add duplicate getopt args.
Timo Sirainen [Fri, 7 Aug 2015 12:32:28 +0000 (15:32 +0300)] 
doveadm: Make sure we can't accidentally add duplicate getopt args.

10 years agolib-master: Make sure we can't accidentally add duplicate getopt args.
Timo Sirainen [Fri, 7 Aug 2015 12:32:14 +0000 (15:32 +0300)] 
lib-master: Make sure we can't accidentally add duplicate getopt args.

10 years agostats: Added session=<ID> filter to doveadm dump session|command
Timo Sirainen [Fri, 7 Aug 2015 12:30:26 +0000 (15:30 +0300)] 
stats: Added session=<ID> filter to doveadm dump session|command

10 years agodsync: Renamed -F parameter to -O to avoid a conflict
Timo Sirainen [Fri, 7 Aug 2015 12:13:34 +0000 (15:13 +0300)] 
dsync: Renamed -F parameter to -O to avoid a conflict
doveadm mail commands already had a generic -F parameter.

10 years agofts-solr: "highest UID for mailbox" lookup was actually returning "highest UID for...
Timo Sirainen [Fri, 7 Aug 2015 10:32:02 +0000 (13:32 +0300)] 
fts-solr: "highest UID for mailbox" lookup was actually returning "highest UID for user"
If the default operator was OR instead of AND. This affected indexing mails
in newly created mailboxes.

10 years agolib: istream-timeout could have triggered timeout too early after long-running code.
Timo Sirainen [Fri, 7 Aug 2015 09:58:30 +0000 (12:58 +0300)] 
lib: istream-timeout could have triggered timeout too early after long-running code.

10 years agofts: If Tika returns 500, retry it a couple of times and then fallback to ignoring...
Timo Sirainen [Fri, 7 Aug 2015 08:31:29 +0000 (11:31 +0300)] 
fts: If Tika returns 500, retry it a couple of times and then fallback to ignoring the problem.

10 years agolib-storage: Make sure tryagain_r is never randomly set in mailbox_search_next_nonblock()
Timo Sirainen [Thu, 6 Aug 2015 19:36:20 +0000 (22:36 +0300)] 
lib-storage: Make sure tryagain_r is never randomly set in mailbox_search_next_nonblock()
This infinite looping in some fts plugin failure situations.

10 years agostats: If process was used for multiple sessions, some of the fields weren't set...
Timo Sirainen [Thu, 6 Aug 2015 09:17:45 +0000 (12:17 +0300)] 
stats: If process was used for multiple sessions, some of the fields weren't set correctly.
For example the second user's disk_output was increased at startup by the
same amount as what the previous user's last disk_output value was.

10 years agolib-storage: escape_char and broken_char settings weren't copied on mailbox_list_create()
Timo Sirainen [Tue, 4 Aug 2015 08:31:17 +0000 (11:31 +0300)] 
lib-storage: escape_char and broken_char settings weren't copied on mailbox_list_create()

10 years agolib-storage: Another fix for doing multiple changes via mailbox_attribute_set/unset
Timo Sirainen [Mon, 20 Jul 2015 07:33:39 +0000 (10:33 +0300)] 
lib-storage: Another fix for doing multiple changes via mailbox_attribute_set/unset

10 years agolib-mail: Fixed message_part_to_idx()
Timo Sirainen [Sun, 19 Jul 2015 13:45:23 +0000 (16:45 +0300)] 
lib-mail: Fixed message_part_to_idx()

10 years agopop3-migration: Compiling fix in some systems
Timo Sirainen [Sun, 19 Jul 2015 13:21:04 +0000 (16:21 +0300)] 
pop3-migration: Compiling fix in some systems

10 years agolib-storage: Fixed doing multiple changes via mailbox_attribute_set/unset()
Timo Sirainen [Sun, 19 Jul 2015 07:57:26 +0000 (10:57 +0300)] 
lib-storage: Fixed doing multiple changes via mailbox_attribute_set/unset()
Only the last change was committed and the earlier changes were just leaking
memory.

10 years agopop3-migration: Fetch physical sizes instead of virtual sizes so pop3c uses LIST
Timo Sirainen [Thu, 16 Jul 2015 16:37:22 +0000 (19:37 +0300)] 
pop3-migration: Fetch physical sizes instead of virtual sizes so pop3c uses LIST
4bebfbb32410 caused the fetching to break entirely.

10 years agopop3-migration: Use LIST instead of RETRs to get the messages' sizes.
Timo Sirainen [Thu, 16 Jul 2015 15:10:12 +0000 (18:10 +0300)] 
pop3-migration: Use LIST instead of RETRs to get the messages' sizes.

10 years agolib-mail: Updated test-message-header-parser unit test
Timo Sirainen [Thu, 16 Jul 2015 15:09:17 +0000 (18:09 +0300)] 
lib-mail: Updated test-message-header-parser unit test

10 years agopop3-migration: Truncate header if there's line containing only CR(s).
Timo Sirainen [Thu, 16 Jul 2015 15:08:40 +0000 (18:08 +0300)] 
pop3-migration: Truncate header if there's line containing only CR(s).
This fixes matching IMAP <-> POP3 messages when the servers behave
differently.

10 years agopop3-migration: Show the first message's number and UIDL which wasn't found from...
Timo Sirainen [Tue, 14 Jul 2015 13:08:24 +0000 (15:08 +0200)] 
pop3-migration: Show the first message's number and UIDL which wasn't found from IMAP.

10 years agolib-storage: If mailboxes' vsizes are used, keep them updated also in mailbox list...
Timo Sirainen [Sat, 11 Jul 2015 09:16:56 +0000 (12:16 +0300)] 
lib-storage: If mailboxes' vsizes are used, keep them updated also in mailbox list index.
This allows looking them up quickly without opening the actual mailbox
indexes.

10 years agoquota: Use MAILBOX_METADATA_PHYSICAL_SIZE for recalculating mailbox's size.
Timo Sirainen [Sat, 11 Jul 2015 09:14:48 +0000 (12:14 +0300)] 
quota: Use MAILBOX_METADATA_PHYSICAL_SIZE for recalculating mailbox's size.

10 years agolib-storage: Added MAILBOX_METADATA_PHYSICAL_SIZE
Timo Sirainen [Sat, 11 Jul 2015 09:11:48 +0000 (12:11 +0300)] 
lib-storage: Added MAILBOX_METADATA_PHYSICAL_SIZE
If backend always uses the same virtual and physical sizes, this is
implemented via the MAILBOX_METADATA_VIRTUAL_SIZE code. Otherwise it
searches all the messages and sums up their physical sizes.

10 years agolib-storage: Moved vsize_hdr_ext_id to struct mailbox for more global access.
Timo Sirainen [Sat, 11 Jul 2015 09:06:44 +0000 (12:06 +0300)] 
lib-storage: Moved vsize_hdr_ext_id to struct mailbox for more global access.

10 years agolib-storage: Renamed struct index_vsize_header to struct mailbox_index_vsize
Timo Sirainen [Sat, 11 Jul 2015 09:03:56 +0000 (12:03 +0300)] 
lib-storage: Renamed struct index_vsize_header to struct mailbox_index_vsize
Also moved the struct to mail-storage-private.h for more global access.

10 years agolib-storage: Moved mailbox vsize calculation code to its own file.
Timo Sirainen [Sat, 11 Jul 2015 09:00:38 +0000 (12:00 +0300)] 
lib-storage: Moved mailbox vsize calculation code to its own file.
No functional differences.

10 years agoquota: Even if quota counting fails, commit the mailbox transaction.
Timo Sirainen [Fri, 3 Jul 2015 10:55:17 +0000 (13:55 +0300)] 
quota: Even if quota counting fails, commit the mailbox transaction.
The only changes in the transaction are changes to dovecot.index.cache file
and we don't want to rollback those.

10 years agoquota: Fixed error handling in quota counting code.
Timo Sirainen [Fri, 3 Jul 2015 10:54:18 +0000 (13:54 +0300)] 
quota: Fixed error handling in quota counting code.
Errors weren't logged and some error checking was missing.

10 years agomdbox: Make sure rebuilding doesn't try to add a copy of the message too many times.
Timo Sirainen [Thu, 2 Jul 2015 09:06:04 +0000 (11:06 +0200)] 
mdbox: Make sure rebuilding doesn't try to add a copy of the message too many times.
Currently it just silently overflowed the 16bit refcount, which caused
problems later.

10 years agoistream-zlib: Don't overwrite parent istream's error on gz header/trailer read errors.
Timo Sirainen [Tue, 30 Jun 2015 11:26:00 +0000 (14:26 +0300)] 
istream-zlib: Don't overwrite parent istream's error on gz header/trailer read errors.

10 years agodoveadm: Added doveadm_username to specify the username for authentication.
Timo Sirainen [Tue, 30 Jun 2015 10:58:15 +0000 (13:58 +0300)] 
doveadm: Added doveadm_username to specify the username for authentication.
The default is still "doveadm" and the server side doesn't currently support
anything except "doveadm".

10 years agoistream filters: If parent's i_stream_stat() fails, copy the stream_errno.
Timo Sirainen [Tue, 30 Jun 2015 09:18:08 +0000 (12:18 +0300)] 
istream filters: If parent's i_stream_stat() fails, copy the stream_errno.
This doesn't actually change any functionality yet, since most
i_stream_stat() callers aren't using i_stream_get_error().

10 years agolib: istream_file.stat() fails, set stream_errno and error string.
Timo Sirainen [Tue, 30 Jun 2015 09:17:35 +0000 (12:17 +0300)] 
lib: istream_file.stat() fails, set stream_errno and error string.
For now we'll also keep logging the error since everybody isn't using
i_stream_get_error().

10 years agomaster: When sending SIGTERM/SIGKILL to processes, log which services they were sent to.
Timo Sirainen [Tue, 30 Jun 2015 08:26:47 +0000 (11:26 +0300)] 
master: When sending SIGTERM/SIGKILL to processes, log which services they were sent to.

10 years agoimap/pop3-login: If auth failure reason already begins with [resp-code], don't prefix...
Timo Sirainen [Mon, 29 Jun 2015 17:25:15 +0000 (20:25 +0300)] 
imap/pop3-login: If auth failure reason already begins with [resp-code], don't prefix it with another one.

10 years agolib: Fixed unit test with big-endian CPUs.
Timo Sirainen [Mon, 29 Jun 2015 10:36:38 +0000 (13:36 +0300)] 
lib: Fixed unit test with big-endian CPUs.
Patch by Michal Hlavinka / Redhat

10 years agolib: Fixed read buffer overflow in wildcard_match*()
Timo Sirainen [Mon, 29 Jun 2015 10:06:03 +0000 (13:06 +0300)] 
lib: Fixed read buffer overflow in wildcard_match*()
Patch by Hanno Böck.

Note that input to wildard_match*() is always coming only from trusted
sources, like config file or doveadm commands.

10 years agoindexer: Properly fix crashing at deinit when there are pending requests.
Timo Sirainen [Mon, 29 Jun 2015 09:05:25 +0000 (12:05 +0300)] 
indexer: Properly fix crashing at deinit when there are pending requests.

10 years agoindexer: Reverted 5945ba000a45 - it didn't really help
Timo Sirainen [Mon, 29 Jun 2015 09:00:05 +0000 (12:00 +0300)] 
indexer: Reverted 5945ba000a45 - it didn't really help

10 years agoindexer: Fixed crash at deinit if there were still queued requests.
Timo Sirainen [Mon, 29 Jun 2015 08:44:00 +0000 (11:44 +0300)] 
indexer: Fixed crash at deinit if there were still queued requests.

10 years agoimapc: Fixed check to see if prefix!="" in previous commit.
Timo Sirainen [Wed, 24 Jun 2015 05:54:35 +0000 (07:54 +0200)] 
imapc: Fixed check to see if prefix!="" in previous commit.

10 years agolib-storage: Set MAILBOX_SELECT/NONEXISTENT for namespace prefix even if no flags...
Timo Sirainen [Tue, 23 Jun 2015 09:31:21 +0000 (11:31 +0200)] 
lib-storage: Set MAILBOX_SELECT/NONEXISTENT for namespace prefix even if no flags are wanted.
This fixes doveadm commands attempting to access such nonexistent mailbox
prefixes.

10 years agoimapc: Don't return mailbox list entries that would result in name="".
Timo Sirainen [Tue, 23 Jun 2015 09:30:27 +0000 (11:30 +0200)] 
imapc: Don't return mailbox list entries that would result in name="".
So basically don't return namespace prefix if imapc_list_prefix="".

10 years agoimapc: If login is aborted at deinit, don't log an error.
Timo Sirainen [Tue, 23 Jun 2015 09:12:38 +0000 (11:12 +0200)] 
imapc: If login is aborted at deinit, don't log an error.

10 years agoimapc: Don't automatically login to IMAP server for list=no namespaces.
Timo Sirainen [Tue, 23 Jun 2015 09:02:20 +0000 (11:02 +0200)] 
imapc: Don't automatically login to IMAP server for list=no namespaces.

10 years agolib-http: http_client_request_send() failure returned already-freed error string.
Timo Sirainen [Thu, 18 Jun 2015 08:10:05 +0000 (11:10 +0300)] 
lib-http: http_client_request_send() failure returned already-freed error string.

10 years agofs-posix: Hide temporary files from fs_iter_*()
Timo Sirainen [Wed, 17 Jun 2015 13:37:37 +0000 (16:37 +0300)] 
fs-posix: Hide temporary files from fs_iter_*()
Those could exist just because another process is just using them to create
new files to the directory. Although they could also be older files caused
by earlier crashes. It would probably be a good idea to have fs_iter_*()
delete the old temporary files automatically.

10 years agovirtual: virtual_uids weren't always set to all mails, causing missing mails and...
Timo Sirainen [Wed, 17 Jun 2015 11:25:48 +0000 (14:25 +0300)] 
virtual: virtual_uids weren't always set to all mails, causing missing mails and crashes in search.