Email filters for subject that include a hyphen

Post feedback about our hosted demo or your local install. Tell us what you love and/or what you’d like to see added in the future.
bspies
Posts: 2
Joined: Fri Sep 07, 2018 4:46 pm

Email filters for subject that include a hyphen

Postby bspies » Fri Sep 07, 2018 4:51 pm

I have been getting a lot of spam with subject lines that look like this "56- that message you sent" or "12- looking for someone" etc. That always have a number and hyphen. I tried to make a filter for "subject contains" "1-" and "2-" etc. but get an error that I did not include a subject, so I assume the hyphen is being treated like an operator or special character.

How would I escape the hyphen, so I can make a "Subject contains" filter that really looks for a hyphen?

Thank you,
Bruce


phoenix
Ambassador
Ambassador
Posts: 25763
Joined: Fri Sep 12, 2014 9:56 pm

Re: Email filters for subject that include a hyphen

Postby phoenix » Fri Sep 07, 2018 5:02 pm

One thing you should always include is your current ZCS version by posting the full output of the following command:

Code: Select all

zmcontrol -v
FWIW, I'm running the current ZCS 8.8.9 and I can enter a filter 'Subject contains' the following text: '56- some text' - there are no problems in entering the filter nor taking the required action.
Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
bspies
Posts: 2
Joined: Fri Sep 07, 2018 4:46 pm

Re: Email filters for subject that include a hyphen

Postby bspies » Fri Sep 07, 2018 7:48 pm

Hello - I must apologize. I tried this again after reading your reply and it is working.

I am just a user of zimbra, not an admin, so I cannot run that command to tell you what version this is.

since I am just a user I did not realize I was shooting myself in the foot. I clicked the + sign after each rule I was adding, so I did in fact have a blank rule. Bad habit I guess!

Bruce
phoenix
Ambassador
Ambassador
Posts: 25763
Joined: Fri Sep 12, 2014 9:56 pm

Re: Email filters for subject that include a hyphen

Postby phoenix » Sat Sep 08, 2018 5:12 am

I'm glad that it's working for you as well. :)
Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168

Return to “Users”

Who is online

Users browsing this forum: No registered users and 5 guests