From d4b9b94a21cf240d1b9ca6d7ee3eac67159bcaf8 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sun, 1 Sep 2013 11:39:20 +0200 Subject: [PATCH] Fix generation of bounce messages; we would put the bounce body into the author field. --- citadel/modules/smtp/smtp_util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/citadel/modules/smtp/smtp_util.c b/citadel/modules/smtp/smtp_util.c index 292bebf47..1c57d9959 100644 --- a/citadel/modules/smtp/smtp_util.c +++ b/citadel/modules/smtp/smtp_util.c @@ -286,9 +286,9 @@ void smtp_do_bounce(char *instr, StrBuf *OMsgTxt) StrBufAppendBufPlain(BounceMB, HKEY("--"), 0); StrBufAppendBuf(BounceMB, boundary, 0); StrBufAppendBufPlain(BounceMB, HKEY("--\r\n"), 0); - if (bmsg->cm_fields['A'] != NULL) - free(bmsg->cm_fields['A']); - bmsg->cm_fields['A'] = SmashStrBuf(&BounceMB); + if (bmsg->cm_fields['M'] != NULL) + free(bmsg->cm_fields['M']); + bmsg->cm_fields['M'] = SmashStrBuf(&BounceMB); /* Deliver the bounce if there's anything worth mentioning */ syslog(LOG_DEBUG, "num_bounces = %d\n", num_bounces); if (num_bounces > 0) { -- 2.30.2