From: Wilfried Goesgens Date: Sun, 1 Sep 2013 09:39:20 +0000 (+0200) Subject: Fix generation of bounce messages; we would put the bounce body into the author field. X-Git-Tag: v9.01~265^2~1 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=d4b9b94a21cf240d1b9ca6d7ee3eac67159bcaf8;p=citadel.git Fix generation of bounce messages; we would put the bounce body into the author field. --- 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) {