[svlug] mbox 2 maildir & recipe procmail
Ivan Sergio Borgonovo
mail at webthatworks.it
Tue Jul 25 02:20:38 PDT 2006
On Mon, 24 Jul 2006 20:41:48 +0200
Ivan Sergio Borgonovo <mail at webthatworks.it> wrote:
> I've to convert procmail recipes from mbox(uw) to maildir(courier)
> I already transferred the old ones with mb2md and I'd like the new
> email will go in the equivalent structure.
I've done some experiment and if I understood how procmail recipes work correctly I'm a bit disappointed by the design of procmail [*].
I used mb2md to transfer my mboxes to maildirs and I bet there is another tool to do the opposite.
Format are well defined and they are used for a specific need.
If the above passage has some sense there shouldn't be ambiguity in interpreting the same recipe for mbox or maildir if a "switch" was provided: from that point consider all recipes targets as maildir|mbox
Furthermore it is unreasonable to make mbox live in the same directory structure of mailboxes, so there is no need for a switch inside every single recipe.
Writing a "recipe" translator is more complicated, since you can use complicated scripting inside a procmail recipe to build up the target string. Furthermore this will have a global result, while having a switch may let mbox recipes coexist with maildir recipes.
Am I missing something?
Is there an equally widespread, heavily tested tool as procmail that doesn't have this pitfall?
[*] I may guess there are historical reasons for this and that as what I remember Maildir support was retrofitted.
Nevertheless having to throw all users procmail recipes is a bit annoying. Fortunately I've just 3 users and 2 can't write their procmail recipes.
More information about the svlug
mailing list