The "Delete it" command in GMail means "Move to trash" (if I recall correctly that was the exact wording some time ago), so it doesn't matter how many times you delete it, it will be kept in the trash.
And since the spirit of GMail was since the beginning "we offer you enough space so you don't need to delete any message", I don't think they are going to change it (also, it would make easier deleting emails permanently by mistake).
I forward all my mail from one of my Gmail accounts to another Gmail account, including what Gmail would normally filter to the Spam folder. I use the is:spam
query with the Never send it to Spam
rule in the inbound filter to allow spam to be forwarded. Do note the use of is
rather than in
.
Therefore, I imagine you could do the same with the following filter:
Contains is:spam (vigara OR cilais)
, Action Delete it
.
If you wanted to apply the rule universally, you could instead use:
Contains (is:spam OR -is:spam) (vigara OR cilais)
, Action Delete it
.
Note that Delete it
automatically implies Never send it to Spam
so you don't need to check the latter check box. In fact, if you check it, Gmail will uncheck it automatically. I am uncertain as to whether this will impact Gmail's internal spam detection heuristics, but I find that improbable.
Caveat: you cannot delete permanently from a filter rule (I imagine Google believes the risk too great and not worth the potential increase in support costs), so those messages would end up in your Trash and get purged after 30 days. This may still be a better situation to find yourself in, depending on your preferences and the volume of spam you get (which could now make it harder for you to recover messages deleted by mistakes).
If cluttering your Trash is not desirable, you could filter those messages to a temporary label instead, then use an Apps Script to periodically delete "old" filtered spam from that label. That would ensure that the top of your Trash is clutter-free. If the volume of spam you receive is limited however, deleting might work just fine.
Best Answer
The suggestion you quoted cannot be implemented: Apps Script can move threads to Trash or Spam but cannot delete them permanently. Source: a Google employee's answer on Stack Overflow:
If you wonder why this restriction is in place, imagine that you made an error coding your script (e.g., put
==
instead of!=
somewhere), causing it to delete all of your emails forever with no option for recovery.So, you have to either: