piler/util/import.sh

15 lines
233 B
Bash
Raw Normal View History

2013-08-23 13:46:27 +02:00
#!/bin/bash
set -o nounset
set -o errexit
set -o pipefail
export PATH=$PATH:/usr/libexec/piler:/usr/local/libexec/piler
2013-08-23 13:46:27 +02:00
pushd /var/piler/imap
2013-08-23 13:46:27 +02:00
exec 200 > "/tmp/${0}-lock" || exit 1
flock 200 || exit 1
imapfetch.py -i
flock -u 200