changeset 18810:d79006a6ea65

lib-lda: Added %{to_envelope} to deliver_log_format
author Timo Sirainen <tss@iki.fi>
date Tue, 02 Jun 2015 23:43:05 +0300
parents 357fe95d487f
children 8c5fce2ff6f8
files src/lib-lda/mail-deliver.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-lda/mail-deliver.c	Tue Jun 02 23:35:23 2015 +0300
+++ b/src/lib-lda/mail-deliver.c	Tue Jun 02 23:43:05 2015 +0300
@@ -67,6 +67,7 @@
 		{ 'w', NULL, "vsize" },
 		{ '\0', NULL, "delivery_time" },
 		{ '\0', NULL, "session_time" },
+		{ '\0', NULL, "to_envelope" },
 		{ '\0', NULL, NULL }
 	};
 	struct var_expand_table *tab;
@@ -97,6 +98,7 @@
 		mail_deliver_log_var_expand_table_update_times(ctx, tab);
 		tab[8].value = dec2str(ctx->session_time_msecs);
 	}
+	tab[9].value = ctx->dest_addr;
 	return tab;
 }