Reportcourier-filter-perlprerm

Status: Accepted

Colis script


begin
  true ;
  mode := arg 1 ;
  case_9520357 := mode ;
  if (test [ case_9520357; '='; 'remove' ] ||
       test [ case_9520357; '='; 'upgrade' ])
  then begin
         echo [ 'Stopping courier-filter-perl mail filter ...' ] ;
         filterctl [ 'stop'; 'courier-filter-perl' ]
    end
  fi
end

Original Shell script

#!/bin/sh

set -e

mode=$1

case "$mode" in
  remove | upgrade )
    echo "Stopping courier-filter-perl mail filter ..."
    filterctl stop courier-filter-perl
    ;;
esac