patch-bin_processing_messages_alert 2.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. $OpenBSD: patch-bin_processing_messages_alert,v 1.3 2009/10/07 20:59:29 sthen Exp $
  2. --- bin/processing_messages_alert.orig Tue Sep 8 10:21:09 2009
  3. +++ bin/processing_messages_alert Sat Sep 26 13:05:52 2009
  4. @@ -1,13 +1,13 @@
  5. #!/bin/sh
  6. -#noticesfrom=`perl -n -e 'print "$_" if chomp && s/^\s*Notices\s*From\s*=\s*([^\s#]+).*$/$1/' /opt/MailScanner/etc/MailScanner.conf`
  7. -#localpostmaster=`perl -n -e 'print "$_" if chomp && s/^\s*Local\s*Postmaster\s*=\s*([^\s#]+).*$/$1/' /opt/MailScanner/etc/MailScanner.conf`
  8. -#noticesto=`perl -n -e 'print "$_" if chomp && s/^\s*Notices\s*To\s*=\s*([^\s#]+).*$/$1/' /opt/MailScanner/etc/MailScanner.conf`
  9. -#sendnotices=`perl -n -e 'print "$_" if chomp && s/^\s*Send\s*Notices\s*=\s*([^\s#]+).*$/$1/' /opt/MailScanner/etc/MailScanner.conf`
  10. -noticesfrom=`/opt/MailScanner/bin/Quick.Peek noticesfrom /opt/MailScanner/etc/MailScanner.conf`
  11. -localpostmaster=`/opt/MailScanner/bin/Quick.Peek localpostmaster /opt/MailScanner/etc/MailScanner.conf`
  12. -noticesto=`/opt/MailScanner/bin/Quick.Peek noticesto /opt/MailScanner/etc/MailScanner.conf`
  13. -sendnotices=`/opt/MailScanner/bin/Quick.Peek sendnotices /opt/MailScanner/etc/MailScanner.conf`
  14. +#noticesfrom=`perl -n -e 'print "$_" if chomp && s/^\s*Notices\s*From\s*=\s*([^\s#]+).*$/$1/' %SYSCONFDIR%/MailScanner/MailScanner.conf`
  15. +#localpostmaster=`perl -n -e 'print "$_" if chomp && s/^\s*Local\s*Postmaster\s*=\s*([^\s#]+).*$/$1/' %SYSCONFDIR%/MailScanner/MailScanner.conf`
  16. +#noticesto=`perl -n -e 'print "$_" if chomp && s/^\s*Notices\s*To\s*=\s*([^\s#]+).*$/$1/' %SYSCONFDIR%/MailScanner/MailScanner.conf`
  17. +#sendnotices=`perl -n -e 'print "$_" if chomp && s/^\s*Send\s*Notices\s*=\s*([^\s#]+).*$/$1/' %SYSCONFDIR%/MailScanner/MailScanner.conf`
  18. +noticesfrom=`%PREFIX%/bin/Quick.Peek noticesfrom %SYSCONFDIR%/MailScanner/MailScanner.conf`
  19. +localpostmaster=`%PREFIX%/bin/Quick.Peek localpostmaster %SYSCONFDIR%/MailScanner/MailScanner.conf`
  20. +noticesto=`%PREFIX%/bin/Quick.Peek noticesto %SYSCONFDIR%/MailScanner/MailScanner.conf`
  21. +sendnotices=`%PREFIX%/bin/Quick.Peek sendnotices %SYSCONFDIR%/MailScanner/MailScanner.conf`
  22. # Only do this if they want to send notices to postmaster at all
  23. if [ "x$sendnotices" = "xno" ]; then
  24. @@ -21,7 +21,7 @@ if ( echo $noticesto | grep -q '^/' ); then
  25. noticesto=$localpostmaster
  26. fi
  27. -alert=`/opt/MailScanner/bin/MailScanner --processing`
  28. +alert=`%PREFIX%/bin/MailScanner --processing`
  29. if [ \! "x$alert" = "x" ]; then
  30. #cat <<EOM