projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5266014
)
SMTP-Bouncing: don't put message body on wrong Citadel-Message-field.
author
Wilfried Goesgens
<dothebart@citadel.org>
Sat, 15 Jan 2011 13:05:21 +0000
(14:05 +0100)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Sat, 15 Jan 2011 13:05:21 +0000
(14:05 +0100)
citadel/modules/smtp/serv_smtp.c
patch
|
blob
|
history
diff --git
a/citadel/modules/smtp/serv_smtp.c
b/citadel/modules/smtp/serv_smtp.c
index ce680d1e4c5b54091f680ebd44763ac2ad6bbe67..48e302424f916023b60d4d7084d6821e4d4f22e7 100644
(file)
--- 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) {