The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features

See the new Forums

Filter for annoying Spam with old date

Forums » Opera for Windows/Mac/Linux » Opera mail, chat and news

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

3. November 2011, 17:04:53

Wallnut

Posts: 11

Filter for annoying Spam with old date

I have recently been receiving (1-3 per day) emails that are tagged as spam but with the send date rigged to sometime in August. This means that I cant scroll down that far to find it in my 'received' view so Have to got to the spam folder to delete it. Is there a filter I can apply to screen out spam before a certain date.

3. November 2011, 17:26:29

burnout426

Posts: 13202

Originally posted by Wallnut:

This means that I cant scroll down that far to find it in my 'received' view



Why? "All Messages/Received" shows all messages, including spam if you have "view -> show -> show spam" check. So, you should be able to find the spam message in there by scrolling down as far as you need to. Or, are you using "view -> period" where it's not set to "forever"?

You can also uncheck "show spam" for "All Messages/Unread" and "All Messages/Received" so that spam messages are only shown in "All Messages/Spam" (if you're using Opera's spam filter and the messages are actually tagged as spam).

Originally posted by Wallnut:

Is there a filter I can apply to screen out spam before a certain date.



Not really. You can setup a rule that searches any header in a message for a string that matches a certain date format and value. But, that's about it.

3. November 2011, 21:14:22

Wallnut

Posts: 11

Thanks burnout426 for the quick reply. When I say "can't" scroll down what I really mean is "don't want to". Spam is an annoyamce. Having to go search for it as well is even more annoying. I think that from what you are telling me I should be able to program a filter to filter out any spam with a 'sent' date of August or 08. At first these pre-dated spams arrived infrequently, now more spammers seem to be adopting the same tactic, so it is time to do something about it.

Thanks again for the advice.

4. November 2011, 04:14:59 (edited)

burnout426

Posts: 13202

Originally posted by Wallnut:

what I really mean is "don't want to".



O.K.

You can create a label with a rule of:

Any header matches regexp date:.*\baug\b

That will find all messages with a date header that has the word "aug" in it, which will match all messages in august.

If you want to filter existing messages instead of just new messages, you'll have to uncheck "apply only to new messages" for the label.

If you want the rule to only match messages in "All Messages/Spam", set "match messages in" to that.

If you want to hide messages that go into this label, set the label to "hide these messages from other views".

If you want it to only match august 8th messages, you'd have to use 'and' and create another rule like:

Any header matches regexp date:.*\s08\s

Note that it will also match NNTP-Posting-Date: headers too. Putting a ^ before "date:" should fix that, but it doesn't. So, you'll just have to work around it somehow.

Also, if you edit a label's rules, in its list, try right-clicking on a message and choosing "remove from view". That should retrigger the rules if just changing the rules doesn't.

4. November 2011, 11:26:53

burnout426

Posts: 13202

These rules:
-----
((^date)|(\r\ndate)):.*\baug\b
AND
((^date)|(\r\ndate)):.*\s08\s
-----

or these rules:

-----
^date:.*\baug\b
AND
^date:.*\s08\s
OR
\r\ndate:.*\baug\b
AND
\r\ndate:.*\s08\s
-----

might work better.

Forums » Opera for Windows/Mac/Linux » Opera mail, chat and news