Valentin & Albert,
I do not believe 'unexpunge' is correct in this case.  'unexpunge' is for unexpunging messages which have been deleted & expunged. It's got nothing to do with recovering deleted mailboxes.  For more on this, please see this page, which describes the proper terms & meanings:

   http://www.cyrusimap.org/imap/reference/admin/sop/deleting.html

As explained on that page, Albert's approach is the correct one. However, I have no idea why he's running into the problems.

Cheers,
    -nic



On 1/25/23 13:31, Valentin Laskov wrote:
Hi,

you should use unexpunge , not rename .

http://www.cyrusimap.org/imap/reference/manpages/systemcommands/unexpunge.html

Regards!
Valentin


На 25.01.2023 в 09:15, Albert Shih написа:
Hi everyone,

I got a very weird problem. Someone delete his sent mailbox so I try to
rename it.

I'm connect though cyradm and try to rename it here a copy/paste of the
terminal (only the username was redacted)

Check the mailbox name

   127.0.0.1> lam DELETED.user.username.Sent.63CF5710
   username lrswipkxtecdan

then try to rename it

   127.0.0.1> renamemailbox DELETED.user.username.Sent.63CF5710 user.username.sent-202301240457
   renamemailbox: Invalid mailbox name

maybe it's the target name ?

   127.0.0.1> cm user.username.sent-202301240457
   127.0.0.1> lam user.username.sent-202301240457
   username lrswipkxtecdan

no so try

   127.0.0.1> renamemailbox DELETED.user.username.Sent.63CF5710 user.username.sent-202301240457
   renamemailbox: Mailbox already exists

ok that's normal, now remove

   127.0.0.1> sam user.username.sent-202301240457 cyradm lrswipkxtecdan
   127.0.0.1> dm user.username.sent-202301240457

and

   127.0.0.1> rename DELETED.user.username.Sent.63CF5710 user.username.sent-202301240457

WTF ?

Any idea what I'm doing wrong ?

Regards

--
Nic [email protected]
https://www.nicbernstein.com

------------------------------------------
Cyrus: Info
Permalink: 
https://cyrus.topicbox.com/groups/info/T76eb8ba50e23943f-M7b9b6b1c8ba68a28a0519744
Delivery options: https://cyrus.topicbox.com/groups/info/subscription

Reply via email to