vpopmail-Maildir-dotmaildir-fix.sh has a bug when there is more than 50 (approx) users in a domain. Because when this happen vpopmail create new users in subfolders (eg /var/vpopmail/domains/mydomain.com/0/user) and the vpopmail migration script doesn't handle this because it only process the first level in the domain directory. i think the problem is there in the script: find ${SEARCHPATH} -name "${SEARCHNAME}" -maxdepth 3 -mindepth 3 -type d it's the maxdepth value, assuming that it's always 3 is wrong when the number of users increase.
Maybe making the -maxdepth argument a configurable one?
do you think it would be safe to remove the maxdepth argument totally?
I'm not so familiar with vpopmail, but I'd prefer to have maxdepth set to some sane value (but high enough to get rid of reported behavior), so we could prevent infinite loops in case of symlinks. On the other hand, if the code doesn't follow symlinks, I guess it would be ok to remove -maxdepth
I noticed that this bug is not yet fixed. And it's really annoying for people using it, because it works partially (ie if you don't have too much user) I think that we could set maxdepth to 4 or 5 it would work many thousand of users or more. we could even remove maxdepth because there is absolutely no reason to have symlinks in the vpopmail domain hierarchy. And i think that find has the appriopriate option to not follow symlinks. But anyway it should be fixed because it's really annoying.
in cvs.