3 # Usage: import_mbox.sh servername username password < mbox
10 # Read the mbox from stdin and split it into separate files in the directory.
11 formail -s sh -c "tail +2 > $d/\$FILENO"
13 # Now run import_mail.sh on groups of files.
14 ls -1 $d | sed -e "s|^|$d/|" | xargs ./import_mail.sh "$@"
16 # Remove the mail directory.