Topic: Blacklisting Subject Keywords - Encoding Problem?
==== Required information ====
- iRedMail version: 0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: CentOS 6.5
- Related log if you're reporting an issue:
====
Good Morning,
I'm not sure if you can help as I don't believe this is an iRedMail problem specifically.
I have a "blacklist-subject.cf" file in /etc/mail/spamassassin that I use to blacklist keywords in subject lines like "auto insurance" or "free flowers", however I'm running into a problem with some subjects that come through and it appears to be an encoding problem that I'm not sure how to handle.
I have a subject from an email in my outlook inbox that reads "Еat Тhіs, Νever Dіet Αgaіn" however if I copy/paste this subject into my blacklist-subject.cf file it pastes as this: .at .h.s, .ever D.et .ga.n.
If I manually type "blacklist_subject Eat This, Never Diet Again" any future emails with the original subject that I tried to paste will not be flagged, unless I test by manually typing it in the subject line just as I did in the cf file. This looks like an encoding conflict, how can I compensate for this? It seems to be a common problem with spam email subjects I'm getting.
Thank you!
Luke
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.