parse reply-to header into its permanent database field
authorWilfried Goesgens <dothebart@citadel.org>
Thu, 18 Aug 2011 10:27:54 +0000 (10:27 +0000)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 4 Sep 2011 21:48:50 +0000 (21:48 +0000)
it seems as if some mailers (Open exchange for example) add Reply-To headers; if we don't parse it when receiving it,
our list service adds another header; thus parse it into the database of headers.

citadel/internet_addressing.c

index 05f07860d4a6c339177a763adf0d6942062cd370..116e57e249b3900c9e697400e47dccab76040960 100644 (file)
@@ -679,6 +679,14 @@ int convert_field(struct CtdlMessage *msg, const char *beg, const char *end) {
                processed = 1;
        }
 
+       else if (!strcasecmp(key, "Reply-To")) {
+               if (msg->cm_fields['K'] != NULL) {
+                       free(msg->cm_fields['K']);
+               }
+               msg->cm_fields['K'] = strndup(value, valuelen);
+               processed = 1;
+       }
+
        else if (!strcasecmp(key, "In-reply-to")) {
                if (msg->cm_fields['W'] == NULL) {              /* References: supersedes In-reply-to: */
                        msg->cm_fields['W'] = strndup(value, valuelen);