OK I've updated my copy of the script to properly handle both underscores and spaces:

https://github.com/jaymzh/recover-cyrus/blob/main/recover_cyrus_user.sh

Hope that helps others!

On 7/1/23 18:32, Phil Dibowitz wrote:
Aha, I figured out the issue.

Your script does:

   ln -f ${OLDPATH//_/\\ }/\* $NEWPATH

But the substitution there is incorrect - the folders with `_` in them, actually have that in their file path.

On 7/1/23 15:24, Phil Dibowitz wrote:
Kai,

I noticed that no emails in nested folders were recovered. Is that expected?




--
Phil Dibowitz                             [email protected]
Open Source software and tech docs        Insanity Palace of Metallica
http://www.phildev.net/                   http://www.ipom.com/

"Be who you are and say what you feel, because those who mind don't
 matter and those who matter don't mind."
 - Dr. Seuss

Reply via email to