]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Return MimeCharset as we work with emails...
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 23 Dec 2020 18:24:18 +0000 (18:24 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 23 Dec 2020 18:24:18 +0000 (18:24 +0000)
contrib/google-ced/ced_c.cc
contrib/google-ced/ced_c.h

index d8f70a87ee6bb51727f3e6c45f30f9d311655c05..51671218bb1e5dba8735d08b0c986e3e5618906a 100644 (file)
@@ -18,7 +18,7 @@ const char* ced_encoding_detect(const char* text, int text_length,
                        ct, ignore_7bit_mail_encodings, bytes_consumed, is_reliable);
 
        if (IsValidEncoding(enc)) {
-               return EncodingName(enc);
+               return MimeEncodingName(enc);
        }
 
        return nullptr;
index c8cb16a2a6dd811962391bc754a5f49c544d598f..c086f0ca10e498e03d0a8237e68cc883a1d36b47 100644 (file)
@@ -14,6 +14,9 @@ enum CedTextCorpusType {
        CED_NUM_CORPA,
 };
 
+/*
+ * XXX: Rspamd addition: it actually returns Mime format of the encoding
+ */
 const char *ced_encoding_detect (const char *text, int text_length,
                                                                 const char *url_hint,
                                                                 const char *http_charset_hint,