From: Wilfried Goesgens Date: Thu, 18 Aug 2011 10:27:54 +0000 (+0000) Subject: parse reply-to header into its permanent database field X-Git-Tag: v7.87~10 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=554835a81b316c36e024ad056b5c80f0d1f6af3f parse reply-to header into its permanent database field 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. --- diff --git a/citadel/internet_addressing.c b/citadel/internet_addressing.c index b4815ccbc..77e743a6b 100644 --- a/citadel/internet_addressing.c +++ b/citadel/internet_addressing.c @@ -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);