]> 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 72f53627897ec4c03e367199323fe330236fc273..fc81c03bdac3c7eff96328ed1f1636fc4bd67782 100644 (file)
@@ -309,7 +309,10 @@ void headers_euid(long msgnum, void *userdata)
                return;
        }
 
-       cprintf("%ld|%s|\n", msgnum, (msg->cm_fields['E'] ? msg->cm_fields['E'] : ""));
+       cprintf("%ld|%s|%s\n", 
+               msgnum, 
+               (msg->cm_fields['E'] ? msg->cm_fields['E'] : ""),
+               (msg->cm_fields['T'] ? msg->cm_fields['T'] : "0"));
        CtdlFreeMessage(msg);
 }
 
@@ -1888,6 +1891,9 @@ void OutputRFC822MsgHeaders(
                                        }
                                }
                        }
+                       else if (i == 'K') {
+                               cprintf("Reply-To: <%s>%s", mptr, nl);
+                       }
                        if (mptr != mpptr)
                                free (mptr);
                }
@@ -2055,7 +2061,7 @@ int CtdlOutputPreLoadedMsg(
                int flags               /* should the bessage be exported clean? */
 ) {
        int i;
-       char *mptr;
+       char *mptr = NULL;
        const char *nl; /* newline string */
        struct ma_info ma;