Created attachment 469504 [details, diff] patch for correcting vpopmail.ebuild The ebuild for vpopmail is not taking the global USE flag "maildir" into consideration. This has the consequence that mail repositories named "Maildir" no longer works, as all references to "Maildir" in the source are changed to ".maildir" by default. This breaks mail delivery if one has Maildir repositories, which for some reason seams to have been chosen as the standard in Gentoo. The current "solution" to this issue seems to be that a warning is given explaining that the maildelivery might break due to this, and then to supply a script to rename all the users repositories to ".maildir". This is a rather unelegant way to handle the problem; - supplying a script to help is fine, but if the user wants to keep the "Maildir" type of repositories, which clearly is the most logical when using virtual users (which vpopmail is ment for), then he/she is lost, as there are no way to make vpopmail use the "Maildir" repositories instead of the hidden ".maildir" repositories. The solution is quite simple; I have attached a small patchfile that will correct the ebuild for vpopmail to respect the "maildir" USE-flag. That way the user can simply merge vpopmail with USE (-maildir), then all the original Maildir repositories will still work, and mail delivery won't be broken. This has no other implications as the flag by default will be set in the ebuild. The patch has been tested on version 5.4.33 of vpopmail. I suggest that the changes are implemented in future releases of vpopmail.
The use-flag is about supporting maildir-style storage at all, something that vpopmail always does.