mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 03:27:03 +02:00
@ -3,7 +3,6 @@
|
||||
|
||||
import argparse
|
||||
import imaplib
|
||||
import pprint
|
||||
import re
|
||||
|
||||
opts = {}
|
||||
|
@ -1,10 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -o nounset
|
||||
set -o errexit
|
||||
set -o pipefail
|
||||
|
||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
|
||||
PRIORITY=mail.error
|
||||
TMPFILE=/var/run/piler/import.tmp
|
||||
|
||||
if [ -f $TMPFILE ]; then exit 1; fi
|
||||
if [[ -f $TMPFILE ]]; then exit 1; fi
|
||||
|
||||
date > $TMPFILE
|
||||
|
||||
@ -17,5 +20,3 @@ trap finish EXIT
|
||||
cd /var/piler/imap
|
||||
|
||||
pilerimport -G >/dev/null
|
||||
|
||||
|
||||
|
@ -1,11 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -o nounset
|
||||
set -o errexit
|
||||
set -o pipefail
|
||||
|
||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/libexec/piler:/usr/local/libexec/piler
|
||||
PRIORITY=mail.error
|
||||
TMPFILE=/var/run/piler/purge.tmp
|
||||
PURGE_BEACON=/var/piler/stat/purge
|
||||
|
||||
if [ -f $TMPFILE ]; then exit 1; fi
|
||||
if [[ -f $TMPFILE ]]; then exit 1; fi
|
||||
|
||||
date > $TMPFILE
|
||||
|
||||
|
Reference in New Issue
Block a user