blob: 5feb770d07989887d98fb588597cc4e5a5f3bb64 [file] [log] [blame]
#!/bin/bash
DIR=$1
for tlp in `ls -1 ${DIR}`; do
for list in `ls -1 ${DIR}/${tlp}/ | sort -g`; do
if [ "${tlp}" != "DONE" ]; then
TLPN=`echo ${tlp} | cut -d. -f1`
if [ "${TLPN}" != "${list}" ]; then
printf "\n*** Importing ${tlp}/${list} ***\n"
python3 ./import-mbox.py --source ${DIR}/${tlp}/${list} --ext "" --lid "<${list}.${tlp}>" --attachments;
fi
fi
done
done