dovecot-2.0: lib-lda: If FROM envelope is known, tell about it t...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jul 14 15:58:52 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/8af852eb3277
changeset: 11814:8af852eb3277
user: Timo Sirainen <tss at iki.fi>
date: Wed Jul 14 13:58:48 2010 +0100
description:
lib-lda: If FROM envelope is known, tell about it to lib-storage when saving mail
diffstat:
src/lib-lda/mail-deliver.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r 14ac329dcba1 -r 8af852eb3277 src/lib-lda/mail-deliver.c
--- 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;
More information about the dovecot-cvs
mailing list