changeset 26336:131063b7e7cd

lib-lda: Replace i_warning() with e_warning().
author Stephan Bosch <stephan.bosch@dovecot.fi>
date Sun, 10 Mar 2019 13:08:34 +0100
parents 33c1b2bd705a
children ecb3e9b5a18b
files src/lib-lda/mail-deliver.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-lda/mail-deliver.c	Sun Mar 10 13:01:08 2019 +0100
+++ b/src/lib-lda/mail-deliver.c	Sun Mar 10 13:08:34 2019 +0100
@@ -484,8 +484,9 @@
 				       "Return-Path", &path)) <= 0) {
 		if (ret < 0) {
 			struct mailbox *box = ctx->src_mail->box;
-			i_warning("Failed read return-path header: %s",
-				mailbox_get_last_internal_error(box, NULL));
+			e_warning(ctx->event,
+				  "Failed read return-path header: %s",
+				  mailbox_get_last_internal_error(box, NULL));
 		}
 		return NULL;
 	}
@@ -493,7 +494,7 @@
 				       (const unsigned char *)path,
 				       strlen(path), &addr) < 0 ||
 	    smtp_address_create_from_msg(ctx->pool, addr, &smtp_addr) < 0) {
-		i_warning("Failed to parse return-path header");
+		e_warning(ctx->event, "Failed to parse return-path header");
 		return NULL;
 	}
 	return smtp_addr;