dovecot-1.3: deliver: When forwarding messages, use -f parameter...

dovecot at dovecot.org dovecot at dovecot.org
Mon Apr 20 19:21:52 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.3/rev/a3e0524e8af8
changeset: 9139:a3e0524e8af8
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Apr 20 12:21:48 2009 -0400
description:
deliver: When forwarding messages, use -f parameter as return path and fallback to normalized Return-Path: header.

diffstat:

1 file changed, 1 insertion(+), 3 deletions(-)
src/lib-lda/mail-send.c |    4 +---

diffs (14 lines):

diff -r 3c8e0e094139 -r a3e0524e8af8 src/lib-lda/mail-send.c
--- a/src/lib-lda/mail-send.c	Fri Apr 17 17:58:28 2009 -0400
+++ b/src/lib-lda/mail-send.c	Mon Apr 20 12:21:48 2009 -0400
@@ -178,9 +178,7 @@ int mail_send_forward(struct mail_delive
     if (mail_get_stream(ctx->src_mail, NULL, NULL, &input) < 0)
 	    return -1;
 
-    if (mail_get_first_header(ctx->src_mail, "Return-Path", &return_path) <= 0)
-	    return_path = "";
-
+    return_path = mail_deliver_get_return_address(ctx);
     if (mailbox_get_settings(ctx->src_mail->box)->mail_debug) {
 	    i_info("Sending a forward to <%s> with return path <%s>",
 		   forwardto, return_path);


More information about the dovecot-cvs mailing list