]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
9 years agoauth: Makefile dependency fix
Timo Sirainen [Tue, 3 May 2016 14:43:00 +0000 (17:43 +0300)] 
auth: Makefile dependency fix

Hopefully fixes:
mv: cannot stat '.deps/auth-stats.Tpo': No such file or directory

9 years agolib: Added i_stream_get_disconnect_reason()
Timo Sirainen [Fri, 6 May 2016 11:34:57 +0000 (14:34 +0300)] 
lib: Added i_stream_get_disconnect_reason()

9 years agolib: Improved connection_disconnect_reason()
Timo Sirainen [Fri, 6 May 2016 11:22:29 +0000 (14:22 +0300)] 
lib: Improved connection_disconnect_reason()

9 years agolazy-expunge: Handle mailbox create race conditions.
Timo Sirainen [Thu, 5 May 2016 15:10:46 +0000 (18:10 +0300)] 
lazy-expunge: Handle mailbox create race conditions.

Don't log an error if another process just created the lazy-expunge mailbox.

9 years agolib-fs: Fixes to stats count tracking
Timo Sirainen [Thu, 5 May 2016 13:15:15 +0000 (16:15 +0300)] 
lib-fs: Fixes to stats count tracking

fs_exists(), fs_copy(), fs_rename() and fs_delete() could have increased the
count multiple times on async operations.

9 years agostats: Fixed ADD-USER stats tracking (auth stats)
Timo Sirainen [Thu, 5 May 2016 11:58:46 +0000 (14:58 +0300)] 
stats: Fixed ADD-USER stats tracking (auth stats)

9 years agolib-fs: fs-metawrap stat() error handling improvement.
Timo Sirainen [Wed, 4 May 2016 15:34:59 +0000 (18:34 +0300)] 
lib-fs: fs-metawrap stat() error handling improvement.

We can't just treat i_stream_get_size() returning 0 as the reason being
istream is async and not fully read. It might be, but it might also be
because of other reasons. And since we're closing the istream we couldn't
even properly finish up the async handling. So for now just return an
error if we see this happening.

9 years agolib: istream's max_buffer_size=0 means 0, not unlimited.
Timo Sirainen [Wed, 4 May 2016 15:24:03 +0000 (18:24 +0300)] 
lib: istream's max_buffer_size=0 means 0, not unlimited.

Make sure we don't grow the buffer size then.

9 years agoimap: Set client_command_context.tagline_reply before syncing.
Timo Sirainen [Wed, 4 May 2016 12:36:44 +0000 (15:36 +0300)] 
imap: Set client_command_context.tagline_reply before syncing.

Command post-hooks can't see it otherwise.

9 years agodsync: Fixed assert-crash if mailbox_attribute_set() fails
Timo Sirainen [Tue, 3 May 2016 19:18:54 +0000 (22:18 +0300)] 
dsync: Fixed assert-crash if mailbox_attribute_set() fails

We shouldn't set importer->mail_error, because we're not going to
fail the import.

Fixes assert-crash:
dsync-mailbox-import.c: line 2812 (dsync_mailbox_import_deinit): assertion failed: (importer->failed == (importer->mail_error != 0))

9 years agolib-mail: Fixed istream-header-filter unit test names
Timo Sirainen [Tue, 3 May 2016 17:28:42 +0000 (20:28 +0300)] 
lib-mail: Fixed istream-header-filter unit test names

9 years agodoveadm who: Fixed listing LMTP sessions
Timo Sirainen [Tue, 3 May 2016 17:20:28 +0000 (20:20 +0300)] 
doveadm who: Fixed listing LMTP sessions

9 years agolib: Added more unit tests to str_*()
Timo Sirainen [Tue, 3 May 2016 17:17:12 +0000 (20:17 +0300)] 
lib: Added more unit tests to str_*()

9 years agoconfig: Fixed namespaces to work again
Timo Sirainen [Tue, 3 May 2016 17:15:23 +0000 (20:15 +0300)] 
config: Fixed namespaces to work again

Broken by 26a6ff7f0. old_settings_handle() should have returned FALSE for
settings it didn't handle.

9 years agoglobal: Use mail_user_plugin_getenv_bool() wherever possible
Baofeng Wang [Tue, 26 Apr 2016 13:43:15 +0000 (16:43 +0300)] 
global: Use mail_user_plugin_getenv_bool() wherever possible

New API is used to check boolean setting OR exsitence of an env variable.

9 years agolib-storage: add mail_user_plugin_getenv_bool
Baofeng Wang [Wed, 20 Apr 2016 14:21:51 +0000 (17:21 +0300)] 
lib-storage: add mail_user_plugin_getenv_bool

New API will check boolean-like env setting OR its exsitence.

Function returns FALSE when:
* Read out a null string,
"Or" * String starts with any letter in set {'N', 'n', 'F','f','0'}

To keep downward compatibility, For other cases including an empty
string, function returns TRUE.

9 years agolib: Optimize str_append_n()
Timo Sirainen [Sat, 30 Apr 2016 11:05:42 +0000 (14:05 +0300)] 
lib: Optimize str_append_n()

9 years agolib: Make str_*() inline which are simple buffer_* wrappers.
Timo Sirainen [Sat, 30 Apr 2016 11:03:32 +0000 (14:03 +0300)] 
lib: Make str_*() inline which are simple buffer_* wrappers.

9 years agoglobal: Avoid using buffer_get_data()
Timo Sirainen [Sat, 30 Apr 2016 10:59:32 +0000 (13:59 +0300)] 
global: Avoid using buffer_get_data()

Especially buffer_get_data(buf, NULL) generates worse code than just
using buf->data directly.

9 years agoglobal: Replace buffer_get_used_size(buf) with buf->used
Timo Sirainen [Sat, 30 Apr 2016 10:49:06 +0000 (13:49 +0300)] 
global: Replace buffer_get_used_size(buf) with buf->used

Doesn't make any diffence to code generation, but it's somewhat simpler code.
It's also more consistent since most of the code nowadays uses the ->used.

9 years agoconfig: Remove old_namespace()
Baofeng Wang [Wed, 20 Apr 2016 14:27:50 +0000 (17:27 +0300)] 
config: Remove old_namespace()

From config/old-set-parser.c, and its caller. The namespace section
named "private", "shared" or "public" is obsolete accordingly.

9 years agolib-imap, imap: BINARY [UNKNOWNCTE] to [PARSE]
Martti Rannanjärvi [Mon, 2 May 2016 10:26:05 +0000 (13:26 +0300)] 
lib-imap, imap: BINARY [UNKNOWNCTE] to [PARSE]

9 years agolib-storage: Make it easier to debug mail's unclosed istream
Timo Sirainen [Mon, 2 May 2016 20:43:15 +0000 (23:43 +0300)] 
lib-storage: Make it easier to debug mail's unclosed istream

9 years agolib-mail: istream-header-filter - fixed adding headers at eoh
Timo Sirainen [Tue, 3 May 2016 15:25:50 +0000 (18:25 +0300)] 
lib-mail: istream-header-filter - fixed adding headers at eoh

9 years agolib-mail: istream-header-filter: Fixed stat() with HEADER_FILTER_HIDE_BODY
Timo Sirainen [Tue, 3 May 2016 14:38:34 +0000 (17:38 +0300)] 
lib-mail: istream-header-filter: Fixed stat() with HEADER_FILTER_HIDE_BODY

9 years agolib-mail: istream-header-filter HEADER_FILTER_ADD_MISSING_EOH fixes
Timo Sirainen [Tue, 3 May 2016 14:25:07 +0000 (17:25 +0300)] 
lib-mail: istream-header-filter HEADER_FILTER_ADD_MISSING_EOH fixes

When using HEADER_FILTER_CRLF_PRESERVE, add CR to the EOH if the previous
header line ended with CRLF.

When header ends to a header without newline, add two newlines so we can get
the actual EOH added.

9 years agolib-mail: istream-header-filter: Fixed stat() with HEADER_FILTER_END_BODY_WITH_LF
Timo Sirainen [Tue, 3 May 2016 14:08:24 +0000 (17:08 +0300)] 
lib-mail: istream-header-filter: Fixed stat() with HEADER_FILTER_END_BODY_WITH_LF

9 years agolib-mail: istream-header-filter - Check errors reading header
Timo Sirainen [Tue, 3 May 2016 13:54:46 +0000 (16:54 +0300)] 
lib-mail: istream-header-filter - Check errors reading header

This probably doesn't affect the results much, since the stream_errno is set
anyway. But it's better to abort early, just in case the broken state might
end up asserting later.

9 years agolib: Added o_stream_unix_write_fd() assert: fd>=0
Timo Sirainen [Tue, 3 May 2016 12:49:00 +0000 (15:49 +0300)] 
lib: Added o_stream_unix_write_fd() assert: fd>=0

9 years agolib-storage: Fixed potential crash in mailbox_sync_deinit() error handling
Timo Sirainen [Tue, 3 May 2016 12:27:22 +0000 (15:27 +0300)] 
lib-storage: Fixed potential crash in mailbox_sync_deinit() error handling

If mailbox_sync*() was called before mailbox was opened, the automatic
mailbox opening could fail. mailbox_sync_deinit() would still try to access
box->view, which would be NULL.

9 years agolib-storage: Another fix to mail storage initialization.
Timo Sirainen [Mon, 2 May 2016 21:25:43 +0000 (00:25 +0300)] 
lib-storage: Another fix to mail storage initialization.

Allow mail_namespaces_init_location() to add the namespace directly to user,
since that's what the current callers always want. But compared to the
original code we're now calling mail_namespaces_init_finish() rather than
doing the same things ourself.

9 years agolib-ldap: Handle various LDAP failures correctly
Aki Tuomi [Mon, 2 May 2016 14:31:30 +0000 (17:31 +0300)] 
lib-ldap: Handle various LDAP failures correctly

9 years agolib-ldap: Do not retry with bad credentials
Aki Tuomi [Mon, 2 May 2016 13:21:27 +0000 (16:21 +0300)] 
lib-ldap: Do not retry with bad credentials

9 years agolib-storage: Changed mail storage initialization.
Timo Sirainen [Mon, 2 May 2016 14:00:22 +0000 (17:00 +0300)] 
lib-storage: Changed mail storage initialization.

Most importantly require mail_namespaces_init_finish() after
mail_storage_create(). This was needed so that
mail_namespaces_created/added hook would always have the ns->list set, which
is required for several of the hooks to work (e.g. mailbox list index)

9 years agolib-ldap: Added initial connection pooling code.
Timo Sirainen [Mon, 2 May 2016 12:20:18 +0000 (15:20 +0300)] 
lib-ldap: Added initial connection pooling code.

This is mainly about allowing multiple dict-ldaps to use the same
ldap-connection. In future we could support load balancing with multiple
concurrent LDAP connections.

9 years agodict-ldap: Removed caching of ldap-clients
Timo Sirainen [Mon, 2 May 2016 11:35:40 +0000 (14:35 +0300)] 
dict-ldap: Removed caching of ldap-clients

With the previous per-username caching there could be a huge number of
dict-ldaps.

9 years agodict-ldap: Don't reuse dict for different usernames.
Timo Sirainen [Mon, 2 May 2016 11:21:06 +0000 (14:21 +0300)] 
dict-ldap: Don't reuse dict for different usernames.

Fixes doing priv/* lookups for multiple usernames.

This currently also means that each username will create a separate LDAP
connection, which isn't ideal. But this is probably better fixed in
lib-ldap code similar to how lib-sql does connection pooling.

9 years agoimap: Added struct client_command_context.tagline_reply
Timo Sirainen [Mon, 2 May 2016 09:01:40 +0000 (12:01 +0300)] 
imap: Added struct client_command_context.tagline_reply

Can be used by plugins.

9 years agoauth: Added %{auth_user/username/domain} variables
Timo Sirainen [Mon, 2 May 2016 07:14:20 +0000 (10:14 +0300)] 
auth: Added %{auth_user/username/domain} variables

9 years agolib: Added ostream-unix for writing fd sockets via ostream.
Stephan Bosch [Sat, 30 Apr 2016 10:50:53 +0000 (12:50 +0200)] 
lib: Added ostream-unix for writing fd sockets via ostream.

9 years agolib: ostream-file: Allow creating derived file output streams.
Stephan Bosch [Sat, 30 Apr 2016 12:10:59 +0000 (14:10 +0200)] 
lib: ostream-file: Allow creating derived file output streams.

9 years agolib: ostream-file: Split o_stream_file_writev() from o_stream_file_writev_full().
Stephan Bosch [Sat, 30 Apr 2016 11:55:52 +0000 (13:55 +0200)] 
lib: ostream-file: Split o_stream_file_writev() from o_stream_file_writev_full().

9 years agolib: ostream-file: Renamed o_stream_writev() to o_stream_file_writev_full().
Stephan Bosch [Sat, 30 Apr 2016 11:51:59 +0000 (13:51 +0200)] 
lib: ostream-file: Renamed o_stream_writev() to o_stream_file_writev_full().

9 years agolib: ostream-file: Renamed iov_size to iov_count everywhere and made it unsigned...
Stephan Bosch [Sat, 30 Apr 2016 11:29:47 +0000 (13:29 +0200)] 
lib: ostream-file: Renamed iov_size to iov_count everywhere and made it unsigned int for consistency.

9 years agolib-http: server: Fixed assert failure occurring when closing the connection while...
Stephan Bosch [Sat, 30 Apr 2016 12:22:21 +0000 (14:22 +0200)] 
lib-http: server: Fixed assert failure occurring when closing the connection while a request payload was still being read.

9 years ago.gitignore: Added *~
Timo Sirainen [Sat, 30 Apr 2016 12:26:27 +0000 (15:26 +0300)] 
.gitignore: Added *~

9 years agolib-storage: Clear list error before mailbox_list_get_hierarchy_sep()
Timo Sirainen [Sat, 30 Apr 2016 11:55:14 +0000 (14:55 +0300)] 
lib-storage: Clear list error before mailbox_list_get_hierarchy_sep()

With ACL plugin enabled the call could have triggered dovecot-acl-list
rebuild, which in turn could have set list errors if it didn't have
permissions to all the mailboxes. This caused IMAP logins to fail.

9 years agolib-mail: message-parser assert-crashfix
Timo Sirainen [Sat, 30 Apr 2016 11:19:02 +0000 (14:19 +0300)] 
lib-mail: message-parser assert-crashfix

Crashes when multipart MIME header is missing end-of-headers line and the
boundary begins with the same prefix as one of the parent boundaries.
Broken by 7a12331c6

9 years agoquota: Fix to earlier commit 62f2f6baf
Timo Sirainen [Fri, 29 Apr 2016 22:27:27 +0000 (01:27 +0300)] 
quota: Fix to earlier commit 62f2f6baf

expunge_uids may become empty with prev_idx > 0

9 years agolib-fs: Fixed fs_get_metadata() with fs-metawrap
Timo Sirainen [Fri, 29 Apr 2016 22:05:47 +0000 (01:05 +0300)] 
lib-fs: Fixed fs_get_metadata() with fs-metawrap

If mail was already read to EOF.

9 years agolib-storage: mailbox_list_index yes by default
Martti Rannanjärvi [Thu, 14 Apr 2016 11:28:30 +0000 (14:28 +0300)] 
lib-storage: mailbox_list_index yes by default

9 years agoman: Add stub for doveadm-fs command
Michael Slusarz [Tue, 26 Apr 2016 20:27:39 +0000 (14:27 -0600)] 
man: Add stub for doveadm-fs command

9 years agodoveadm-server: Handle istream send error.
Aki Tuomi [Tue, 26 Apr 2016 16:26:34 +0000 (19:26 +0300)] 
doveadm-server: Handle istream send error.

9 years agolib-http: server: Implemented means to gracefully shut down the server.
Stephan Bosch [Sat, 16 Apr 2016 01:54:00 +0000 (03:54 +0200)] 
lib-http: server: Implemented means to gracefully shut down the server.

While shutting down, it will not accept new requests and connections are closed once they become idle.

9 years agolib-dict: Further remove APPEND
Aki Tuomi [Mon, 25 Apr 2016 08:37:05 +0000 (11:37 +0300)] 
lib-dict: Further remove APPEND

9 years agomail-log: log headers as utf8
Martti Rannanjärvi [Tue, 26 Apr 2016 07:49:46 +0000 (10:49 +0300)] 
mail-log: log headers as utf8

9 years agolib-lda: remove forced logging of session_id
Martti Rannanjärvi [Wed, 27 Apr 2016 10:06:52 +0000 (13:06 +0300)] 
lib-lda: remove forced logging of session_id

9 years agolib-master, doveadm: remove mountpoint-list.* and doveadm mount commands
Martti Rannanjärvi [Wed, 27 Apr 2016 10:31:56 +0000 (13:31 +0300)] 
lib-master, doveadm: remove mountpoint-list.* and doveadm mount commands

9 years agolib-storage: write subscription file in version 2 format
Martti Rannanjärvi [Wed, 27 Apr 2016 07:17:27 +0000 (10:17 +0300)] 
lib-storage: write subscription file in version 2 format

Write subscriptions file in a format that only v2.2.17 or newer can read, so
after dovecot converts the files to the new format, downgrading to a version
older than v2.2.17 is not supported.

9 years agolib-dict-extra: Avoid out of scope data stack usage.
Teemu Huovila [Fri, 29 Apr 2016 18:36:31 +0000 (21:36 +0300)] 
lib-dict-extra: Avoid out of scope data stack usage.

9 years agolib: Finished string trimming functions to trim characters from beginning and/or...
Stephan Bosch [Wed, 27 Apr 2016 10:46:02 +0000 (12:46 +0200)] 
lib: Finished string trimming functions to trim characters from beginning and/or end of a string.

This also restructures the code to avoid code duplication as much as possible.

9 years agolib-http: client: Added ability to configure a specific proxy for individual requests.
Stephan Bosch [Wed, 27 Apr 2016 10:00:25 +0000 (12:00 +0200)] 
lib-http: client: Added ability to configure a specific proxy for individual requests.

This way, a request can be routed to a specific proxy (or origin server). The destination can also be a unix socket.

9 years agolib-fs: don't append '/' to prefix in posix-fs
Martti Rannanjärvi [Thu, 28 Apr 2016 07:06:21 +0000 (10:06 +0300)] 
lib-fs: don't append '/' to prefix in posix-fs

9 years agolmtp: Connect to anvil earlier while still running as root
Timo Sirainen [Tue, 26 Apr 2016 15:51:55 +0000 (18:51 +0300)] 
lmtp: Connect to anvil earlier while still running as root

This was a problem only with lmtp_rcpt_check_quota=yes.

9 years agolib: Set timestamp part more accurately in guid_128_generate()
Timo Sirainen [Thu, 28 Apr 2016 19:33:14 +0000 (22:33 +0300)] 
lib: Set timestamp part more accurately in guid_128_generate()

Previously a long-running process would keep the timestamp close to its
original start time. This doesn't really matter as long as GUIDs are treated
opaque, but some pieces of code prefer to try to use the timestamp fields
since they're already there. This makes such code work more nicely.

9 years agolib-ldap: Make static analyzer happier
Timo Sirainen [Fri, 29 Apr 2016 18:57:36 +0000 (21:57 +0300)] 
lib-ldap: Make static analyzer happier

Remove dead assignment.

9 years agoauth: Fixed final result in multiple userdbs
Timo Sirainen [Fri, 29 Apr 2016 17:23:00 +0000 (20:23 +0300)] 
auth: Fixed final result in multiple userdbs

We don't want to return the last result's success/failure, but
the entire userdb chain's success/failure.

9 years agoauth: Session ID wasn't exported to auth workers.
Timo Sirainen [Fri, 29 Apr 2016 16:59:36 +0000 (19:59 +0300)] 
auth: Session ID wasn't exported to auth workers.

Most importantly this means that log messages didn't contain them.

9 years agoquota: Added quota_over_flag_lazy_check flag.
Timo Sirainen [Fri, 29 Apr 2016 16:25:52 +0000 (19:25 +0300)] 
quota: Added quota_over_flag_lazy_check flag.

By default the quota_over_flag is checked immediately at startup. With this
option the check is done only at a time when the quota is anyway being read.

9 years agoquota: dict-quota was broken by 464db6d9d
Timo Sirainen [Fri, 29 Apr 2016 16:20:11 +0000 (19:20 +0300)] 
quota: dict-quota was broken by 464db6d9d

We can't assume that the quota_root given to quota_count() is
count_quota_root, because dict_quota_root also calls it.

9 years agoquota: Cleanup - split quota_over_flag to init & run parts
Timo Sirainen [Fri, 29 Apr 2016 15:58:53 +0000 (18:58 +0300)] 
quota: Cleanup - split quota_over_flag to init & run parts

In preparation for the next change.

9 years agoquota: Fixed debug logging for quota_over_flag
Timo Sirainen [Fri, 29 Apr 2016 15:55:34 +0000 (18:55 +0300)] 
quota: Fixed debug logging for quota_over_flag

9 years agoquota: Fixed quota_over_flag handling when quota usage==limit
Timo Sirainen [Fri, 29 Apr 2016 15:53:04 +0000 (18:53 +0300)] 
quota: Fixed quota_over_flag handling when quota usage==limit

It couldn't really work correctly otherwise. If we've reached the quota, we
want to start rejecting new mails.

9 years agoquota-count: Cache quota usage within the same ioloop run.
Timo Sirainen [Fri, 29 Apr 2016 14:21:26 +0000 (17:21 +0300)] 
quota-count: Cache quota usage within the same ioloop run.

This mainly means that when both STORAGE and MESSAGES quota is looked up we
don't need to calculate them twice.

9 years agoquota-count: Code cleanup - give consistent return value
Timo Sirainen [Fri, 29 Apr 2016 14:20:31 +0000 (17:20 +0300)] 
quota-count: Code cleanup - give consistent return value

Although the callers didn't care if it returned 0 or 1.

9 years agoglobal: Use buffer_get_writable_size() where possible
Timo Sirainen [Fri, 29 Apr 2016 12:50:06 +0000 (15:50 +0300)] 
global: Use buffer_get_writable_size() where possible

With 09539f3db increasing buffer's init_size with +1 some fts-icu unit tests
started failing. And in general it's better to use the writable size since
that provides the true size that can be used.

9 years agoquota: Optimize handling a large number of expunges.
Timo Sirainen [Fri, 29 Apr 2016 12:42:48 +0000 (15:42 +0300)] 
quota: Optimize handling a large number of expunges.

This assumes that the mail_expunge() was called in the same order as
sync_notify(), which practically means that they were both done in
ascending uid order. This is usually true.

9 years agolib-ldap: Set minimum protocol if supported by library
Aki Tuomi [Fri, 29 Apr 2016 11:30:46 +0000 (14:30 +0300)] 
lib-ldap: Set minimum protocol if supported by library

9 years agoimapc: Fixed EXPUNGE handling when imapc_features didn't have modseq
Timo Sirainen [Fri, 29 Apr 2016 11:33:45 +0000 (14:33 +0300)] 
imapc: Fixed EXPUNGE handling when imapc_features didn't have modseq

9 years agolib-index: Use a bit larger initial records buffer size
Timo Sirainen [Fri, 29 Apr 2016 11:07:05 +0000 (14:07 +0300)] 
lib-index: Use a bit larger initial records buffer size

For example with a mailbox having 160k messages the buffer size is around
10MB. Adding just 1% more space to it allows a lot more appends before the
buffer needs to be realloced. This reduces CPU usage quite a lot.

9 years agolib: buffer_create_dynamic() now adds +1 to init_size
Timo Sirainen [Fri, 29 Apr 2016 10:55:33 +0000 (13:55 +0300)] 
lib: buffer_create_dynamic() now adds +1 to init_size

9 years agolib: Use p_malloc() explicitly in first buffer_alloc()
Timo Sirainen [Fri, 29 Apr 2016 09:55:52 +0000 (12:55 +0300)] 
lib: Use p_malloc() explicitly in first buffer_alloc()

Although there is now code in p_realloc() that it should be just as
efficient, this makes profiling somewhat nicer since it can better
distinguish between actual reallocs and initial allocs.

9 years agolib: Implement i_realloc(mem==NULL) more efficiently
Timo Sirainen [Fri, 29 Apr 2016 09:54:46 +0000 (12:54 +0300)] 
lib: Implement i_realloc(mem==NULL) more efficiently

Various parts of code use this to allocate the initial buffer. We can
do this more efficiently by using calloc().

9 years agoconfigure: Fixed (again) --with-ldap=plugin
Timo Sirainen [Fri, 29 Apr 2016 09:44:09 +0000 (12:44 +0300)] 
configure: Fixed (again) --with-ldap=plugin

9 years agolib-index: Memory allocation optimization
Timo Sirainen [Fri, 29 Apr 2016 09:34:23 +0000 (12:34 +0300)] 
lib-index: Memory allocation optimization

9 years agofts-lucene: Fixed crash on rescan
Timo Sirainen [Fri, 29 Apr 2016 07:53:37 +0000 (10:53 +0300)] 
fts-lucene: Fixed crash on rescan

Broken by af2564c7f9e05ad245a032efdfbc5abbb9b70f1e - rescan_ctx can be NULL.

9 years agolib-charset: Do not use //IGNORE on non-GNU system
Aki Tuomi [Thu, 28 Apr 2016 11:03:41 +0000 (14:03 +0300)] 
lib-charset: Do not use //IGNORE on non-GNU system

9 years agolib-storage: mailbox_set_subscribed() ignores duplicate changes now.
Timo Sirainen [Thu, 28 Apr 2016 23:33:58 +0000 (02:33 +0300)] 
lib-storage: mailbox_set_subscribed() ignores duplicate changes now.

9 years agolib-storage: Added index_storage_list_index_has_changed_full()
Timo Sirainen [Thu, 28 Apr 2016 12:21:41 +0000 (15:21 +0300)] 
lib-storage: Added index_storage_list_index_has_changed_full()

This allows the caller to use it to implement a slightly different
mailbox.list_index_has_changed()

9 years agolib-charset: Revert f086fd065 - wrong version
Timo Sirainen [Thu, 28 Apr 2016 12:56:45 +0000 (15:56 +0300)] 
lib-charset: Revert f086fd065 - wrong version

This wasn't the version that was supposed to be merged..

9 years agolib-charset: Do not use //IGNORE on non-GNU system
Aki Tuomi [Thu, 28 Apr 2016 11:03:41 +0000 (14:03 +0300)] 
lib-charset: Do not use //IGNORE on non-GNU system

9 years agolib: [io]stream-rawlog.h should auto-include iostream-rawlog.h
Timo Sirainen [Thu, 28 Apr 2016 12:00:44 +0000 (15:00 +0300)] 
lib: [io]stream-rawlog.h should auto-include iostream-rawlog.h

Otherwise compiler will warn about the missing enum.

9 years agodoveadm dump: Added more index ext records.
Timo Sirainen [Thu, 28 Apr 2016 09:53:49 +0000 (12:53 +0300)] 
doveadm dump: Added more index ext records.

"msgs" and "vsize" are now expanded.

9 years agolib-fs: Allow multiple fs_read_stream() calls to seekable istreams.
Timo Sirainen [Thu, 28 Apr 2016 09:45:01 +0000 (12:45 +0300)] 
lib-fs: Allow multiple fs_read_stream() calls to seekable istreams.

This fixes for example calling fs_default_copy() for an istream which was
already opened:

Panic: file fs-api.c: line 528 (fs_read_stream): assertion failed: (!file->istream_open)

9 years agolib-fs: Fixed multiple concurrent fs_read_stream() calls
Timo Sirainen [Thu, 28 Apr 2016 09:47:02 +0000 (12:47 +0300)] 
lib-fs: Fixed multiple concurrent fs_read_stream() calls

Return a new limit-istream, so each istream can have its own independent
offset.

9 years agolazy-expunge: Open the mailbox with ACLs ignored.
Timo Sirainen [Wed, 27 Apr 2016 20:58:12 +0000 (23:58 +0300)] 
lazy-expunge: Open the mailbox with ACLs ignored.

9 years agolazy-expunge: Open mailbox with MAILBOX_FLAG_SAVEONLY flag.
Timo Sirainen [Wed, 27 Apr 2016 20:47:09 +0000 (23:47 +0300)] 
lazy-expunge: Open mailbox with MAILBOX_FLAG_SAVEONLY flag.

9 years agoman: Add more complete description of one-way sync
Michael Slusarz [Wed, 20 Apr 2016 01:24:52 +0000 (19:24 -0600)] 
man: Add more complete description of one-way sync

9 years agolib: Add PKCS#5 pbkdf1 and 2
Aki Tuomi [Wed, 20 Apr 2016 14:34:53 +0000 (17:34 +0300)] 
lib: Add PKCS#5 pbkdf1 and 2

9 years agoauth: Add PBKDF2 password scheme
Aki Tuomi [Wed, 27 Apr 2016 06:14:29 +0000 (09:14 +0300)] 
auth: Add PBKDF2 password scheme