[svlug] mbox 2 maildir & recipe procmail

Ivan Sergio Borgonovo mail at webthatworks.it
Mon Jul 24 11:41:48 PDT 2006


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 haven't understood clearly and I'm wondering how to set up a testing environment easily (creating "correct" text files containing emails to pass to procmail).

I had something like that:

#mbox

MAILDIR=${HOME}"/Mail"
IN=${MAILDIR}"/IN"
DEFAULT=${IN}"/other.IN."${YEAR}-${MONTH}
ML=${MAILDIR}"/ML"
MLFUFFA=${ML}"/FUFFA"

that went into
~/Mail/ML
~/Mail/ML/FUFFA
~/Mail/other.IN.2006-05


That is easy to manage for sub-dir composition.
I'd like to convert it into something that should look like

#Maildir

MAILDIR=${HOME}"/Maildir/"
IN=${MAILDIR}".IN/"
DEFAULT=${IN}"/.other_IN_"${YEAR}-${MONTH}"/"
ML=${MAILDIR}".ML/"
MLFUFFA=${ML}".FUFFA/"

that should end in:
~/Maildir/.IN/new
~/Maildir/.ML/new
~/Maildir/.ML.FUFFA/new
~/Maildir/.other_IN_2006-05/new

even if
MLFUFFA=~/Maildir/.ML/.FUFFA/
and not
MLFUFFA=~/Maildir/.ML.FUFFA/

???

Is it correct?

thx





More information about the svlug mailing list