Skip to content

Commit

Permalink
lib-sieve: Adjust to changes in Dovecot regarding the postmaster_addr…
Browse files Browse the repository at this point in the history
…ess setting.
  • Loading branch information
stephanbosch authored and cmouse committed Sep 20, 2018
1 parent a931fc3 commit 8b9cf57
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib-sieve/sieve.c
Expand Up @@ -546,13 +546,10 @@ int sieve_test
int sieve_script_env_init(struct sieve_script_env *senv,
struct mail_user *user, const char **error_r)
{
const struct mail_storage_settings *mail_set =
mail_user_set_get_storage_set(user);
const struct message_address *postmaster;
const char *error;

if ( !mail_storage_get_postmaster_address(mail_set,
&postmaster, &error) ) {
if (!mail_user_get_postmaster_address(user, &postmaster, &error)) {
*error_r = t_strdup_printf(
"Invalid postmaster_address: %s", error);
return -1;
Expand Down

0 comments on commit 8b9cf57

Please sign in to comment.