* quick check the email address for quoted printable encoding, so the de-qp'er doesn...
authorWilfried Göesgens <willi@citadel.org>
Wed, 27 Aug 2008 23:01:15 +0000 (23:01 +0000)
committerWilfried Göesgens <willi@citadel.org>
Wed, 27 Aug 2008 23:01:15 +0000 (23:01 +0000)
citadel/internet_addressing.c

index 2cffe3d5b0c121d13f4c0cc2015a61e8cf8e6173..c96d722e12ccd2bf4b0b5be632a5d1297c0e1a13 100644 (file)
@@ -1010,7 +1010,8 @@ char *harvest_collected_addresses(struct CtdlMessage *msg) {
                if (msg->cm_fields[field] != NULL) {
                        for (j=0; j<num_tokens(msg->cm_fields[field], ','); ++j) {
                                extract_token(addr, msg->cm_fields[field], j, ',', sizeof addr);
-                               utf8ify_rfc822_string(addr);
+                               if (strstr(addr, "=?") != NULL)
+                                       utf8ify_rfc822_string(addr);
                                process_rfc822_addr(addr, user, node, name);
                                h = CtdlHostAlias(node);
                                if ( (h != hostalias_localhost) && (h != hostalias_directory) ) {