[otrs-cvs] otrs/bin otrs.cleanup,1.5,1.6

CVS commits notifications of OTRS.org cvs-log at otrs.org
Wed Apr 30 07:39:47 GMT 2008


Comments:
Update of /home/cvs/otrs/bin
In directory lancelot:/tmp/cvs-serv13196

Modified Files:
	otrs.cleanup 
Log Message:
Rollback to version 1.3.

Author: mh

Index: otrs.cleanup
===================================================================
RCS file: /home/cvs/otrs/bin/otrs.cleanup,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** otrs.cleanup	1 Feb 2008 12:49:20 -0000	1.5
--- otrs.cleanup	30 Apr 2008 07:39:42 -0000	1.6
***************
*** 1,5 ****
  #!/bin/sh
  # otrs.cleanup - to cleanup not proccesed emails
! # Copyright (C) 2001-2006 OTRS AG, http://otrs.org/
  # --
  # $Id$
--- 1,5 ----
  #!/bin/sh
  # otrs.cleanup - to cleanup not proccesed emails
! # Copyright (C) 2001-2008 OTRS AG, http://otrs.org/
  # --
  # $Id$
***************
*** 21,40 ****
  
  #OTRS_ROOT=/usr/local/otrs
! OTRS_ROOT = $HOME OTRS_SPOOLDIR = $OTRS_ROOT / var / spool OTRS_POSTMASTER
!     = $OTRS_ROOT / bin / PostMaster . pl
  
!     if !test -e $OTRS_ROOT / RELEASE;
! then echo "$HOME is not OTRS root!" exit 1;
  fi
  
!     # check otrs spool dir
!     echo " Checking otrs spool dir... " for i in $OTRS_SPOOLDIR/ *; do
! 
      # process old emails
!     if echo $i | grep -v '*' >> /dev/ null;
! then echo -n "   Starting otrs PostMaster... ($i) "
!     if cat $i | $OTRS_POSTMASTER >> /dev/ null 2 > &1;
! then rm $i && echo "(remove email) done.";
! else echo "failed.";
! fi fi done echo " done."
  
--- 21,46 ----
  
  #OTRS_ROOT=/usr/local/otrs
! OTRS_ROOT=$HOME
! OTRS_SPOOLDIR=$OTRS_ROOT/var/spool
! OTRS_POSTMASTER=$OTRS_ROOT/bin/PostMaster.pl
  
! if ! test -e $OTRS_ROOT/RELEASE; then
!     echo "$HOME is not OTRS root!"
!     exit 1;
  fi
  
! # check otrs spool dir
! echo " Checking otrs spool dir... "
! for i in $OTRS_SPOOLDIR/* ; do
      # process old emails
!     if echo $i | grep -v '*' >> /dev/null; then
!         echo -n "   Starting otrs PostMaster... ($i) "
!         if cat $i | $OTRS_POSTMASTER >> /dev/null 2>&1; then
!             rm $i && echo "(remove email) done.";
!         else
!             echo "failed.";
!         fi
!     fi
! done
! echo " done."
  


More information about the cvs-log mailing list