- Mar 05, 2018
-
-
Stephan Bosch authored
-
Stephan Bosch authored
This occurred for example when the "fileinto" command is used with only the "copy" extension in the require line. Panic message was: Panic: file hash.c: line 263 (hash_table_insert_node): assertion failed: (opcode == HASH_TABLE_OP_UPDATE)
-
Stephan Bosch authored
-
- Mar 03, 2018
-
-
Stephan Bosch authored
Previously, this was only tested implicitly in the Sieve test suite. Now, it is tested explicitly, which allows for more flexibility in the testing scenario. It now extensively tests one scenario that used to fail.
-
Stephan Bosch authored
This caused an assert panic when the application or child stream did not skip all buffered data immediately. This was reproducible only when the message input stream consisted of a concatenation of smaller streams, which is used in LMTP to prepend a few headers. The panic was: Panic: file istream.c: line 329 (i_stream_read_memarea): assertion failed: ((size_t)ret+old_size == _stream->pos - _stream->skip)
-
Stephan Bosch authored
This is tested already in the assertion that precedes it.
-
Stephan Bosch authored
This allows using a seekable stream as mail directly.
-
Stephan Bosch authored
Needed for use in test suite.
-
- Mar 02, 2018
-
-
Stephan Bosch authored
Recent changes in Dovecot make slashes allowed in mailbox names when this flag is set. This flag is not useful for the test suite and it breaks one of the tests because slashes are no longer invalid when this flag is set.
-
Stephan Bosch authored
Before, the virtual mailbox name was not sanitized, which caused control characters to be displayed in log messages. Also, the mailbox name would be mentioned twice in the log message, once santized and once unsanitized.
-
Stephan Bosch authored
The header guard defines should be on top.
-
Stephan Bosch authored
-
- Mar 01, 2018
-
-
Stephan Bosch authored
Dovecot core doesn't have copyright notices in header files.
-
- Feb 15, 2018
-
- Feb 14, 2018
- Feb 13, 2018
-
-
Martti Rannanjärvi authored
The flag has been removed, and the setting is now the default.
-
- Feb 01, 2018
-
-
Stephan Bosch authored
plugins: imapsieve: Deal with messages being expunged concurrently by the time Sieve filter is to be applied. Before, this was an assertion that got triggered transiently during imaptest.
-
- Jan 10, 2018
-
-
Stephan Bosch authored
-
Stephan Bosch authored
The output buffer was on the data stack, which leads to big trouble when the buffer needs to grow in a deeper stack level.
-
- Jan 04, 2018
-
-
Stephan Bosch authored
-
Stephan Bosch authored
lib-sieve: imap4flags extension: Fix binary corruption occurring when setflag/addflag/removeflag flag-list is a variable. The original implementation checked the first operand for being a variable. Obviously, when the assigned flag string is just a variable, this doesn't work. This causes the flag list to be recognized erroneously as a variable flags string. Fixed the problem by explicitly emitting an omitted operand when there is no second argument for a setflag/addflag/removeflag. Because the new byte code format is incompatible, the extension version is bumped to 1.
-
- Jan 01, 2018
-
-
Stephan Bosch authored
-
- Dec 25, 2017
-
-
Stephan Bosch authored
This was caused by recent lib-smtp changes. There is no envelope in IMAPSieve context, so the rcpt parameters are NULL, causing the segfault.
-
- Dec 23, 2017
-
-
Stephan Bosch authored
The session ID is now already added by Dovecot.
-
- Dec 18, 2017
-
-
Stephan Bosch authored
lib-sieve: vacation extension: Use the correct address for "From:" outgoing header when original envelope recipient is found. Caused by earlier adjustments for Dovecot lib-smtp. Copy-paste problem detected by Coverity.
-
Stephan Bosch authored
It is a remnant from debugging.
-
- Dec 16, 2017
-
-
Stephan Bosch authored
Only calls that require space allocation are to be changed.
-
Stephan Bosch authored
-
- Dec 15, 2017
-
-
Stephan Bosch authored
It erroneously applied another layer of MIME header encoding. The problem is that existing Sieve scripts may rely on this behaviour; i.e. scripts may contain addresesses with literal UTF8 in the phrase part. Therefore, this change allows both behaviors.
-
Stephan Bosch authored
lib-sieve: util: rfc2822: Added rfc2822_header_write_address() which allows adding a header with one or more addresses. It applies UTF8 encoding only when the address string somehow contains 8-bit characters. Sieve addresses are supposed to have any UTF8 characters in the phase MIME-encoded, not literal 8-bit characters. However, this has been allowed from the beginning, so disabling the old behavior may break existing installations. This function allows supporting both options.
-
Stephan Bosch authored
Also dropped the single-letter identifier for most fields to prevent conflicts with mail user variables; these were undocumented anyway.
-
Stephan Bosch authored
A few were still omitted.
-
Stephan Bosch authored
Cleanup performed with the following semantic patch: @@ expression E; @@ - if (E != NULL) { - i_stream_unref(&E); - } + i_stream_unref(&E); @@ expression E; @@ - if (E != NULL) { - o_stream_unref(&E); - } + o_stream_unref(&E);
-
Stephan Bosch authored
Cleanup performed with the following semantic patch: @@ expression E; @@ - if (E != NULL) { - timeout_remove(&E); - } + timeout_remove(&E);
-
Stephan Bosch authored
Cleanup performed with the following semantic patch: @@ expression E; @@ - if (E != NULL) { - io_remove(&E); - } + io_remove(&E); @@ expression E; @@ - if (E != NULL) { - io_remove_closed(&E); - } + io_remove_closed(&E);
-
Stephan Bosch authored
Error handling is delayed, so that we need to explicitly handle the error in Sieve. This is now implemented by handling the error before executing the scritpt and placing the parsed address in struct sieve_script_env.
-
Stephan Bosch authored
lib-sieve: Added sieve_script_env_init() to initialize struct sieve_script_env from struct mail_user.
-
Stephan Bosch authored
Most code was put in an unnecessary else block.
-
- Dec 13, 2017
-
-
Timo Sirainen authored
If a home directory is given, it's assumed that it will be autocreated even if it doesn't initially exist. Earlier the autocreation may have been done by lib-storage as it created the mail root directory, but this no longer happens.
-