* Daniel Tröder <[email protected]>:

> Just guessing…
> 
> The signature of the command is:
> doveadm [-Dv] import [-S socket_path] [-s] -u user source_location
> dest_parent search_query
> 
> You supply "" as dest_parent which I guess could mean ".", and that may
> be "/root" when run as root. Try "INBOX" or "restore_folder" and see if
> the error vanishes.

With "INBOX", nothing changes on the output (although the script
doesn't restore properly anymore)

With ".", I get: 

doveadm([email protected]): Error: chdir(/root/) failed: Permission denied 
(euid=1001(theid) egid=1001(theid) missing +x perm: /root, dir owned by 0:0 
mode=0700)
doveadm([email protected]): Error: chdir(/root) failed: Permission denied
doveadm([email protected]): Error: Couldn't create mailbox ./INBOX: 
Invalid mailbox name: Contains '.' part

I still think this is an obscure bug :)
-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein

Reply via email to