]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-lda: Added %{to_envelope} to deliver_log_format
authorTimo Sirainen <tss@iki.fi>
Tue, 2 Jun 2015 20:43:05 +0000 (23:43 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 2 Jun 2015 20:43:05 +0000 (23:43 +0300)
src/lib-lda/mail-deliver.c

index 9bf48d2795583a91b084856926c90851c7120662..a609c0493c86a55eb30524f0612bea2aa64a4a82 100644 (file)
@@ -67,6 +67,7 @@ mail_deliver_get_log_var_expand_table_full(struct mail_deliver_context *ctx,
                { '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_get_log_var_expand_table_full(struct mail_deliver_context *ctx,
                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;
 }