Skip to content

Commit

Permalink
lib-sieve: vnd.dovecot.report extension: Fixed creation of "Original-…
Browse files Browse the repository at this point in the history
…Mail-From" and original "Original-Rcpt-To" headers.

Recent changes relating to lib-smtp caused the paths to have duplicate '<' '>'.
  • Loading branch information
stephanbosch committed Dec 3, 2017
1 parent 4a9bc3d commit 3785300
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/lib-sieve/plugins/vnd.dovecot/report/cmd-report.c
Expand Up @@ -560,17 +560,12 @@ static int act_report_send
sender = sieve_message_get_sender(msgctx);
orig_recipient = sieve_message_get_orig_recipient(msgctx);

if (sender == NULL) {
rfc2822_header_write(msg,
"Original-Mail-From", "<>");
} else {
rfc2822_header_printf(msg,
"Original-Mail-From", "<%s>",
smtp_address_encode_path(sender));
}
rfc2822_header_write(msg,
"Original-Mail-From",
smtp_address_encode_path(sender));
if (orig_recipient != NULL) {
rfc2822_header_printf(msg,
"Original-Rcpt-To", "<%s>",
rfc2822_header_write(msg,
"Original-Rcpt-To",
smtp_address_encode_path(orig_recipient));
}
}
Expand Down

0 comments on commit 3785300

Please sign in to comment.