]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
9 years agolib-storage: Autoexpunging should ignore nonexistent mailboxes. release-2.2.25 17/head
Timo Sirainen [Fri, 1 Jul 2016 08:12:03 +0000 (11:12 +0300)] 
lib-storage: Autoexpunging should ignore nonexistent mailboxes.

The check was done too late after recent changes.

9 years agodoveadm mailbox update: Avoid assert-crash on errors.
Timo Sirainen [Fri, 1 Jul 2016 08:07:47 +0000 (11:07 +0300)] 
doveadm mailbox update: Avoid assert-crash on errors.

9 years agologin-proxy: cork+uncork in flush callbacks
Timo Sirainen [Thu, 30 Jun 2016 23:49:32 +0000 (02:49 +0300)] 
login-proxy: cork+uncork in flush callbacks

Potentially reduces latency at the end of a larger data transfer.

9 years agoconfigure: Check if C99 "static" keyword is supported for array sizes.
Timo Sirainen [Thu, 30 Jun 2016 22:11:02 +0000 (01:11 +0300)] 
configure: Check if C99 "static" keyword is supported for array sizes.

9 years agolib-http: client: Fixed potential segfault problem in http_client_connection_server_c...
Stephan Bosch [Thu, 30 Jun 2016 20:35:59 +0000 (22:35 +0200)] 
lib-http: client: Fixed potential segfault problem in http_client_connection_server_close().

Used wrong variable: it is set to NULL by http_client_request_unref() before it is used.
Problem found by Coverity.

9 years agolib-dcrypt: Compiling fix
Timo Sirainen [Thu, 30 Jun 2016 15:13:52 +0000 (18:13 +0300)] 
lib-dcrypt: Compiling fix

9 years agoimap: Fixed reading LDA settings from config.
Timo Sirainen [Thu, 30 Jun 2016 13:21:40 +0000 (16:21 +0300)] 
imap: Fixed reading LDA settings from config.

9 years agomaster: Stopping didn't close dead-pipes early enough.
Timo Sirainen [Thu, 30 Jun 2016 11:08:24 +0000 (14:08 +0300)] 
master: Stopping didn't close dead-pipes early enough.

This caused stopping to be too slow. Broken by 0153cf542.

9 years agoReleased v2.2.25.rc1. 2.2.25.rc1
Timo Sirainen [Thu, 30 Jun 2016 11:28:55 +0000 (14:28 +0300)] 
Released v2.2.25.rc1.

9 years agolmtp: Removed assert, which triggers if anvil connect fails.
Timo Sirainen [Thu, 30 Jun 2016 09:10:29 +0000 (12:10 +0300)] 
lmtp: Removed assert, which triggers if anvil connect fails.

9 years agolmtp: Fixed pipelining of commands after RCPT TO
Timo Sirainen [Thu, 30 Jun 2016 09:08:19 +0000 (12:08 +0300)] 
lmtp: Fixed pipelining of commands after RCPT TO

We should stop while waiting for anvil reply. Broken by ced943b0a.

9 years agoauth-request: Whitespace fix
Aki Tuomi [Thu, 30 Jun 2016 08:57:19 +0000 (11:57 +0300)] 
auth-request: Whitespace fix

9 years agoauth-request: Correctly allocate mech_password and credentials_scheme
Aki Tuomi [Thu, 30 Jun 2016 07:03:18 +0000 (10:03 +0300)] 
auth-request: Correctly allocate mech_password and credentials_scheme

9 years agodcrypt: Free keys in test-stream
Aki Tuomi [Thu, 30 Jun 2016 06:29:26 +0000 (09:29 +0300)] 
dcrypt: Free keys in test-stream

9 years agodcrypt: Add tests for 0 and 1 byte data
Aki Tuomi [Thu, 30 Jun 2016 06:06:51 +0000 (09:06 +0300)] 
dcrypt: Add tests for 0 and 1 byte data

9 years agodcrypt: Fix bugs in 0 and 1 byte payload files
Aki Tuomi [Thu, 30 Jun 2016 06:06:33 +0000 (09:06 +0300)] 
dcrypt: Fix bugs in 0 and 1 byte payload files

9 years agolib-ssl-iostream: Compiler fix to previous commit
Timo Sirainen [Wed, 29 Jun 2016 22:27:37 +0000 (01:27 +0300)] 
lib-ssl-iostream: Compiler fix to previous commit

9 years agolib-ssl-iostream: Disable "CRYPTO_set_mem_functions() was called too late" for now
Timo Sirainen [Wed, 29 Jun 2016 22:15:38 +0000 (01:15 +0300)] 
lib-ssl-iostream: Disable "CRYPTO_set_mem_functions() was called too late" for now

It always happens at least with Ubuntu 16.04.

9 years agoauth: delay_until can optionally now have +<max random secs> suffix.
Timo Sirainen [Wed, 29 Jun 2016 20:56:18 +0000 (23:56 +0300)] 
auth: delay_until can optionally now have +<max random secs> suffix.

9 years agoauth: Fixed checking if delay_until is too large
Timo Sirainen [Wed, 29 Jun 2016 20:54:46 +0000 (23:54 +0300)] 
auth: Fixed checking if delay_until is too large

9 years agodsync: When full resync is wanted in a stateful sync, output empty state.
Timo Sirainen [Wed, 29 Jun 2016 19:29:20 +0000 (22:29 +0300)] 
dsync: When full resync is wanted in a stateful sync, output empty state.

This continues 3d49dc64d, which didn't actually work because
brain->require_full_resync was either cleared earlier or it was never
even set in this brain.

9 years agodoveadm: Read settings with service=doveadm
Timo Sirainen [Wed, 29 Jun 2016 18:09:48 +0000 (21:09 +0300)] 
doveadm: Read settings with service=doveadm

This was done for mail commands while initializing the mail user, but
other commands weren't using it. This meant that doveadm was using only
global settings instead of protocol doveadm { .. } settings for everything
except mail commands.

9 years agodoveadm user: Avoid potential crashes when running via doveadm-server
Timo Sirainen [Wed, 29 Jun 2016 17:44:37 +0000 (20:44 +0300)] 
doveadm user: Avoid potential crashes when running via doveadm-server

9 years agolib: iostream-temp: Fixed o_stream_send_istream() with >2GB files
Timo Sirainen [Wed, 29 Jun 2016 19:11:48 +0000 (22:11 +0300)] 
lib: iostream-temp: Fixed o_stream_send_istream() with >2GB files

9 years agodict-sql: Treat NULL value the same as "key not found"
Timo Sirainen [Wed, 29 Jun 2016 16:22:51 +0000 (19:22 +0300)] 
dict-sql: Treat NULL value the same as "key not found"

9 years agodoveadm: Added "service stop" command to stop specific services.
Timo Sirainen [Tue, 28 Jun 2016 20:12:03 +0000 (23:12 +0300)] 
doveadm: Added "service stop" command to stop specific services.

9 years agomaster: Allow stopping specific services via master socket.
Timo Sirainen [Sun, 26 Jun 2016 20:04:00 +0000 (23:04 +0300)] 
master: Allow stopping specific services via master socket.

9 years agomaster: Added service_monitor_stop_close() to stops service and close its listeners.
Timo Sirainen [Tue, 28 Jun 2016 20:38:48 +0000 (23:38 +0300)] 
master: Added service_monitor_stop_close() to stops service and close its listeners.

9 years agomaster: Added support for stopping specific services.
Timo Sirainen [Tue, 28 Jun 2016 20:38:11 +0000 (23:38 +0300)] 
master: Added support for stopping specific services.

We need to have a per-service fd for detecting a dead master.

9 years agolib-storage: Fixed search arg initialization tracking for INTHREAD
Timo Sirainen [Wed, 29 Jun 2016 16:12:58 +0000 (19:12 +0300)] 
lib-storage: Fixed search arg initialization tracking for INTHREAD

9 years agovirtual: Fixed error handling when matching mailboxes by metadata.
Timo Sirainen [Wed, 29 Jun 2016 15:49:57 +0000 (18:49 +0300)] 
virtual: Fixed error handling when matching mailboxes by metadata.

9 years agomaildir: Improved "Filename keeps changing" error handling/logging
Timo Sirainen [Wed, 29 Jun 2016 15:34:07 +0000 (18:34 +0300)] 
maildir: Improved "Filename keeps changing" error handling/logging

9 years agomaildir: Code comment update
Timo Sirainen [Wed, 29 Jun 2016 15:33:48 +0000 (18:33 +0300)] 
maildir: Code comment update

9 years agomaildir: Fixed updating filenames in existing uidlist
Timo Sirainen [Wed, 29 Jun 2016 15:31:21 +0000 (18:31 +0300)] 
maildir: Fixed updating filenames in existing uidlist

Broken by 042668c0c.

This could have caused errors like:

 - maildir_file_do(...): Filename keeps changing
 - Expunged message reappeared, giving a new UID

9 years agodoveadm-server: Do not crash if empty data in authorization
Aki Tuomi [Fri, 3 Jun 2016 14:30:58 +0000 (17:30 +0300)] 
doveadm-server: Do not crash if empty data in authorization

9 years agodoveadm: Implement user and auth cache flush to server
Aki Tuomi [Tue, 31 May 2016 19:22:37 +0000 (22:22 +0300)] 
doveadm: Implement user and auth cache flush to server

9 years agodoveadm-server: Skip doveadm_print_init
Aki Tuomi [Sat, 4 Jun 2016 05:14:45 +0000 (08:14 +0300)] 
doveadm-server: Skip doveadm_print_init

Some commands need to do output that is not doable with
doveadm_print, so we need to have a flag to indicate this.

9 years agolmtp: If anvil lookup fails, ignore lmtp_user_concurrency_limit
Timo Sirainen [Wed, 29 Jun 2016 13:34:11 +0000 (16:34 +0300)] 
lmtp: If anvil lookup fails, ignore lmtp_user_concurrency_limit

Previously it was randomly allowing or disallowing the client.

9 years agoauth: Added delay_until passdb extra field.
Timo Sirainen [Wed, 29 Jun 2016 12:25:28 +0000 (15:25 +0300)] 
auth: Added delay_until passdb extra field.

9 years agoauth: Fixed plaintext authentication when auth policy was already processed.
Timo Sirainen [Wed, 29 Jun 2016 13:01:13 +0000 (16:01 +0300)] 
auth: Fixed plaintext authentication when auth policy was already processed.

Broken by e82511362.

9 years agolib-fts: Added maxlen parameter to icu-normalizer.
Timo Sirainen [Wed, 29 Jun 2016 12:49:38 +0000 (15:49 +0300)] 
lib-fts: Added maxlen parameter to icu-normalizer.

This is needed because the normalization can increase the token's length.

9 years agoauth: Added ":remove" suffix for passdb/userdb extra fields to remove fields.
Timo Sirainen [Tue, 28 Jun 2016 19:20:20 +0000 (22:20 +0300)] 
auth: Added ":remove" suffix for passdb/userdb extra fields to remove fields.

9 years agolmtp: Increase user's concurrency limit already after RCPT TO.
Timo Sirainen [Wed, 29 Jun 2016 11:09:01 +0000 (14:09 +0300)] 
lmtp: Increase user's concurrency limit already after RCPT TO.

This way it's not possible for a lot of mails to arrive to user concurrently
and bypass the lmtp_user_concurrency_limit.

9 years agolmtp: If user has rached lmtp_user_concurrency_limit, fail at RCPT TO stage.
Timo Sirainen [Wed, 29 Jun 2016 11:07:34 +0000 (14:07 +0300)] 
lmtp: If user has rached lmtp_user_concurrency_limit, fail at RCPT TO stage.

Otherwise LMTP client would have to send the entire email body before
getting the failure.

9 years agolib-storage: Fixed MAILBOX_METADATA_FIRST_SAVE_DATE with mailbox_list_index=no
Timo Sirainen [Mon, 20 Jun 2016 11:43:04 +0000 (14:43 +0300)] 
lib-storage: Fixed MAILBOX_METADATA_FIRST_SAVE_DATE with mailbox_list_index=no

This also meant that autoexpunging wasn't working then.

9 years agoauth-policy: Do not do policy checks every time
Aki Tuomi [Wed, 29 Jun 2016 11:55:12 +0000 (14:55 +0300)] 
auth-policy: Do not do policy checks every time

9 years agoauth: Finish policy.[ch] renaming..
Timo Sirainen [Wed, 29 Jun 2016 11:43:31 +0000 (14:43 +0300)] 
auth: Finish policy.[ch] renaming..

9 years agoauth: Avoid nonstandard #pragma once
Timo Sirainen [Wed, 29 Jun 2016 11:31:28 +0000 (14:31 +0300)] 
auth: Avoid nonstandard #pragma once

9 years agoauth: Rename policy.[ch] to auth-policy.[ch]
Timo Sirainen [Wed, 29 Jun 2016 11:30:56 +0000 (14:30 +0300)] 
auth: Rename policy.[ch] to auth-policy.[ch]

9 years agolib-dcrypt: correctly set version 2 on key info
Martti Rannanjärvi [Tue, 28 Jun 2016 10:24:09 +0000 (13:24 +0300)] 
lib-dcrypt: correctly set version 2 on key info

Dovecot format version 2 keys were incorrectly reported as version 1
before.

9 years agolib-index: Fixed view syncing when changes couldn't be read from transaction logs
Timo Sirainen [Wed, 29 Jun 2016 11:16:58 +0000 (14:16 +0300)] 
lib-index: Fixed view syncing when changes couldn't be read from transaction logs

Fixes errors like:

Log synchronization error at seq=0,offset=0 for .../dovecot.index: Append with UID 5, but next_uid = 6
.../dovecot.index view syncing failed to apply changes

9 years agoauth-policy: Do not allow/report when master query
Aki Tuomi [Wed, 29 Jun 2016 11:12:29 +0000 (14:12 +0300)] 
auth-policy: Do not allow/report when master query

This way auth policy isn't consulted when e.g. doveadm is used.

9 years agoauth-policy: Report success earlier
Aki Tuomi [Wed, 29 Jun 2016 10:52:09 +0000 (13:52 +0300)] 
auth-policy: Report success earlier

9 years agoconfigure: Detect SSL_COMP_free_compression_methods() by linking
Timo Sirainen [Tue, 28 Jun 2016 21:37:09 +0000 (00:37 +0300)] 
configure: Detect SSL_COMP_free_compression_methods() by linking

Fixes using libressl.

9 years agolib: Added assert to iostream-temp
Timo Sirainen [Tue, 28 Jun 2016 19:01:29 +0000 (22:01 +0300)] 
lib: Added assert to iostream-temp

Input stream isn't expected to shrink here. Potentially this could be
changed to an error instead.

9 years agolazy-expunge: Fixed crash when copying from internal namespace
Timo Sirainen [Tue, 28 Jun 2016 16:45:12 +0000 (19:45 +0300)] 
lazy-expunge: Fixed crash when copying from internal namespace

Most importantly fixes crash in LDA.

9 years agodict-ldap: Fixed linking with OSX
Timo Sirainen [Tue, 28 Jun 2016 07:25:21 +0000 (10:25 +0300)] 
dict-ldap: Fixed linking with OSX

9 years agoauth: Compiler warning fixes
Timo Sirainen [Tue, 28 Jun 2016 07:15:02 +0000 (10:15 +0300)] 
auth: Compiler warning fixes

9 years agoauth-policy: Hook auth policy to auth code
Aki Tuomi [Fri, 3 Jun 2016 18:35:48 +0000 (21:35 +0300)] 
auth-policy: Hook auth policy to auth code

9 years agoauth-policy: Add policy implementation
Aki Tuomi [Fri, 3 Jun 2016 17:21:42 +0000 (20:21 +0300)] 
auth-policy: Add policy implementation

9 years agofts plugin: Added fts_autoindex_exclude settings.
Baofeng Wang [Fri, 10 Jun 2016 11:31:00 +0000 (14:31 +0300)] 
fts plugin: Added fts_autoindex_exclude settings.

fts_autoindex_exclude setting specifies special-use flag or mailbox name to
be excluded.

 - If a name starts with '\', it's treated as a case-insensitive special-use
flag.

 - Multiple names can be specified with serial numbers, for example:

  plugin {
    fts_autoindex_exclude = \Junk
    fts_autoindex_exclude2 = \Trash
    fts_autoindex_exclude3 = DUMPSTER
    fts_autoindex_exclude4 = New folder
  }

9 years agolib-dcrypt: Make static analyzer happier
Timo Sirainen [Mon, 27 Jun 2016 13:37:18 +0000 (16:37 +0300)] 
lib-dcrypt: Make static analyzer happier

9 years agodcrypt: Add tests for v1 and v2 public keys and RSA
Aki Tuomi [Mon, 27 Jun 2016 11:43:58 +0000 (14:43 +0300)] 
dcrypt: Add tests for v1 and v2 public keys and RSA

9 years agodcrypt-openssl: Various fixes
Aki Tuomi [Mon, 27 Jun 2016 11:43:27 +0000 (14:43 +0300)] 
dcrypt-openssl: Various fixes

Fix v1 and v2 key handling and some allocation issues.

9 years agolib-dcrypt: Added sample-v1_short.asc to EXTRA_DIST
Timo Sirainen [Mon, 27 Jun 2016 11:13:15 +0000 (14:13 +0300)] 
lib-dcrypt: Added sample-v1_short.asc to EXTRA_DIST

9 years agoistream-decrypt: Ensure we can open short v1 files
Aki Tuomi [Mon, 27 Jun 2016 10:21:05 +0000 (13:21 +0300)] 
istream-decrypt: Ensure we can open short v1 files

9 years agoistream-decrypt: Correctly check the header length for v1
Aki Tuomi [Mon, 27 Jun 2016 10:19:35 +0000 (13:19 +0300)] 
istream-decrypt: Correctly check the header length for v1

9 years agolast-login: Ignore the plugin if last_login_dict setting is empty
Timo Sirainen [Fri, 24 Jun 2016 09:14:32 +0000 (12:14 +0300)] 
last-login: Ignore the plugin if last_login_dict setting is empty

9 years agolib-ssl-iostream: Use ENGINE_set_default()
Timo Sirainen [Thu, 23 Jun 2016 15:04:40 +0000 (18:04 +0300)] 
lib-ssl-iostream: Use ENGINE_set_default()

9 years agolazy_expunge: Optimize checking for last instance when moving a mail.
Timo Sirainen [Thu, 23 Jun 2016 14:21:09 +0000 (17:21 +0300)] 
lazy_expunge: Optimize checking for last instance when moving a mail.

It's never the last instance, so we don't need to even check it.

9 years agofts-lucene: Fixed crash on error or auto-rebuild conditions.
Timo Sirainen [Tue, 21 Jun 2016 22:24:42 +0000 (01:24 +0300)] 
fts-lucene: Fixed crash on error or auto-rebuild conditions.

9 years agowelcome plugin: -Wstrict-bool warning fix
Timo Sirainen [Tue, 21 Jun 2016 19:08:25 +0000 (22:08 +0300)] 
welcome plugin: -Wstrict-bool warning fix

9 years agoLAYOUT=index: Existence or GUID lookups don't need to refresh mailboxes.
Timo Sirainen [Tue, 21 Jun 2016 18:26:29 +0000 (21:26 +0300)] 
LAYOUT=index: Existence or GUID lookups don't need to refresh mailboxes.

9 years agolib-storage: Added a kludgy quick-"parameter" to list_index_has_changed()
Timo Sirainen [Tue, 21 Jun 2016 18:39:49 +0000 (21:39 +0300)] 
lib-storage: Added a kludgy quick-"parameter" to list_index_has_changed()

9 years agoLAYOUT=index: Avoid unnecessary work for setting \Marked flags in LIST reply.
Timo Sirainen [Tue, 21 Jun 2016 18:06:22 +0000 (21:06 +0300)] 
LAYOUT=index: Avoid unnecessary work for setting \Marked flags in LIST reply.

If MAILBOX_LIST_ITER_RETURN_NO_FLAGS is set, the caller doesn't care about
the flags.

9 years agolib-dcrypt: dcrypt_keypair_generate() no longer assumes pair_r to be initialized.
Timo Sirainen [Mon, 20 Jun 2016 08:33:47 +0000 (11:33 +0300)] 
lib-dcrypt: dcrypt_keypair_generate() no longer assumes pair_r to be initialized.

It wasn't clear that it should have been zeroed. It also likely isn't very
useful to be able to place the generated key to existing keys.

9 years agolib-dcrypt: Check for all the return values in unit tests
Timo Sirainen [Sun, 19 Jun 2016 19:27:00 +0000 (22:27 +0300)] 
lib-dcrypt: Check for all the return values in unit tests

9 years agolib-dcrypt: Added missing error handling.
Timo Sirainen [Sun, 19 Jun 2016 19:21:59 +0000 (22:21 +0300)] 
lib-dcrypt: Added missing error handling.

Most of these are probably unnecessary now that malloc() no longer fails.
Also some of the NULL checks may not be needed since OpenSSL functions
(usually?) return failure on NULL parameters, but sometimes they perform
a different operation. So overall, probably safer to include these checks.

9 years agolib-dcrypt: Don't ignore BIO errors.
Timo Sirainen [Sun, 19 Jun 2016 19:18:04 +0000 (22:18 +0300)] 
lib-dcrypt: Don't ignore BIO errors.

Might happen due to out of memory?

9 years agolib-dcrypt: dcrypt_key_type_public/private() can no longer fail.
Timo Sirainen [Sun, 19 Jun 2016 18:21:56 +0000 (21:21 +0300)] 
lib-dcrypt: dcrypt_key_type_public/private() can no longer fail.

Removed unnecessary failure handling.

9 years agolib-dcrypt: dcrypt_key_convert_private_to_public() can no longer fail.
Timo Sirainen [Sun, 19 Jun 2016 18:20:27 +0000 (21:20 +0300)] 
lib-dcrypt: dcrypt_key_convert_private_to_public() can no longer fail.

Removed unnecessary failure handling.

9 years agolib-dcrypt: Assert-crash if key parameter is NULL.
Timo Sirainen [Sun, 19 Jun 2016 17:55:19 +0000 (20:55 +0300)] 
lib-dcrypt: Assert-crash if key parameter is NULL.

If it happens, it's a bug.

9 years agolib-dcrypt: Assert-crash if impossible private/public keys are seen.
Timo Sirainen [Sun, 19 Jun 2016 17:48:27 +0000 (20:48 +0300)] 
lib-dcrypt: Assert-crash if impossible private/public keys are seen.

9 years agodoveadm fs delete: Allow multiple paths also with -R parameter.
Timo Sirainen [Tue, 21 Jun 2016 15:47:42 +0000 (18:47 +0300)] 
doveadm fs delete: Allow multiple paths also with -R parameter.

9 years agodoveadm: Fixed --long-parameters handling
Timo Sirainen [Tue, 21 Jun 2016 15:30:20 +0000 (18:30 +0300)] 
doveadm: Fixed --long-parameters handling

9 years agodbox: Optimize POP3 MAIL_FETCH_UIDL_BACKEND.
Timo Sirainen [Mon, 20 Jun 2016 17:06:38 +0000 (20:06 +0300)] 
dbox: Optimize POP3 MAIL_FETCH_UIDL_BACKEND.

We keep track of the highest UID known to have POP3 UIDL in index's header.
If saving adds a newer message, it'll also update the header. When fetching
UIDL_BACKEND, we can need to check only mails with lower UIDs. There are
some race conditions here, but normally UIDLs are set only once during
migration so it shouldn't matter.

9 years agoAdded welcome plugin.
Timo Sirainen [Mon, 20 Jun 2016 08:39:55 +0000 (11:39 +0300)] 
Added welcome plugin.

9 years agodoc: fix wrong tense in doveadm-expunge man page
Martti Rannanjärvi [Tue, 21 Jun 2016 12:11:04 +0000 (15:11 +0300)] 
doc: fix wrong tense in doveadm-expunge man page

9 years agofs-posix: Allow ":" as well as space as parameter separator.
Timo Sirainen [Tue, 21 Jun 2016 14:26:01 +0000 (17:26 +0300)] 
fs-posix: Allow ":" as well as space as parameter separator.

This makes it consistent with all the other fs drivers.

9 years agofs-posix: Added "dirs" parameter to enable explicit directory removal.
Timo Sirainen [Tue, 21 Jun 2016 14:24:11 +0000 (17:24 +0300)] 
fs-posix: Added "dirs" parameter to enable explicit directory removal.

9 years agofs-posix: Autodelete directories also when "prefix" parameter is used.
Timo Sirainen [Tue, 21 Jun 2016 13:49:19 +0000 (16:49 +0300)] 
fs-posix: Autodelete directories also when "prefix" parameter is used.

9 years agolib-storage: Add autoexpunge_max_mails configuration to autoexpunge
Baofeng Wang [Mon, 20 Jun 2016 12:10:55 +0000 (15:10 +0300)] 
lib-storage: Add autoexpunge_max_mails configuration to autoexpunge

Mails are expunged until mail count is at autoexpunge_max_mails or below.

In below example, autoexpunge will expunge 1 mail when message count > 100
and *then* try to expunge mails that are still older than 2 minutes:

namespace {
  ..
   mailbox Trash {
     autoexpunge = 2 mins
     autoexpunge_max_mails = 100
   }
}

9 years agolib-dict: Explicitly specify used dict_vfuncs methods for drivers.
Timo Sirainen [Tue, 21 Jun 2016 09:04:24 +0000 (12:04 +0300)] 
lib-dict: Explicitly specify used dict_vfuncs methods for drivers.

This allows adding more methods without modifying all the existing drivers.

9 years agolib-fts: add unit test to fts_tokenizer_delete_trailing_partial_char()
Baofeng Wang [Wed, 8 Jun 2016 13:41:04 +0000 (16:41 +0300)] 
lib-fts: add unit test to fts_tokenizer_delete_trailing_partial_char()

9 years agolib-fts: allow hyphen character in domain part
Baofeng Wang [Tue, 7 Jun 2016 13:37:27 +0000 (16:37 +0300)] 
lib-fts: allow hyphen character in domain part

Allow hyphen character and remove possible trailing hyhpen character
when email tokenization is done.

9 years agolib-fts: remove trailing period character from email-address
Baofeng Wang [Tue, 7 Jun 2016 12:58:38 +0000 (15:58 +0300)] 
lib-fts: remove trailing period character from email-address

any trailing period character '.' should be removed when email
tokenization is done.

9 years agolib-test: add test_assert_failed_strcmp to expose strings.
Baofeng Wang [Tue, 7 Jun 2016 13:01:03 +0000 (16:01 +0300)] 
lib-test: add test_assert_failed_strcmp to expose strings.

the macro is used to facilitate any test to show string comparision
contents when they doesn't match.

9 years agoMakefile: Added run-test-valgrind.supp to EXTRA_DIST
Timo Sirainen [Mon, 20 Jun 2016 18:38:56 +0000 (21:38 +0300)] 
Makefile: Added run-test-valgrind.supp to EXTRA_DIST

9 years agoUpdated run-test-valgrind.supp
Timo Sirainen [Mon, 20 Jun 2016 15:46:04 +0000 (18:46 +0300)] 
Updated run-test-valgrind.supp

9 years agolib: file_create_locked() - Unexpectedly deleted temp file is error.
Timo Sirainen [Mon, 20 Jun 2016 14:52:28 +0000 (17:52 +0300)] 
lib: file_create_locked() - Unexpectedly deleted temp file is error.

This shouldn't happen and we shouldn't be silently retrying if it does.