From b29e683dde99e99da4bb7a1a00f8e60d3dd58f08 Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan.bosch@dovecot.fi>
Date: Mon, 2 Oct 2017 00:13:28 +0200
Subject: [PATCH] lib-sieve: store action: Improve
 sieve_act_store_get_storage_error().

Use mailbox_get_last_error() shorthand rather than
mail_storage_get_last_error().
---
 src/lib-sieve/sieve-actions.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/lib-sieve/sieve-actions.c b/src/lib-sieve/sieve-actions.c
index a1006a9b3..a827ceaec 100644
--- a/src/lib-sieve/sieve-actions.c
+++ b/src/lib-sieve/sieve-actions.c
@@ -352,8 +352,7 @@ void sieve_act_store_get_storage_error(const struct sieve_action_exec_env *aenv,
 	pool_t pool = sieve_result_pool(aenv->result);
 
 	trans->error = p_strdup(pool,
-		mail_storage_get_last_error(mailbox_get_storage(trans->box),
-		&trans->error_code));
+		mailbox_get_last_error(trans->box, &trans->error_code));
 }
 
 static bool
-- 
GitLab