unexpunge functionality without delayed expunge enabled

Sachin Divekar ssd532 at gmail.com
Mon Apr 9 05:12:31 EDT 2012

Dear Bron,

Thanks for your input.
I was able to achieve it using following IMAP command.

uid store start-id:end-id -flags.silent (\deleted)

As you mentioned now I am exploring Perl's IMAPClient module
to do it recusively. I will post the solution after completion.

Just for more info: Meanwhile I had opened a question
on serverfault<http://serverfault.com/questions/377748/how-deleted-flag-can-be-unset-for-all-mails-in-cyrus-imapd-mailbox>where
I got some help too.

Sachin Divekar

On Mon, Apr 9, 2012 at 1:33 PM, Bron Gondwana <brong at fastmail.fm> wrote:

>   With IMAP:
>  tag STORE 1:* -flags \Deleted
>  You'll have to do it on every folder though... the kind of thing
> scripting is handy for!
>  Bron.
>  On Mon, Apr 9, 2012, at 07:32 AM, Sachin Divekar wrote:
> Dear guys,
>  I have a 5GB mailbox which I moved using imapsync. But somehow I
>  messed up with --delete option and end up with almost all the messages
>  having \Deleted flag set. I do not have delayed expunge enabled, so
>  I can not use unexpunge utility.  I am using cyrus-imapd v2.3.7.
>  Is there any way I can unset \Deleted flag for all the mails in the
> mailbox?
>  Thank you.
>  --
>  Regards,
>  Sachin Divekar
>  ----
>  Cyrus Home Page: http://www.cyrusimap.org/
>  List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> --
>  Bron Gondwana
>  brong at fastmail.fm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20120409/fb6c2c20/attachment.html 

More information about the Info-cyrus mailing list