SMTP-Bouncing: don't put message body on wrong Citadel-Message-field.
authorWilfried Goesgens <dothebart@citadel.org>
Sat, 15 Jan 2011 13:05:21 +0000 (14:05 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Sat, 15 Jan 2011 13:05:21 +0000 (14:05 +0100)
citadel/modules/smtp/serv_smtp.c

index ce680d1e4c5b54091f680ebd44763ac2ad6bbe67..48e302424f916023b60d4d7084d6821e4d4f22e7 100644 (file)
@@ -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) {