forked from pool/fetchmail
- Made the helper script introduced in last change return exit status
5 on configuration errors instead of 1, which should make it a bit less confusing (bsc#979534) OBS-URL: https://build.opensuse.org/package/show/server:mail/fetchmail?expand=0&rev=68
This commit is contained in:
parent
bcebcfef5e
commit
60bce8b149
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 13 12:06:54 UTC 2016 - pjanouch@suse.de
|
||||||
|
|
||||||
|
- Made the helper script introduced in last change return exit status
|
||||||
|
5 on configuration errors instead of 1, which should make it a bit
|
||||||
|
less confusing (bsc#979534)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 8 12:20:27 UTC 2016 - pjanouch@suse.de
|
Fri Apr 8 12:20:27 UTC 2016 - pjanouch@suse.de
|
||||||
|
|
||||||
|
@ -3,13 +3,13 @@
|
|||||||
|
|
||||||
die() {
|
die() {
|
||||||
echo "$@" 1>&2
|
echo "$@" 1>&2
|
||||||
exit 1
|
exit 5 # closest thing among fetchmail's exit codes
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "$FETCHMAIL_POLLING_INTERVAL" | grep -Eq '^[0-9]+$' \
|
echo "$FETCHMAIL_POLLING_INTERVAL" | grep -Eq '^[0-9]+$' \
|
||||||
|| die 'invalid $FETCHMAIL_POLLING_INTERVAL setting'
|
|| die 'invalid $FETCHMAIL_POLLING_INTERVAL setting'
|
||||||
[ -r "$FETCHMAIL_RC_PATH" ] \
|
[ -r "$FETCHMAIL_RC_PATH" ] \
|
||||||
|| die '$FETCHMAIL_RC_PATH does not exist'
|
|| die '$FETCHMAIL_RC_PATH does not exist or cannot be read'
|
||||||
|
|
||||||
OPTS="-d $FETCHMAIL_POLLING_INTERVAL"
|
OPTS="-d $FETCHMAIL_POLLING_INTERVAL"
|
||||||
[ "$FETCHMAIL_FETCHALL" = "yes" ] && OPTS="$OPTS -a"
|
[ "$FETCHMAIL_FETCHALL" = "yes" ] && OPTS="$OPTS -a"
|
||||||
|
Loading…
Reference in New Issue
Block a user