chiark / gitweb /
New script to add up numbers on stdin.
[bin.git] / mbox2maildir
1 #! /bin/sh -e
2
3 if [ -z "$1" ]; then
4     echo "Usage: $0 <mbox>" >&2
5     exit 1
6 fi
7
8 maildirmake "$1.maildir"
9 perfect-maildir "$1.maildir" < "$1"
10 mv "$1" "$1.mbox"
11 mv "$1.maildir" "$1"
12
13 echo "$1 converted to maildir and preserved as $1.mbox"
14
15 exit 0