- Dec 16, 2017
-
-
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.
-
- Dec 12, 2017
-
-
Timo Sirainen authored
The parent event doesn't really matter here, so NULL is used.
-
- Dec 11, 2017
-
-
Stephan Bosch authored
This follows the following commits in Dovecot: lib-storage: Moved connection information in struct mail_user into separate struct mail_user_connection_data. lib-storage: mail-user: Added more information about the client connection.
-
- Dec 03, 2017
-
-
Stephan Bosch authored
lib-sieve: vnd.dovecot.report extension: Fixed creation of "Original-Mail-From" and original "Original-Rcpt-To" headers. Recent changes relating to lib-smtp caused the paths to have duplicate '<' '>'.
-
Stephan Bosch authored
-
- Nov 26, 2017
-
-
Stephan Bosch authored
Now using struct smtp_address rather than sieve_address. In some cases, struct message_address may prove to be more suitable, but this is the best fit for now. Adjusted to the renamed fields in struct mail_deliver_context.
-
Stephan Bosch authored
It doesn't serve a purpose either, since parsing "from" address from URI is not allowed for notify mailto.
-
- Nov 25, 2017
-
-
Stephan Bosch authored
lib-sieve: store action: Avoid NULL pointer dereference during rollback when transaction context is somehow unassigned. This change matches the other transaction stages. This will not currently happen though. Reported by Coverity.
-
Stephan Bosch authored
Otherwise the error status is overwritten. Problem found by Coverity.
-
Stephan Bosch authored
Used the stream's cur_header field, rather than the local variable. Problem found by Coverity.
-
Stephan Bosch authored
The merge_from_parent() function may not actually read anything, potentially leaving the stream buffer unassigned. Problem found by Coverity.
-
- Nov 23, 2017
-
-
Stephan Bosch authored
-
- Nov 18, 2017
-
-
Stephan Bosch authored
This makes the implementation easier to understand and amend once Dovecot APIs changes. This implicitly makes the implementation suitable for the new istream snapshot handling.
-
Stephan Bosch authored
-
Stephan Bosch authored
-
Stephan Bosch authored
Added assertions on subtractions. Restructured the code for clarity. Added comments.
-
Stephan Bosch authored
-
Stephan Bosch authored
Ported Dovecot's istream-jsonstr for ManageSieve syntax.
-
Stephan Bosch authored
-
- Nov 06, 2017
-
-
Stephan Bosch authored
-
- Nov 03, 2017
-
-
Timo Sirainen authored
-
- Nov 02, 2017
-
-
Timo Sirainen authored
Call master_login_init() before master_service_init_finish(), which frees all the data stack done in initialization. This didn't normally cause any visible problems, because data stack wasn't currently being used in a way that the strings were invalidated. However, it was causing failures if --enable-devel-checks was used.
-
Martti Rannanjärvi authored
-
- Nov 01, 2017
-
-
Aki Tuomi authored
-
- Oct 30, 2017
-
-
Timo Sirainen authored
-
Timo Sirainen authored
-
- Oct 29, 2017
-
-
Aki Tuomi authored
-
- Oct 23, 2017
-
-
Aki Tuomi authored
-
- Oct 22, 2017
-
-
Stephan Bosch authored
Patch by Andreas Schulze.
-