Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

When choosing to delete an email via a filter, the message is sent to the trash. Is there any way to permanently delete it instead?

I tried deleting it twice with two different filters (the logic is that if you delete a message in the trash, it should be permanently deleted), and, although the second filter is run, it doesn't permanently delete the message.

share|improve this question
add comment

2 Answers 2

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).

share|improve this answer
    
The reason I thought deleting it twice might work is because the delete button is replaced by "delete forever" when viewing the trash, so essentially you are deleting the message twice. Additionally, in Gmail's IMAP actions, it states that to delete a message permanently, you delete it when it is in the trash. I was hoping that Google implemented the same thing via filters, and so I tried deleting the message twice. –  Senseful Nov 7 '10 at 3:26
    
I think that your reasoning was good from the point of view of the web/IMAP interface, but for filters I think that make more sense the "move to trash" approach (or maybe is just my biased developer point of view). –  Alberto Martinez Nov 8 '10 at 0:44
    
Storage isn't the problem. In my case it's IMAP mail clients that are the problem. If a flood of 10,000 emails has come in that have all been moved to the Trash folder by my filter, the IMAP client will still read the headers of every one of them. It creates unnecessary network and CPU use. –  sobri Jul 4 at 13:52
add comment

I have managed to get halfway to making automatic permanent deletion possible. There's a python script on this post which logs into your account and deletes all emails in the Trash folder. Can keep polling for new emails in the Trash folder and delete them if found.

It might be useful for you

share|improve this answer
    
the link is broken –  Jader Dias Mar 20 '12 at 2:07
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.