@aseigo said in How to use kolab undelete-mailbox CLI command:

Was that the exact command you used? .. or did you retype it for the comment?

... because I see a space between "Calendar/" and Peronal .. and your user's login is "username"? .. and it's a multi-domain setup with the target domain being "domain.tld"?

I'm going to assume this was not the actual command you used .. so -> did you confirm that the deleted folder exists on disk with the name you provided it?

Yes, I removed personal information and replaced it by generic values such as username, domain, etc. Sorry, I should have mentioned that. And yes, it's a multi-domain setup. The space between ...Calender/ Personal... came from formatting the post.

I run the command against the output of the list mailboxes command
kolab lm
So I guess the folder should be there. If I enter an invalid mailbox the I get the error below.

Traceback (most recent call last): File "/sbin/kolab", line 39, in <module> kolab = Cli() File "/usr/lib/python2.7/site-packages/pykolab/cli/__init__.py", line 73, in __init__ commands.execute('_'.join(to_execute)) File "/usr/lib/python2.7/site-packages/pykolab/cli/commands.py", line 138, in execute commands[cmd_name]['function'](conf.cli_args, kw) File "/usr/lib/python2.7/site-packages/pykolab/cli/cmd_undelete_mailbox.py", line 57, in execute imap.undelete_mailfolder(undelete_folder, target_folder) File "/usr/lib/python2.7/site-packages/pykolab/imap/__init__.py", line 1184, in undelete_mailfolder self.imap.undelete_mailfolder(*args, **kw) File "/usr/lib/python2.7/site-packages/pykolab/imap/cyrus.py", line 416, in undelete_mailfolder undelete_folders = self._find_deleted_folder(mailfolder) File "/usr/lib/python2.7/site-packages/pykolab/imap/cyrus.py", line 586, in _find_deleted_folder 'mailfolder': self.separator.join(mbox['path_parts']), TypeError: 'NoneType' object has no attribute '__getitem__'