Fix generation of bounce messages; we would put the bounce body into the author field.
authorWilfried Goesgens <dothebart@citadel.org>
Sun, 1 Sep 2013 09:39:20 +0000 (11:39 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 1 Sep 2013 09:39:20 +0000 (11:39 +0200)
citadel/modules/smtp/smtp_util.c

index 292bebf4782b321c3f9010f4dde487dacfecc232..1c57d99595de161d134ac06a597fe3b5ac30c4a5 100644 (file)
@@ -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) {