]> code.citadel.org Git - citadel.git/blobdiff - citadel/msgbase.c
* add reply-to: header to mails sent to room list recipients
[citadel.git] / citadel / msgbase.c
index af3b4c6f541e3d9ce04da8f969564133bc000bb4..fc81c03bdac3c7eff96328ed1f1636fc4bd67782 100644 (file)
@@ -309,10 +309,10 @@ void headers_euid(long msgnum, void *userdata)
                return;
        }
 
-       cprintf("%ld|%s|%ld\n", 
+       cprintf("%ld|%s|%s\n", 
                msgnum, 
                (msg->cm_fields['E'] ? msg->cm_fields['E'] : ""),
-               msg->cm_fields['T']);
+               (msg->cm_fields['T'] ? msg->cm_fields['T'] : "0"));
        CtdlFreeMessage(msg);
 }
 
@@ -1891,6 +1891,9 @@ void OutputRFC822MsgHeaders(
                                        }
                                }
                        }
+                       else if (i == 'K') {
+                               cprintf("Reply-To: <%s>%s", mptr, nl);
+                       }
                        if (mptr != mpptr)
                                free (mptr);
                }