]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
9 years agoauth: If allow_nets has an invalid value, don't attempt to compare it anymore.
Timo Sirainen [Mon, 4 Jan 2016 19:15:50 +0000 (14:15 -0500)] 
auth: If allow_nets has an invalid value, don't attempt to compare it anymore.

This fixes a potential crash because net_is_in_network() was called with
garbage net_ip.

9 years agolib: Added unit tests for net_is_in_network() about IPv4-mapped IPv6 addresses
Timo Sirainen [Mon, 4 Jan 2016 19:10:44 +0000 (14:10 -0500)] 
lib: Added unit tests for net_is_in_network() about IPv4-mapped IPv6 addresses

9 years agolib: Fixed assert-crash with net_is_in_network(family=ipv6, family=0, ..)
Timo Sirainen [Mon, 4 Jan 2016 19:00:19 +0000 (14:00 -0500)] 
lib: Fixed assert-crash with net_is_in_network(family=ipv6, family=0, ..)

9 years agodict: Avoid a crash when dict connection is already closed when async lookup finishes.
Timo Sirainen [Mon, 4 Jan 2016 18:51:34 +0000 (20:51 +0200)] 
dict: Avoid a crash when dict connection is already closed when async lookup finishes.

9 years agoimap: Make sure pending input is handled when a pending command has input locked.
Timo Sirainen [Mon, 4 Jan 2016 18:12:18 +0000 (13:12 -0500)] 
imap: Make sure pending input is handled when a pending command has input locked.

This hopefully fixes the last assert-crash in client_check_command_hangs()

9 years agoimap: Fixed crash in IDLE if DONE is received while sending large output to client.
Timo Sirainen [Mon, 4 Jan 2016 17:40:39 +0000 (12:40 -0500)] 
imap: Fixed crash in IDLE if DONE is received while sending large output to client.

Fixes assert-crash with backtrace:

9 years agolib-storage: mail_add_temp_wanted_fields() was reading already-freed memory.
Timo Sirainen [Mon, 4 Jan 2016 17:02:12 +0000 (12:02 -0500)] 
lib-storage: mail_add_temp_wanted_fields() was reading already-freed memory.

This mainly happened with mail_log plugin enabled.

9 years agoimap: Don't assert-crash if hibernation resumes IDLE, which sends a lot of data to...
Timo Sirainen [Mon, 4 Jan 2016 16:47:24 +0000 (11:47 -0500)] 
imap: Don't assert-crash if hibernation resumes IDLE, which sends a lot of data to client.

9 years agomysql: Don't require connect setting to have host-parameter if option_file is set.
Timo Sirainen [Thu, 31 Dec 2015 02:26:01 +0000 (04:26 +0200)] 
mysql: Don't require connect setting to have host-parameter if option_file is set.

The option_file could also specify the host.

9 years agolib-mail: message-parser wasn't returning hdr=NULL blocks after 078c2c8c
Timo Sirainen [Wed, 30 Dec 2015 13:21:46 +0000 (08:21 -0500)] 
lib-mail: message-parser wasn't returning hdr=NULL blocks after 078c2c8c

9 years agolib-mail: Small test-message-header-parser unit test update
Timo Sirainen [Wed, 30 Dec 2015 13:21:24 +0000 (08:21 -0500)] 
lib-mail: Small test-message-header-parser unit test update

9 years agodsync: Don't restrict what mailbox names can be created (except basic sanity checks)
Timo Sirainen [Mon, 28 Dec 2015 11:49:29 +0000 (06:49 -0500)] 
dsync: Don't restrict what mailbox names can be created (except basic sanity checks)

The mailbox names already exist on the other side, so we don't want to add
arbitrary limits to them.

9 years agolib-http: Add more timing information to debug logs when HTTP connections get closed.
Timo Sirainen [Wed, 23 Dec 2015 09:48:12 +0000 (11:48 +0200)] 
lib-http: Add more timing information to debug logs when HTTP connections get closed.

9 years agoimap: Make static analyzer happier.
Timo Sirainen [Thu, 17 Dec 2015 03:52:03 +0000 (05:52 +0200)] 
imap: Make static analyzer happier.

9 years agoimap: Fixed potential assert-crash with command pipelining.
Timo Sirainen [Wed, 16 Dec 2015 13:37:26 +0000 (15:37 +0200)] 
imap: Fixed potential assert-crash with command pipelining.

Should fix assert-crash:
Panic: file imap-fetch.c: line 554: assertion failed: (ctx->client->output_cmd_lock == NULL || ctx->client->output_cmd_lock == cmd)

9 years agodoveadm-server: Added -D parameter to enable debugging at startup.
Timo Sirainen [Wed, 16 Dec 2015 13:26:02 +0000 (15:26 +0200)] 
doveadm-server: Added -D parameter to enable debugging at startup.

This mainly makes it show why plugin loads fail.

9 years agodoveadm-server: Fixed loading doveadm plugins that use doveadm_dump_register()
Timo Sirainen [Wed, 16 Dec 2015 13:25:22 +0000 (15:25 +0200)] 
doveadm-server: Fixed loading doveadm plugins that use doveadm_dump_register()

9 years agolib-compress: lz4 istream wasn't detected reliably in some situations.
Timo Sirainen [Wed, 16 Dec 2015 13:06:52 +0000 (15:06 +0200)] 
lib-compress: lz4 istream wasn't detected reliably in some situations.

We requested too few bytes from istream, so there wasn't any guarantee that
the istream actually had all the bytes. This caused a problem for example
with mdbox when the previous mail was already fetched and the stream happened
to end in the middle of the lz4 header.

9 years agoconfigure: Changed version number to v2.2.devel.
Timo Sirainen [Wed, 16 Dec 2015 12:11:04 +0000 (14:11 +0200)] 
configure: Changed version number to v2.2.devel.

The actual version numbers live only on the release-branches from now on.

9 years agoimap: Fixed potential crash when logging about pending commands at logout.
Timo Sirainen [Wed, 16 Dec 2015 09:59:41 +0000 (11:59 +0200)] 
imap: Fixed potential crash when logging about pending commands at logout.

9 years agolib-dict: Improve EACCES error logging for dict-file.
Timo Sirainen [Wed, 16 Dec 2015 09:29:36 +0000 (11:29 +0200)] 
lib-dict: Improve EACCES error logging for dict-file.

9 years agolib-mail: message-parser didn't detect MIME part boundaries in the middle of MIME...
Timo Sirainen [Tue, 15 Dec 2015 15:32:09 +0000 (17:32 +0200)] 
lib-mail: message-parser didn't detect MIME part boundaries in the middle of MIME part headers.

Instead the --boundary line was thought to be part of the header itself.

9 years agolib-mail: message_header_parser_next() updates istream position immediately now.
Timo Sirainen [Tue, 15 Dec 2015 15:29:11 +0000 (17:29 +0200)] 
lib-mail: message_header_parser_next() updates istream position immediately now.

Earlier it updated the position only on the next call or at deinit. This was
because some earlier code kept pointers to the stream data and stored them
to the returned struct message_header_line, but we don't do this anymore.

This allows more easily accessing the same istream for other purposes during
the header parsing.

9 years agolib: Avoid passing NULL to qsort() or bsearch() on empty array.
Timo Sirainen [Mon, 14 Dec 2015 15:42:34 +0000 (17:42 +0200)] 
lib: Avoid passing NULL to qsort() or bsearch() on empty array.

This wouldn't normally matter because count=0 so it wouldn't be dereferenced
anyway. But it triggered a run-time warning from clang, so lets fix it.

9 years agoimapc: Removed commented out code.
Timo Sirainen [Mon, 14 Dec 2015 10:36:23 +0000 (12:36 +0200)] 
imapc: Removed commented out code.

It was probably accidentally committed debug code.

9 years agodoveadm expunge: Using "all" parameter didn't work.
Timo Sirainen [Sun, 13 Dec 2015 19:25:32 +0000 (21:25 +0200)] 
doveadm expunge: Using "all" parameter didn't work.

9 years agostats: Avoid assert-crash with dsync.
Timo Sirainen [Sun, 13 Dec 2015 10:33:20 +0000 (12:33 +0200)] 
stats: Avoid assert-crash with dsync.

dsync creates two mail_users and they're deinited at the same time.
stats_global_user isn't set after the first one is deinited, so the next
deinit crashed because it wasn't set.

Fixes:
Panic: file stats-plugin.c: line 324 (stats_user_deinit): assertion failed:
(stats_global_user == user)

9 years agoconfigure: Minor cleanup - avoid code duplication.
Timo Sirainen [Fri, 11 Dec 2015 15:40:36 +0000 (17:40 +0200)] 
configure: Minor cleanup - avoid code duplication.

9 years agodovecot-config: Fixed setting LIBDOVECOT_LIBFTS[_DEPS]
Timo Sirainen [Fri, 11 Dec 2015 15:39:05 +0000 (17:39 +0200)] 
dovecot-config: Fixed setting LIBDOVECOT_LIBFTS[_DEPS]

9 years agodirector: Don't mark the host desynced if director is alone in ring.
Timo Sirainen [Fri, 11 Dec 2015 14:33:43 +0000 (16:33 +0200)] 
director: Don't mark the host desynced if director is alone in ring.

9 years agodirector: Don't trigger a ring resync if only last_updown_change has changed.
Timo Sirainen [Thu, 10 Dec 2015 12:40:01 +0000 (14:40 +0200)] 
director: Don't trigger a ring resync if only last_updown_change has changed.

9 years agoMakefile: Make ChangeLog depend on .git/index instead of .git/ORIG_HEAD
Timo Sirainen [Thu, 10 Dec 2015 09:14:26 +0000 (11:14 +0200)] 
Makefile: Make ChangeLog depend on .git/index instead of .git/ORIG_HEAD
ORIG_HEAD doesn't necessarily exist, so maybe index is good for this.

9 years agoSwitched .hgignore to .gitignore
Timo Sirainen [Wed, 9 Dec 2015 17:40:18 +0000 (19:40 +0200)] 
Switched .hgignore to .gitignore

9 years agoRemoved .hgsigs and .hgtags
Timo Sirainen [Wed, 9 Dec 2015 17:40:10 +0000 (19:40 +0200)] 
Removed .hgsigs and .hgtags

9 years agoMakefile, update-version.sh: Switched from hg to git.
Timo Sirainen [Wed, 9 Dec 2015 16:38:00 +0000 (18:38 +0200)] 
Makefile, update-version.sh: Switched from hg to git.

9 years agoTODO updated
Timo Sirainen [Wed, 9 Dec 2015 15:37:13 +0000 (17:37 +0200)] 
TODO updated

9 years agoacl: Empty lines and comments in dovecot-acl files weren't handled correctly.
Timo Sirainen [Wed, 9 Dec 2015 15:36:49 +0000 (17:36 +0200)] 
acl: Empty lines and comments in dovecot-acl files weren't handled correctly.

9 years agovirtual: Fixed assert-crash when opening virtual mailbox triggered backend mailbox...
Timo Sirainen [Wed, 9 Dec 2015 13:31:37 +0000 (15:31 +0200)] 
virtual: Fixed assert-crash when opening virtual mailbox triggered backend mailbox autocreation.
Fixes assert:

Panic: file virtual-storage.c: line 335 (virtual_mailbox_opened_hook):
assertion failed: (!bbox->open_tracked)

9 years agolib-storage: Fixed mail_search_args_simplify() with empty args.
Timo Sirainen [Wed, 9 Dec 2015 11:51:35 +0000 (13:51 +0200)] 
lib-storage: Fixed mail_search_args_simplify() with empty args.
This fixes assert-crash in doveadm mailbox list.

9 years agodirector: If doveadm attempts to change tag for an existing host, return error.
Timo Sirainen [Wed, 9 Dec 2015 11:02:46 +0000 (13:02 +0200)] 
director: If doveadm attempts to change tag for an existing host, return error.

9 years agodoveadm director update: Tag can't be changed - don't allow -t parameter
Timo Sirainen [Wed, 9 Dec 2015 11:02:19 +0000 (13:02 +0200)] 
doveadm director update: Tag can't be changed - don't allow -t parameter

9 years agoimap: Added assert to make sure client_command_context isn't freed too early.
Timo Sirainen [Wed, 9 Dec 2015 10:43:18 +0000 (12:43 +0200)] 
imap: Added assert to make sure client_command_context isn't freed too early.

9 years agoquota-fs: Fixed getting NFS rquota when the quota was disabled.
Timo Sirainen [Wed, 9 Dec 2015 08:49:22 +0000 (10:49 +0200)] 
quota-fs: Fixed getting NFS rquota when the quota was disabled.

9 years agofts: When indexing header names with lib-fts, add them using "data" language.
Timo Sirainen [Tue, 8 Dec 2015 13:47:28 +0000 (15:47 +0200)] 
fts: When indexing header names with lib-fts, add them using "data" language.

9 years agofts: Fixed searching for HEADER "" with lib-fts
Timo Sirainen [Tue, 8 Dec 2015 11:28:01 +0000 (13:28 +0200)] 
fts: Fixed searching for HEADER "" with lib-fts

9 years agolib-storage: mail_search_args_simplify() handles now ALL better.
Timo Sirainen [Tue, 8 Dec 2015 11:23:19 +0000 (13:23 +0200)] 
lib-storage: mail_search_args_simplify() handles now ALL better.

9 years agolib-storage: mail_search_args_simplify() code cleanup - allow merging first arg
Timo Sirainen [Tue, 8 Dec 2015 11:13:24 +0000 (13:13 +0200)] 
lib-storage: mail_search_args_simplify() code cleanup - allow merging first arg

9 years agolib-storage: Fix to a776ee107aa2 - merged-flag wasn't reset between all args.
Timo Sirainen [Tue, 8 Dec 2015 11:13:10 +0000 (13:13 +0200)] 
lib-storage: Fix to a776ee107aa2 - merged-flag wasn't reset between all args.

9 years agolib-storage: Code cleanup - moved BODY/TEXT "" optimization to mail_search_args_simpl...
Timo Sirainen [Tue, 8 Dec 2015 10:55:40 +0000 (12:55 +0200)] 
lib-storage: Code cleanup - moved BODY/TEXT "" optimization to mail_search_args_simplify()

9 years agolib-settings: Allow using comma as deflist separator.
Timo Sirainen [Tue, 8 Dec 2015 10:24:42 +0000 (12:24 +0200)] 
lib-settings: Allow using comma as deflist separator.
This means that when adding new block {}s via e.g. userdb or post-login
script, the block names can now be set with block=a,b,c instead of
"block=a b c". This is beneficial with e.g. passwd-file or userdb
default_fields where spaces are used to separate parameters entirely.

9 years agoquota-fs: Recalculate relative quota rules when FS limit changes are detected.
Timo Sirainen [Tue, 8 Dec 2015 08:18:48 +0000 (10:18 +0200)] 
quota-fs: Recalculate relative quota rules when FS limit changes are detected.

9 years agolmtp: Memory leak fixes on handling some RCPT TO failures.
Timo Sirainen [Tue, 8 Dec 2015 08:17:10 +0000 (10:17 +0200)] 
lmtp: Memory leak fixes on handling some RCPT TO failures.

9 years agoAdded signature for changeset f833b8160e39
Timo Sirainen [Mon, 7 Dec 2015 19:09:47 +0000 (21:09 +0200)] 
Added signature for changeset f833b8160e39

9 years agoAdded tag 2.2.20 for changeset f833b8160e39
Timo Sirainen [Mon, 7 Dec 2015 19:09:38 +0000 (21:09 +0200)] 
Added tag 2.2.20 for changeset f833b8160e39

9 years agoReleased v2.2.20. 2.2.20
Timo Sirainen [Mon, 7 Dec 2015 19:09:35 +0000 (21:09 +0200)] 
Released v2.2.20.

9 years agolib-ssl-iostream, login-*: Hide unnecessary "EVP_PKEY_get1_EC_KEY:expecting a ec...
Timo Sirainen [Mon, 7 Dec 2015 14:06:15 +0000 (16:06 +0200)] 
lib-ssl-iostream, login-*: Hide unnecessary "EVP_PKEY_get1_EC_KEY:expecting a ec key" errors.

9 years agodoveadm: Fixed reseting getopt() with glibc when processing multiple commands in...
Timo Sirainen [Mon, 7 Dec 2015 09:29:29 +0000 (11:29 +0200)] 
doveadm: Fixed reseting getopt() with glibc when processing multiple commands in a single process.
This means commands run with doveadm batch or multiple commands in a single
doveadm-server connection.

glibc's getopt() man page says that optind=1 should reset it for scanning a
new argument vector, but this doesn't actually seem to work. Setting
optind=0 does work though, so use it everywhere.

9 years agodoveadm-server: Reset getopt() before calling non-mail commands.
Timo Sirainen [Mon, 7 Dec 2015 09:21:59 +0000 (11:21 +0200)] 
doveadm-server: Reset getopt() before calling non-mail commands.
This fixes parsing their parameters when using multiple such commands within
a single doveadm connection.

9 years agolib-storage: mail_search_args_simplify() handles now "(a OR b) AND (a OR c)" -> ...
Timo Sirainen [Sun, 6 Dec 2015 18:48:55 +0000 (20:48 +0200)] 
lib-storage: mail_search_args_simplify() handles now "(a OR b) AND (a OR c)" -> "a OR (b AND c)"

9 years agolib-storage: mail_search_args_simplify() refactoring
Timo Sirainen [Sun, 6 Dec 2015 18:46:52 +0000 (20:46 +0200)] 
lib-storage: mail_search_args_simplify() refactoring
Removed parent_arg from mail_search_args_simplify_extract_common_and() in
preperation for the next changeset.

9 years agolib-storage: mail_search_args_simplify() handles now "a AND (a OR b)" -> "a"
Timo Sirainen [Sun, 6 Dec 2015 17:27:45 +0000 (19:27 +0200)] 
lib-storage: mail_search_args_simplify() handles now "a AND (a OR b)" -> "a"

9 years agolib-storage: Make sure mail_sesarch_args_simplify_sub() is called enough times.
Timo Sirainen [Sun, 6 Dec 2015 17:26:44 +0000 (19:26 +0200)] 
lib-storage: Make sure mail_sesarch_args_simplify_sub() is called enough times.

9 years agolib-storage: Minor test-mail-search-args-simplify unit test improvements
Timo Sirainen [Sun, 6 Dec 2015 17:25:20 +0000 (19:25 +0200)] 
lib-storage: Minor test-mail-search-args-simplify unit test improvements

9 years agolib-storage: mail_search_args_simplify() handles now "(a AND b) OR (a AND c)" ->...
Timo Sirainen [Sun, 6 Dec 2015 16:14:08 +0000 (18:14 +0200)] 
lib-storage: mail_search_args_simplify() handles now "(a AND b) OR (a AND c)" -> "a AND (b OR c)"

9 years agolib-storage: mail_search_args_simplify() handles now "a OR (a AND b)" -> "a"
Timo Sirainen [Sun, 6 Dec 2015 16:12:24 +0000 (18:12 +0200)] 
lib-storage: mail_search_args_simplify() handles now "a OR (a AND b)" -> "a"

9 years agolib-storage: Made mail_search_arg_[one_]equals() public.
Timo Sirainen [Sun, 6 Dec 2015 16:09:17 +0000 (18:09 +0200)] 
lib-storage: Made mail_search_arg_[one_]equals() public.

9 years agolib-storage: mail_search_args_equal() ignored some differences.
Timo Sirainen [Sun, 6 Dec 2015 16:08:20 +0000 (18:08 +0200)] 
lib-storage: mail_search_args_equal() ignored some differences.
 - fuzzy flag
 - MAIL_SEARCH_ARG_FLAG_USE_TZ
 - INTHREAD thread type

9 years agolib-storage: mail_search_arg*_dup() didn't preserve fuzzy-flag.
Timo Sirainen [Sun, 6 Dec 2015 16:06:45 +0000 (18:06 +0200)] 
lib-storage: mail_search_arg*_dup() didn't preserve fuzzy-flag.

9 years agolib-storage: SEARCH BODY "" wasn't properly being translated to SEARCH_ALL.
Timo Sirainen [Sun, 6 Dec 2015 14:46:30 +0000 (16:46 +0200)] 
lib-storage: SEARCH BODY "" wasn't properly being translated to SEARCH_ALL.
Instead if the next parameter was "" this happened (which could have been an
accidental space in doveadm search-query).

9 years agolib-storage: dovecot.index.pvt* ignored several settings.
Timo Sirainen [Sun, 6 Dec 2015 14:09:55 +0000 (16:09 +0200)] 
lib-storage: dovecot.index.pvt* ignored several settings.
mmap_disable=yes, dotlock_use_excl=yes and nfs_flush_index=yes weren't used.

9 years agoquota-fs: File count limits with NetBSD shouldn't be multiplied by DEV_BSIZE
Timo Sirainen [Sun, 6 Dec 2015 13:39:53 +0000 (15:39 +0200)] 
quota-fs: File count limits with NetBSD shouldn't be multiplied by DEV_BSIZE

9 years agolib-charset: Added UTF-7 state checking unit test.
Timo Sirainen [Sun, 6 Dec 2015 13:10:10 +0000 (15:10 +0200)] 
lib-charset: Added UTF-7 state checking unit test.
This was an idea of a way to test for a bug in FreeBSD iconv(), but nobody
reported if it did anything. So lets add it here and see.

9 years agolmtp: quota_full_tempfail=yes didn't work with lmtp_rcpt_check_quota=yes
Timo Sirainen [Sun, 6 Dec 2015 12:57:22 +0000 (14:57 +0200)] 
lmtp: quota_full_tempfail=yes didn't work with lmtp_rcpt_check_quota=yes

9 years agosdbox: Fixed assert-crash when message with external attachments was copied between...
Timo Sirainen [Sun, 6 Dec 2015 12:27:46 +0000 (14:27 +0200)] 
sdbox: Fixed assert-crash when message with external attachments was copied between storages.

9 years agofts: Fixed FTS search query generation after earlier per-language tokenizer changes.
Timo Sirainen [Fri, 4 Dec 2015 12:17:45 +0000 (14:17 +0200)] 
fts: Fixed FTS search query generation after earlier per-language tokenizer changes.

9 years agolib-http: Give a better error message if request times out.
Timo Sirainen [Fri, 4 Dec 2015 11:46:00 +0000 (13:46 +0200)] 
lib-http: Give a better error message if request times out.
Instead of just giving the configured timeout, log how long the timeout
actually took for the oldest request in wait list. Also if the request was
retried, log how many times the request was sent and how long the request
took in total.

9 years agodoveadm fts lookup/expand: Don't assert-crash if fts isn't configured.
Timo Sirainen [Fri, 4 Dec 2015 11:27:28 +0000 (13:27 +0200)] 
doveadm fts lookup/expand: Don't assert-crash if fts isn't configured.

9 years agolib: Removed t_str_trim() for now due to collision in Pigeonhole v0.4.9
Timo Sirainen [Fri, 4 Dec 2015 10:29:12 +0000 (12:29 +0200)] 
lib: Removed t_str_trim() for now due to collision in Pigeonhole v0.4.9

9 years agoimap: Fixed assert-crash if client disconnected at a specific command state.
Timo Sirainen [Fri, 4 Dec 2015 10:15:49 +0000 (12:15 +0200)] 
imap: Fixed assert-crash if client disconnected at a specific command state.
If there was a command with state=CLIENT_COMMAND_STATE_WAIT_SYNC and output
stream was already detected to be closed, we crashed with:

Panic: file imap-client.c: line 841 (client_check_command_hangs): assertion
failed: (!have_wait_unfinished || unfinished_count > 0)

9 years agolib-index: mail_transaction_log_file_map() didn't properly check start_offset
Timo Sirainen [Fri, 4 Dec 2015 09:38:00 +0000 (11:38 +0200)] 
lib-index: mail_transaction_log_file_map() didn't properly check start_offset
If it was too high, it still returned successful mapping. This could have
caused an assert-crash later on when the start_offset was actually attempted
to be used.

9 years agolib-ssl-iostream: Fixed compiler warning when OpenSSL didn't support ECDH.
Timo Sirainen [Fri, 4 Dec 2015 08:52:52 +0000 (10:52 +0200)] 
lib-ssl-iostream: Fixed compiler warning when OpenSSL didn't support ECDH.

9 years agofts: Error handling fix for previous per-language tokenizer change.
Timo Sirainen [Fri, 4 Dec 2015 07:52:26 +0000 (09:52 +0200)] 
fts: Error handling fix for previous per-language tokenizer change.

9 years agoAdded signature for changeset c35e62a9e710
Timo Sirainen [Thu, 3 Dec 2015 13:31:48 +0000 (15:31 +0200)] 
Added signature for changeset c35e62a9e710

9 years agoAdded tag 2.2.20.rc1 for changeset c35e62a9e710
Timo Sirainen [Thu, 3 Dec 2015 13:31:41 +0000 (15:31 +0200)] 
Added tag 2.2.20.rc1 for changeset c35e62a9e710

9 years agoReleased v2.2.20.rc1. 2.2.20.rc1
Timo Sirainen [Thu, 3 Dec 2015 13:31:39 +0000 (15:31 +0200)] 
Released v2.2.20.rc1.

9 years agofts: Added support for per-language tokenizer settings.
Timo Sirainen [Thu, 3 Dec 2015 12:24:06 +0000 (14:24 +0200)] 
fts: Added support for per-language tokenizer settings.
fts_tokenizer_<lang> now overrides fts_tokenizers setting.
fts_tokenizer_<name>_<lang> now overrides fts_tokenizer_<name> setting.

9 years agolib-ssl-iostream: Moved openssl_iostream_*error() to -common.c
Timo Sirainen [Thu, 3 Dec 2015 10:22:24 +0000 (12:22 +0200)] 
lib-ssl-iostream: Moved openssl_iostream_*error() to -common.c
login-common code only links with this file, so that's required for the
previous changes to actually work.

9 years agologin, lib-ssl-iostream: Clear errors caused by manual EC key selection when there...
Timo Sirainen [Thu, 3 Dec 2015 10:19:12 +0000 (12:19 +0200)] 
login, lib-ssl-iostream: Clear errors caused by manual EC key selection when there was no EC key.
EVP_PKEY_get1_EC_KEY() would return an error, which should be ignored
instead of being logged later on.

9 years agolib-ssl-iostream: Check for SSL_CTX_set_ecdh_auto() failure.
Timo Sirainen [Thu, 3 Dec 2015 10:13:11 +0000 (12:13 +0200)] 
lib-ssl-iostream: Check for SSL_CTX_set_ecdh_auto() failure.
This shouldn't happen though.

9 years agologin, lib-ssl-iostream: Deduplicate code with shared openssl_iostream_use_certificat...
Timo Sirainen [Thu, 3 Dec 2015 10:02:56 +0000 (12:02 +0200)] 
login, lib-ssl-iostream: Deduplicate code with shared openssl_iostream_use_certificate_error()

9 years agologin-common: Use openssl_iostream_*error() to avoid code duplication.
Timo Sirainen [Thu, 3 Dec 2015 09:58:11 +0000 (11:58 +0200)] 
login-common: Use openssl_iostream_*error() to avoid code duplication.

9 years agolib-ssl-iostream: Fixes to error handling.
Timo Sirainen [Thu, 3 Dec 2015 09:55:33 +0000 (11:55 +0200)] 
lib-ssl-iostream: Fixes to error handling.
Copy behavior from login-common/ssl-proxy-openssl.c:
 - Handle stacked errors.
 - Improve errors with ERR_TXT_STRING flag.

9 years agolib-ssl-iostream: Don't ignore errors on SSL certificate loading.
Timo Sirainen [Thu, 3 Dec 2015 09:41:58 +0000 (11:41 +0200)] 
lib-ssl-iostream: Don't ignore errors on SSL certificate loading.
Patch by Sebastiaan Hoogeveen.

9 years agomail-log: If uid field is used, make sure newly saved mails actually get an UID.
Timo Sirainen [Tue, 1 Dec 2015 15:31:08 +0000 (17:31 +0200)] 
mail-log: If uid field is used, make sure newly saved mails actually get an UID.
With Maildir the UID is otherwise assigned on mail deliveries only if
dovecot-uidlist happens to get locked.

9 years agolib-mail: test-rfc822-parser unit test fix
Timo Sirainen [Tue, 1 Dec 2015 14:45:37 +0000 (16:45 +0200)] 
lib-mail: test-rfc822-parser unit test fix
We didn't check that all the output was necessarily verified. Also this
makes static analyzer happier.

9 years agodirector: Minor code cleanup - removed unnecessary code.
Timo Sirainen [Mon, 30 Nov 2015 19:39:56 +0000 (21:39 +0200)] 
director: Minor code cleanup - removed unnecessary code.

9 years agodirector: Include tag also in the hosts_hash.
Timo Sirainen [Mon, 30 Nov 2015 19:39:34 +0000 (21:39 +0200)] 
director: Include tag also in the hosts_hash.

9 years agodirector: Fixed recent tag reimplementation to actually work.
Timo Sirainen [Mon, 30 Nov 2015 19:39:07 +0000 (21:39 +0200)] 
director: Fixed recent tag reimplementation to actually work.
We still just created one large vhosts pool for all tags containing all the
hosts.

9 years agodirector: Don't treat empty hostname the same as having it.
Timo Sirainen [Mon, 30 Nov 2015 19:36:51 +0000 (21:36 +0200)] 
director: Don't treat empty hostname the same as having it.
This could have caused "host not given" errors if an empty "host=" was sent
to login process, even though hostip was also sent.

Fixed this in two places, although either one should have been enough.

9 years agodirector: Fixed "doveadm director status user@domain" not to hang due to missing LF.
Timo Sirainen [Mon, 30 Nov 2015 19:32:26 +0000 (21:32 +0200)] 
director: Fixed "doveadm director status user@domain" not to hang due to missing LF.