Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use a Microsoft Exchange 2010 email server and a Mozilla Thunderbird client. One day I selected a large part of my inbox and mistakenly pressed a keyboard shortcut which (I presume) marked the messages for deletion. The messages, of course, gets deleted. Now, the funny part begins: if I restore the deleted messages using "Recover deleted messages" feature in Outlook, the messages get back to the inbox BUT, as soon as I start my Thunderbird client, it deletes the messages again.

Now, as stated by this kb (http://kb.mozillazine.org/Deleting_messages_in_IMAP_accounts) the messages should have a "deleted" flag, so: How can I clear that flag?

share|improve this question
up vote 3 down vote accepted

If you have access to Unix/Linux computer, you could use an utility like imapfilter. This is a useful utility you can configure with LUA config file. You can select your message using different kinds of filters, and then, do actions like moving messages, add/remove flags, etc.

You just have to install it and create a config file (IMAP account and rules). You can see an example for configuring accounts there. Then, you can filter for messages marked as deleted and unmark them.

messagesMarkedAsDeleted = youraccount.INBOX:is_deleted()
messagesMarkedAsDeleted:unmark_deleted()

Finally, you can launch the program:

imapfilter -c /path/to/config.lua

I discovered this utility on this blog few weeks ago.

Hope this helped.

share|improve this answer
    
thank you very much, it worked like a charm! Matteo – Delta Jan 9 '13 at 12:59
    
It worked perfectly for me too! Many thanks!!! – lucaferrario Apr 7 '14 at 22:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .