nsbin/nsmail2maildir
Nico Schottelius d3c6e29902 Initial commit
2006-07-20 09:54:37 +02:00

25 lines
676 B
Bash
Executable file

#!/bin/sh
#
# Nico Schottelius <nico@schottelius.(net|org)>
# Date: 22-Sep-2003
# Last Modified: 26-Sep-2003
#
# some code stolen from mbox2maildir by Bruce Guenter <bruceg@em.ca>,
# which based on mbox2maildir by Russell Nelson <nelson@qmail.org>
# first this was a shellscript, now it's a perlscript
# this is where all the mails goto
MAILDIR_BASE=/home/user/nico/Maildir/nsmail2
for spool in $@; do
i=0
MAILDIR=$MAILDIR_BASE/`basename $spool`-$i;
MAIL=$spool
mkdir -p $MAILDIR/{new,cur,tmp}
if [ -f "$MAIL" ]; then
echo Settings: $MAILDIR - $MAIL
# mbox2maildir-test "$MAIL" "$MAILDIR"
#read -p "converted $spool"
fi
i=$[$i+1]
done