Dominique Leuenberger 2018-03-04 11:51:30 +00:00 committed by Git OBS Bridge
commit 68b3882ae8
4 changed files with 19 additions and 10 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Mar 2 19:32:52 UTC 2018 - pmonrealgonzalez@suse.com
- By default, the status messages are redirected to
/var/log/fetchmail. The syslog option or no-logging are also
available. (bsc#1033081)
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Nov 23 13:43:10 UTC 2017 - rbrown@suse.com Thu Nov 23 13:43:10 UTC 2017 - rbrown@suse.com

View File

@ -17,10 +17,12 @@ OPTS="-d $FETCHMAIL_POLLING_INTERVAL"
[ "`whoami`" = "fetchmail" -a -z "$FETCHMAILHOME" ] && \ [ "`whoami`" = "fetchmail" -a -z "$FETCHMAILHOME" ] && \
export FETCHMAILHOME=/var/lib/fetchmail export FETCHMAILHOME=/var/lib/fetchmail
if [ "$FETCHMAIL_DEFAULT_LOGFILE" = "syslog" -o "$FETCHMAIL_DEFAULT_LOGFILE" = "" ]; then if [ ! -z "$FETCHMAIL_DEFAULT_LOGFILE" ] ; then
OPTS="$OPTS --syslog" if [ "$FETCHMAIL_DEFAULT_LOGFILE" = "syslog" ]; then
else OPTS="$OPTS --syslog"
OPTS="$OPTS -L $FETCHMAIL_DEFAULT_LOGFILE" else
OPTS="$OPTS -L $FETCHMAIL_DEFAULT_LOGFILE"
fi
fi fi
exec /usr/bin/fetchmail $OPTS $FETCHMAIL_EXPERT_OPTIONS \ exec /usr/bin/fetchmail $OPTS $FETCHMAIL_EXPERT_OPTIONS \

View File

@ -1,7 +1,7 @@
# #
# spec file for package fetchmail # spec file for package fetchmail
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed

View File

@ -28,14 +28,14 @@ FETCHMAIL_FETCHALL="yes"
FETCHMAIL_SILENT="no" FETCHMAIL_SILENT="no"
## Type: string ## Type: string
## Default: "syslog" ## Default: "/var/log/fetchmail"
## Options: "syslog", "/path/to/file" ## Options: "/path/to/file", "syslog", ""
# #
# This option allows to redirect status messages in daemon mode to the # This option allows to redirect status messages in daemon mode to the
# specified log file or syslog(3) system if available. If empty, status # specified log file or syslog(3) system if available. If empty, omits
# messages are redirected syslog. # any logging options.
# #
FETCHMAIL_DEFAULT_LOGFILE="syslog" FETCHMAIL_DEFAULT_LOGFILE="/var/log/fetchmail"
## Type: string ## Type: string
## Default: "" ## Default: ""