From: Tim R. <ti...@ph...> - 2011-03-05 08:19:16
|
Hi, I'm new to Archivemail and I want to run Archiemail daily with a cronjob. I have it working but wondered if there is a better way to handle checking multiple accounts. I have over 150 poboxes I need to check. What I'm doing now is running this file via crontab. Is there a better way? # Phuket /usr/local/bin/archivemail --delete --days=30 --include-flagged --preserve-unread /usr/boxes/gordonfe/asia-pacific-superyachts.com/pobox1 sleep 60 /usr/local/bin/archivemail --delete --days=30 --include-flagged --preserve-unread /usr/boxes/gordonfe/asia-pacific-superyachts.com/pobox2 sleep 60 /usr/local/bin/archivemail --delete --days=30 --include-flagged --preserve-unread /usr/boxes/gordonfe/asia-pacific-superyachts.com/pobox3 sleep 60 /usr/local/bin/archivemail --delete --days=30 --include-flagged --preserve-unread /usr/boxes/gordonfe/asia-pacific-superyachts.com/pobox4 sleep 60 /usr/local/bin/archivemail --delete --days=30 --include-flagged --preserve-unread /usr/boxes/gordonfe/asia-pacific-superyachts.com/pobox5 sleep 60 /usr/local/bin/archivemail --delete --days=30 --include-flagged --preserve-unread /usr/boxes/gordonfe/asia-pacific-superyachts.com/pobox7 sleep 60 # Bali /usr/local/bin/archivemail --delete --days=30 --include-flagged --preserve-unread /usr/boxes/gordonfe/asia-pacific-superyachts.com/pobox14 sleep 60 /usr/local/bin/archivemail --delete --days=30 --include-flagged --preserve-unread /usr/boxes/gordonfe/asia-pacific-superyachts.com/pobox15 sleep 60 /usr/local/bin/archivemail --delete --days=30 --include-flagged --preserve-unread /usr/boxes/gordonfe/asia-pacific-superyachts.com/pobox16 sleep 60 /usr/local/bin/archivemail --delete --days=30 --include-flagged --preserve-unread /usr/boxes/gordonfe/asia-pacific-superyachts.com/pobox17 sleep 60 /usr/local/bin/archivemail --delete --days=30 --include-flagged --preserve-unread /usr/boxes/gordonfe/asia-pacific-superyachts.com/pobox18 sleep 60 /usr/local/bin/archivemail --delete --days=30 --include-flagged --preserve-unread /usr/boxes/gordonfe/asia-pacific-superyachts.com/pobox19 sleep 60 /usr/local/bin/archivemail --delete --days=30 --include-flagged --preserve-unread /usr/boxes/gordonfe/asia-pacific-superyachts.com/pobox20 -- Tim Rice Computer Stuff Phuket, Thailand http://www.phuket-mail.com http://www.computerstuff.net |