#!/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 | |