26 lines
1.6 KiB
Plaintext
26 lines
1.6 KiB
Plaintext
$OpenBSD: patch-bin_processing_messages_alert,v 1.2 2009/05/23 21:30:05 sthen Exp $
|
|
--- bin/processing_messages_alert.orig Wed May 6 15:39:02 2009
|
|
+++ bin/processing_messages_alert Wed May 13 19:32:41 2009
|
|
@@ -1,16 +1,16 @@
|
|
#!/bin/sh
|
|
|
|
-noticesfrom=`perl -n -e 'print "$_" if chomp && s/^\s*Notices\s*From\s*=\s*([^\s#]+).*$/$1/' /opt/MailScanner/etc/MailScanner.conf`
|
|
-localpostmaster=`perl -n -e 'print "$_" if chomp && s/^\s*Local\s*Postmaster\s*=\s*([^\s#]+).*$/$1/' /opt/MailScanner/etc/MailScanner.conf`
|
|
-noticesto=`perl -n -e 'print "$_" if chomp && s/^\s*Notices\s*To\s*=\s*([^\s#]+).*$/$1/' /opt/MailScanner/etc/MailScanner.conf`
|
|
-sendnotices=`perl -n -e 'print "$_" if chomp && s/^\s*Send\s*Notices\s*=\s*([^\s#]+).*$/$1/' /opt/MailScanner/etc/MailScanner.conf`
|
|
+noticesfrom=`perl -n -e 'print "$_" if chomp && s/^\s*Notices\s*From\s*=\s*([^\s#]+).*$/$1/' %SYSCONFDIR%/MailScanner/MailScanner.conf`
|
|
+localpostmaster=`perl -n -e 'print "$_" if chomp && s/^\s*Local\s*Postmaster\s*=\s*([^\s#]+).*$/$1/' %SYSCONFDIR%/MailScanner/MailScanner.conf`
|
|
+noticesto=`perl -n -e 'print "$_" if chomp && s/^\s*Notices\s*To\s*=\s*([^\s#]+).*$/$1/' %SYSCONFDIR%/MailScanner/MailScanner.conf`
|
|
+sendnotices=`perl -n -e 'print "$_" if chomp && s/^\s*Send\s*Notices\s*=\s*([^\s#]+).*$/$1/' %SYSCONFDIR%/MailScanner/MailScanner.conf`
|
|
|
|
# Only do this if they want to send notices to postmaster at all
|
|
if [ "x$sendnotices" = "xno" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
-alert=`/opt/MailScanner/bin/MailScanner --processing`
|
|
+alert=`%PREFIX%/bin/MailScanner --processing`
|
|
|
|
if [ \! "x$alert" = "x" ]; then
|
|
#cat <<EOM
|