Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 615012 - net-mail/vpopmail - Make sed on Maildir optional
Summary: net-mail/vpopmail - Make sed on Maildir optional
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Rolf Eike Beer
Depends on:
Reported: 2017-04-08 18:46 UTC by guffegris
Modified: 2019-09-21 17:32 UTC (History)
2 users (show)

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

patch for correcting vpopmail.ebuild (vpopmail-add-maildir-USEvar.patch,937 bytes, patch)
2017-04-08 18:46 UTC, guffegris
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description guffegris 2017-04-08 18:46:48 UTC
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.
Comment 1 Rolf Eike Beer archtester 2019-09-21 17:32:44 UTC
The use-flag is about supporting maildir-style storage at all, something that vpopmail always does.