msg_debug_protocol ("read rcpt header, value: %V", hv);
}
- else {
- msg_debug_protocol ("wrong header: %V", hn);
+ IF_HEADER (RAW_DATA_HEADER) {
+ srch.begin = "yes";
+ srch.len = 3;
+
+ msg_debug_protocol ("read raw data header, value: %V", hv);
+
+ if (rspamd_ftok_casecmp (hv_tok, &srch) == 0) {
+ task->flags &= ~RSPAMD_TASK_FLAG_MIME;
+ msg_debug_protocol ("disable mime parsing");
+ }
}
break;
case 'i':
#define FILENAME_HEADER "Filename"
#define CERT_ISSUER_HEADER "TLS-Cert-Issuer"
#define MAILER_HEADER "Mailer"
+#define RAW_DATA_HEADER "Raw"
#endif //RSPAMD_PROTOCOL_INTERNAL_H