]>
git.ipfire.org Git - thirdparty/dovecot/core.git/log
Timo Sirainen [Thu, 28 Jun 2012 00:18:55 +0000 (03:18 +0300)]
Added i_stream_alloc()
Timo Sirainen [Wed, 27 Jun 2012 22:30:50 +0000 (01:30 +0300)]
istreams: Renamed i_stream_get_buffer_space() to i_stream_try_alloc()
Timo Sirainen [Wed, 27 Jun 2012 22:01:58 +0000 (01:01 +0300)]
Renamed istream-attachment to istream-sized.
The code didn't really assume anything about the input being an attachment,
so this allows reusing the stream for other purposes.
Timo Sirainen [Wed, 27 Jun 2012 21:27:13 +0000 (00:27 +0300)]
Changed i_close_fd() API to set the fd to -1 after closing.
Timo Sirainen [Wed, 27 Jun 2012 09:29:42 +0000 (12:29 +0300)]
pop3c: Added pop3c_master_user setting.
Timo Sirainen [Wed, 27 Jun 2012 09:25:05 +0000 (12:25 +0300)]
doveadm mailbox status -A -t: Reset vsize counter between users.
Timo Sirainen [Wed, 27 Jun 2012 09:12:52 +0000 (12:12 +0300)]
lib-storage: Fixed handling failures when autocreating mailboxes.
Timo Sirainen [Wed, 27 Jun 2012 09:03:51 +0000 (12:03 +0300)]
gssapi: Allow logging in as users listed in "k5principals" extra field.
This also enables other passdb extra fields for gssapi mechanism.
Based on patch by Sam Morris.
Timo Sirainen [Wed, 27 Jun 2012 01:24:53 +0000 (04:24 +0300)]
Try to avoid (void) casts by adding more ATTR_NOWARN_UNUSED_RESULT.
Timo Sirainen [Mon, 25 Jun 2012 16:40:24 +0000 (19:40 +0300)]
imapc: Fixed crash on saving/copying if remote IMAP server didn't support UIDPLUS.
Timo Sirainen [Mon, 25 Jun 2012 00:21:25 +0000 (03:21 +0300)]
Avoid using (void)s by adding ATTR_NOWARN_UNUSED_RESULT attributes and other ways.
Timo Sirainen [Sun, 24 Jun 2012 23:52:33 +0000 (02:52 +0300)]
Replaced (void)close(fd) and close_keep_errno() with i_close_fd().
i_close_fd() preserves the errno and logs an error if the close() fails.
Timo Sirainen [Sun, 24 Jun 2012 23:38:29 +0000 (02:38 +0300)]
Added array_append_zero() to write a zero-filled record to an array.
Replaced (void)array_append_space() calls with it.
Timo Sirainen [Sun, 24 Jun 2012 23:22:12 +0000 (02:22 +0300)]
seq-range-array: Reverted most of recent API changes.
Added ATTR_NOWARN_UNUSED_RESULT for the functions whose return value can
safely be ignored.
Timo Sirainen [Sun, 24 Jun 2012 23:20:30 +0000 (02:20 +0300)]
Added ATTR_NOWARN_UNUSED_RESULT, which expands to nowarn_unused_result attribute if supported.
Requires a patched clang.
Timo Sirainen [Sun, 24 Jun 2012 23:15:22 +0000 (02:15 +0300)]
Added i_stream_get_data_size(). Used it where possible.
Timo Sirainen [Sun, 24 Jun 2012 22:14:03 +0000 (01:14 +0300)]
Make sure we check all the functions' return values. Minor API changes to simplify this.
Checked using a patched clang that adds attribute(warn_unused_result) to all
functions. This commit fixes several error handling mistakes.
Timo Sirainen [Sun, 24 Jun 2012 21:18:31 +0000 (00:18 +0300)]
pop3c: Fixed losing timeout on ioloop change.
Timo Sirainen [Sun, 24 Jun 2012 21:01:59 +0000 (00:01 +0300)]
Added o_stream_nsend*() and related functions to make delayed error handling safer.
Once o_stream_nsend*() is called, o_stream_nfinish() must be called before
stream is destroyed to finish checking if there were any errors. If
something failed and the stream is just wanted to be closed,
o_stream_ignore_last_errors() can be called.
For streams where errors don't really make any difference (network sockets)
you can call o_stream_set_no_error_handling() immediately after creating the
stream.
Timo Sirainen [Sun, 24 Jun 2012 18:43:48 +0000 (21:43 +0300)]
master: Problems with creating base_dir/statedir should be fatals.
Timo Sirainen [Sun, 24 Jun 2012 18:35:18 +0000 (21:35 +0300)]
lib-lda: Duplicate database write failures weren't detected.
Timo Sirainen [Sun, 24 Jun 2012 18:35:18 +0000 (21:35 +0300)]
lib-lda: Duplicate database write failures weren't detected.
Timo Sirainen [Sun, 24 Jun 2012 18:29:56 +0000 (21:29 +0300)]
seq_range_array_add() API change triggered a crash in buggy code.
Timo Sirainen [Sun, 24 Jun 2012 18:19:33 +0000 (21:19 +0300)]
seq_range_array_remove() now returns void. Added seq_ranger_array_try_remove().
Timo Sirainen [Sun, 24 Jun 2012 18:14:56 +0000 (21:14 +0300)]
seq_range_array_add() API changed. Added other functions to provide the less common use cases.
Timo Sirainen [Sun, 24 Jun 2012 17:58:04 +0000 (20:58 +0300)]
Make static analyzer happier.
Timo Sirainen [Sun, 24 Jun 2012 17:57:06 +0000 (20:57 +0300)]
Merged changes from v2.1 tree.
Timo Sirainen [Sun, 24 Jun 2012 17:52:39 +0000 (20:52 +0300)]
Make static analyzer happier.
Timo Sirainen [Sun, 24 Jun 2012 17:48:38 +0000 (20:48 +0300)]
Added file_dotlock_delete_verified() and changed file_dotlock_delete() to return void.
Timo Sirainen [Sun, 24 Jun 2012 17:36:05 +0000 (20:36 +0300)]
lib-mail: Fixed an edge case with message header parser and very long lines.
If the header was exactly a specific number of bytes, the parser thought the
header ended there.
Timo Sirainen [Sun, 24 Jun 2012 16:51:40 +0000 (19:51 +0300)]
lib-mail: message_header_decode_utf8() API changed to not give return value.
It's a rather unnecessary optimization and it wasn't even correct when the
input wasn't valid UTF8.
Timo Sirainen [Sun, 24 Jun 2012 16:44:22 +0000 (19:44 +0300)]
dict file: Don't ignore write failures.
Timo Sirainen [Sun, 24 Jun 2012 16:35:11 +0000 (19:35 +0300)]
fd_set_nonblock() API changed to i_fatal() on failure.
Pretty much none of its users were checking if it failed, and there's really
no good reason for it to fail anyway.
Timo Sirainen [Sun, 24 Jun 2012 16:13:58 +0000 (19:13 +0300)]
dsync: Fixed a potential error if transaction log was completely empty.
Timo Sirainen [Sun, 24 Jun 2012 16:12:26 +0000 (19:12 +0300)]
imap: CATENATE error handling fix
Timo Sirainen [Sun, 24 Jun 2012 15:58:19 +0000 (18:58 +0300)]
Avoid a NULL warning in mysql_init() when HAVE_ATTR_NULL capable compiler is used.
Timo Sirainen [Sun, 24 Jun 2012 00:19:17 +0000 (03:19 +0300)]
director: Fix to handling duplicate USER-WEAK event.
Timo Sirainen [Sun, 24 Jun 2012 00:02:11 +0000 (03:02 +0300)]
mailbox_list_index=yes: Fixed a potential crash.
Timo Sirainen [Sun, 24 Jun 2012 00:02:11 +0000 (03:02 +0300)]
mailbox_list_index=yes: Fixed a potential crash.
Timo Sirainen [Sat, 23 Jun 2012 23:20:28 +0000 (02:20 +0300)]
Fixed signed integer shift overflows.
These didn't actually cause any broken behavior. One of these was caught by
http://embed.cs.utah.edu/ioc/ and the rest I grepped.
Timo Sirainen [Sat, 23 Jun 2012 21:52:57 +0000 (00:52 +0300)]
Marked functions parameters that are allowed to be NULL. Some APIs were also changed.
The non-obvious APIs where NULL parameter was changed to "" are
master_service_init() and auth_master_user_list_init().
These checks can currently be enabled only on a patched clang:
http://llvm.org/bugs/show_bug.cgi?id=6786
Timo Sirainen [Fri, 22 Jun 2012 18:59:01 +0000 (21:59 +0300)]
Makefile: Removed unnecessary code
Timo Sirainen [Fri, 22 Jun 2012 15:51:42 +0000 (18:51 +0300)]
lib-ssl-iostream: Memory leak fixes
Timo Sirainen [Thu, 21 Jun 2012 20:15:21 +0000 (23:15 +0300)]
lib-imap: Added IMAP_RESP_CODE_UNKNOWN_CTE
Timo Sirainen [Thu, 21 Jun 2012 19:56:15 +0000 (22:56 +0300)]
imap: Compile fix due to recent changes
Timo Sirainen [Thu, 21 Jun 2012 19:50:10 +0000 (22:50 +0300)]
Makefile: Removed message-binary-part.h which isn't finished yet.
Timo Sirainen [Thu, 21 Jun 2012 18:58:48 +0000 (21:58 +0300)]
imap: Removed unnecessary code.
Timo Sirainen [Thu, 21 Jun 2012 18:52:56 +0000 (21:52 +0300)]
imap: Rewrote FETCH command to use imap-msgpart API.
Timo Sirainen [Thu, 21 Jun 2012 18:50:35 +0000 (21:50 +0300)]
lib-imap-storage: imap-msgpart rewrite and API change.
The new API allows first parsing the validity of section strings and later
relying on them being valid without having to re-parse it. The
implementation also fixes a few things and adds "partial fetch cache".
Timo Sirainen [Thu, 21 Jun 2012 18:47:06 +0000 (21:47 +0300)]
lib-imap: imap_quote() now skips any CR/LF characters from input.
Timo Sirainen [Thu, 21 Jun 2012 18:44:28 +0000 (21:44 +0300)]
lib-mail: Added istream-nonuls for converting NUL bytes to something else.
Timo Sirainen [Thu, 21 Jun 2012 18:25:04 +0000 (21:25 +0300)]
imap: If DELETE can't succeed because mailbox has children, don't give [ALREADYEXISTS] code.
Timo Sirainen [Thu, 21 Jun 2012 16:12:04 +0000 (19:12 +0300)]
quota: Don't crash at init if one of the namespaces no root dir.
Timo Sirainen [Thu, 21 Jun 2012 15:48:38 +0000 (18:48 +0300)]
imapc: Don't crash when using multiple imapc namespaces.
Timo Sirainen [Thu, 21 Jun 2012 11:51:36 +0000 (14:51 +0300)]
lib-storage: Fixed mailbox_status.unseen count for private indexes.
Timo Sirainen [Wed, 20 Jun 2012 03:32:06 +0000 (06:32 +0300)]
imap MOVE: Don't commit expunge transaction before the copy transaction has succeeded.
Timo Sirainen [Wed, 20 Jun 2012 03:21:57 +0000 (06:21 +0300)]
imap parser: literal8 flag was handled in opposite way.
Timo Sirainen [Wed, 20 Jun 2012 03:21:17 +0000 (06:21 +0300)]
imap: Implemented MOVE extension.
Timo Sirainen [Wed, 20 Jun 2012 03:17:40 +0000 (06:17 +0300)]
quota: Ignore quota when handling mailbox_move().
Timo Sirainen [Wed, 20 Jun 2012 03:17:00 +0000 (06:17 +0300)]
acl: Optimize failing mailbox_move() when expunge right is missing.
Timo Sirainen [Wed, 20 Jun 2012 03:15:46 +0000 (06:15 +0300)]
lib-storage: Added mailbox_move(), which is basically copy+expunge.
Timo Sirainen [Wed, 20 Jun 2012 03:09:04 +0000 (06:09 +0300)]
istream-binary-converter: Added maximum memory usage limit for header parsing.
Timo Sirainen [Wed, 20 Jun 2012 02:41:54 +0000 (05:41 +0300)]
imap: Fixes to handling BINARY APPENDs.
Timo Sirainen [Wed, 20 Jun 2012 02:39:50 +0000 (05:39 +0300)]
imap: Fixed CATENATE support to send "+ OK" for literals.
Timo Sirainen [Tue, 19 Jun 2012 23:45:20 +0000 (02:45 +0300)]
imap: Implemented BINARY extension support for APPEND/CATENATE.
Timo Sirainen [Tue, 19 Jun 2012 23:44:57 +0000 (02:44 +0300)]
lib-test: Fixed test istream
Timo Sirainen [Tue, 19 Jun 2012 23:44:35 +0000 (02:44 +0300)]
imap parser: Added support for parsing literal8 (for BINARY extension)
Timo Sirainen [Tue, 19 Jun 2012 23:23:42 +0000 (02:23 +0300)]
Added istream-binary-converter to convert binary MIME parts to base64.
Timo Sirainen [Tue, 19 Jun 2012 23:22:27 +0000 (02:22 +0300)]
message parser: Added MESSAGE_PARSER_FLAG_INCLUDE_BOUNDARIES flag.
Timo Sirainen [Tue, 19 Jun 2012 23:21:54 +0000 (02:21 +0300)]
message parser: Fixed infinite loop when parsing a specific message.
Timo Sirainen [Tue, 19 Jun 2012 23:21:54 +0000 (02:21 +0300)]
message parser: Fixed infinite loop when parsing a specific message.
Timo Sirainen [Tue, 19 Jun 2012 22:45:55 +0000 (01:45 +0300)]
message header parser: Don't skip header if header name is longer than input buffer.
We'll instead now just return the name in smaller blocks with
no_newline=TRUE. This allows the caller to reconstruct the exact same
message.
Timo Sirainen [Tue, 19 Jun 2012 22:40:14 +0000 (01:40 +0300)]
message header parser: Fixed handling very long multiline headers.
If the header's line fit exactly to input stream's buffer so that the parser
couldn't see the following character, it assumed that the header ended.
Timo Sirainen [Tue, 19 Jun 2012 21:48:08 +0000 (00:48 +0300)]
message parser: Fixes to handling CRLF linefeeds.
An extra CR could have been left to the end of a MIME part that belonged to
its --boundary.
Timo Sirainen [Mon, 18 Jun 2012 14:05:27 +0000 (17:05 +0300)]
fts-squat: Fixed handling multiple SEARCH parameters.
Timo Sirainen [Mon, 18 Jun 2012 10:21:03 +0000 (13:21 +0300)]
lib-ssl-iostream: Don't assert-crash if underlying connection suddenly disconnects.
Timo Sirainen [Mon, 18 Jun 2012 10:19:41 +0000 (13:19 +0300)]
doveadm: Fixed crash with proxying some commands.
Timo Sirainen [Fri, 15 Jun 2012 23:06:16 +0000 (02:06 +0300)]
example-config: Refer to ssl=required in disable_plaintext_auth setting.
Timo Sirainen [Fri, 15 Jun 2012 23:03:53 +0000 (02:03 +0300)]
imapc: Removed brokenly used explicit data stack frame.
Fixes crashes when a message has more than 8 keywords.
Timo Sirainen [Fri, 15 Jun 2012 22:59:44 +0000 (01:59 +0300)]
doveadm log errors: Usage text update
Timo Sirainen [Fri, 15 Jun 2012 20:44:53 +0000 (23:44 +0300)]
doveadm log errors: Added -s <min_timestamp> parameter
Timo Sirainen [Fri, 15 Jun 2012 14:12:24 +0000 (17:12 +0300)]
example-config: imap_logout_format default was wrong.
Timo Sirainen [Fri, 15 Jun 2012 12:12:33 +0000 (15:12 +0300)]
maildir++ quota: If reading maildirsize fails with ESTALE, retry it.
Timo Sirainen [Wed, 13 Jun 2012 13:29:37 +0000 (16:29 +0300)]
lib-master: Fixed assert crash in some situations after updating instance name.
Timo Sirainen [Wed, 13 Jun 2012 12:34:39 +0000 (15:34 +0300)]
master: If service_count=1 and process_limit=1 and >1 clients connect, log about service_count being why.
Timo Sirainen [Mon, 11 Jun 2012 20:38:45 +0000 (23:38 +0300)]
shared mailboxes: Avoid doing "@domain" userdb lookups.
Timo Sirainen [Mon, 11 Jun 2012 15:22:06 +0000 (18:22 +0300)]
shared mailboxes: Per-user flags can now be stored in private index files.
This can be enabled by adding e.g.:
mail_location = mdbox:/var/shared/mdbox:INDEXPVT=~/mdbox/shared
Timo Sirainen [Mon, 11 Jun 2012 13:54:14 +0000 (16:54 +0300)]
director: Fixed working as standalone.
Timo Sirainen [Mon, 11 Jun 2012 13:30:58 +0000 (16:30 +0300)]
lib-master: -i parameter shouldn't imply -k parameter.
This was added accidentally when writing the code.
Timo Sirainen [Mon, 11 Jun 2012 13:14:13 +0000 (16:14 +0300)]
lib-charset: Make sure convert_to_utf8*() never returns non-UTF8 output.
Timo Sirainen [Mon, 4 Jun 2012 21:34:32 +0000 (00:34 +0300)]
Makefile: Added more missing dsync*.h files
Timo Sirainen [Mon, 4 Jun 2012 20:33:40 +0000 (23:33 +0300)]
Makefile: Added missing dsync-mail.h
Timo Sirainen [Mon, 4 Jun 2012 19:15:46 +0000 (22:15 +0300)]
Makefile: Added missing dsync-mailbox.h
Timo Sirainen [Mon, 4 Jun 2012 18:58:00 +0000 (21:58 +0300)]
doveadm config: If -c parameter was given, it wasn't passed to doveconf.
Timo Sirainen [Mon, 4 Jun 2012 18:21:52 +0000 (21:21 +0300)]
doveadm instance list: Added -c parameter to easily get the instance's config path.
Timo Sirainen [Mon, 4 Jun 2012 18:21:28 +0000 (21:21 +0300)]
lib-master: Keep track of config paths in "instances" file.
Normally it can be looked up from base_dir/dovecot.conf symlink, but
base_dir may get deleted when system starts up.
Timo Sirainen [Mon, 4 Jun 2012 14:23:07 +0000 (17:23 +0300)]
doveadm instance list: Added optional name parameter to list only specified instance.
Timo Sirainen [Mon, 4 Jun 2012 11:03:47 +0000 (14:03 +0300)]
mdbox: Flush/fsync newly saved mail data before locking map.
This reduced the amount of time the map needs to be locked.
Timo Sirainen [Mon, 4 Jun 2012 10:59:40 +0000 (13:59 +0300)]
mdbox: Make sure map transaction won't succeed after mdbox_map_atomic_set_failed()
Timo Sirainen [Sat, 2 Jun 2012 16:39:27 +0000 (19:39 +0300)]
imap: Code cleanup and error handling fixes for CATENATE