Mercurial > dovecot > core-2.2
changeset 11814:8af852eb3277
lib-lda: If FROM envelope is known, tell about it to lib-storage when saving mail
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 14 Jul 2010 13:58:48 +0100 |
parents | 14ac329dcba1 |
children | 75441abd8d6f |
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 Wed Jul 14 13:58:21 2010 +0100 +++ b/src/lib-lda/mail-deliver.c Wed Jul 14 13:58:48 2010 +0100 @@ -203,6 +203,8 @@ kw = str_array_length(keywords) == 0 ? NULL : mailbox_keywords_create_valid(box, keywords); save_ctx = mailbox_save_alloc(t); + if (ctx->src_envelope_sender != NULL) + mailbox_save_set_from_envelope(save_ctx, ctx->src_envelope_sender); mailbox_save_set_flags(save_ctx, flags, kw); if (mailbox_copy(&save_ctx, ctx->src_mail) < 0) ret = -1;