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>
Thu, 18 Aug 2011 10:46:13 +0000 (10:46 +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 b4815ccbc269c145f5a1ac5b9cf1edbc7acad6fd..77e743a6bfaac8131fd4df7d2500f05000c7e159 100644 (file)
@@ -681,6 +681,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);