Louis-David Mitterrand wrote:
Thank you David and others who suggested a solution. I suspected
avoiding sed or tr for that task would entail too much complexity but I
wanted to make sure I didn't miss anything.
If you really wanted to do it within procmail,
:0 # use absolute path, or relative path from $MAILDIR
* FOLDER ?? [.]
{ INCLUDERC=foo/.dottodashrc }
and in .dottodashrc
:0
* FOLDER ?? ^^\/[^.]+
{ LEFT=$MATCH }
:0
* $ FOLDER ?? ^^$\LEFT\.\/.+
{ FOLDER=$LEFT-$MATCH }
:0
* FOLDER ?? [.]
{ SWITCHRC = $_ }
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail