On 11/12/2014 04:15 μμ, Arnt Gulbrandsen wrote:
With zsh (pardon the advocacy) this should do it:

#!/bin/zsh
cd /home/george/Maildir
for a in **(/) ; do aoximport /users/gp/frommaildir/$a $a ; done

With ash or bash you have to do something like "for a in $(find . -type d); do ...", which works too as long as the directory names aren't too fancy.

Arnt

Thanks

I also found in the mean time, that you can use imapsync, to only
sync folder structure (option --justfolders) , but it's nice to know this also!


Reply via email to