Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59362 - bug in vpopmail migration script from Maildir to .maildir
Summary: bug in vpopmail migration script from Maildir to .maildir
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-04 02:41 UTC by Sébastien ESTIENNE
Modified: 2004-10-19 10:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sébastien ESTIENNE 2004-08-04 02:41:36 UTC
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.
Comment 1 Andrej Kacian (RETIRED) gentoo-dev 2004-08-27 06:02:36 UTC
Maybe making the -maxdepth argument a configurable one?
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-08-27 09:42:24 UTC
do you think it would be safe to remove the maxdepth argument totally?
Comment 3 Andrej Kacian (RETIRED) gentoo-dev 2004-08-27 10:43:38 UTC
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
Comment 4 Sébastien ESTIENNE 2004-10-06 07:09:03 UTC
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.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-10-19 10:55:34 UTC
in cvs.