From 9aa58a7f15c0339103edfed73c54bfe15a24957d Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sat, 15 Jan 2011 14:05:21 +0100 Subject: [PATCH] SMTP-Bouncing: don't put message body on wrong Citadel-Message-field. --- citadel/modules/smtp/serv_smtp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/citadel/modules/smtp/serv_smtp.c b/citadel/modules/smtp/serv_smtp.c index ce680d1e4..48e302424 100644 --- a/citadel/modules/smtp/serv_smtp.c +++ b/citadel/modules/smtp/serv_smtp.c @@ -1485,9 +1485,7 @@ void smtp_do_bounce(char *instr) { 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); + bmsg->cm_fields['M'] = SmashStrBuf(&BounceMB); /* Deliver the bounce if there's anything worth mentioning */ CtdlLogPrintf(CTDL_DEBUG, "num_bounces = %d\n", num_bounces); if (num_bounces > 0) { -- 2.30.2