procmail
[Top] [All Lists]

persistent lock files that never go away

2004-07-21 19:37:44
I've been having a strange problem where a lock file would be created,
and never destroyed.  This has been a very difficult problem to track
down.  My collection of recipes is quite large, but the lock files
that persist are all on the same recipe.  It looks long, but it's just
many large variables and one recipe:

  SPC="[ ]"

  FROM_="(From${SPC}|(Old-|X-)?(Resent-)?\
         (From|Reply-To|Sender):)(.*\<)?"

  YEAR=`formail -x "Date: " | sed -e 's/.* \([12]\{,1\}[90]\{,1\}[0-9][0-9]\) 
.*/\1/' \
                                  -e 's/^[^0][0-9]$/19&/g' \
                                  -e 's/^[0][0-9]$/20&/g'`

  PUB_TYPE=(information|\\<paper\\>|\\<article|web(\ )?(site|page)|faq)
  
  READERSHIP=(\
  (informative|your)(\ )?$PUB_TYPE|\
  very\ informative|\
  bladder\ cop|\
  erowid|\
  Nightbyrd)
  
  STREET_DRUG=(\
  \\<alcohol|\
  \\<cannabis\\>|\
  \\<coke\\>|\
  \\<crack\\>|\
  \\<heroin\\>|\
  \\<marijuana\\>|\
  \\<nicotine\\>|\
  \\<narcotic(s)?\\>|\
  \\<opium\\>|\
  \\<steroid(s)?\\>|\
  \\<testosterone\\>|\
  \\<thc\\>|\
  amine\\>|\
  phine\\>)
  
  WEIRD_DRUG=(\\<Nolvadex\\>|\
  \\<NorAndrostenedione\\>|\
  \\<NorAndrostenediol\\>)
  
  ASK_FOR_HELP=(\
  help\ me\ please|\
  please\ (answer|help)|\
  quick\ question|\
  some\ questions|\
  need\ help)
  
  TEST_SYN=(\\<test(s|ing|.ble)?\\>|\\<screen|\\<exam\\>|quiz)
  
  TEST_TYPE=(\
  drug|\
  \\<urine|\
  \\<skin\\>|\
  piss|\
  blood|\
  saliva|\
  \\<hair\\>|\
  \\<pee\\>|\
  \\<patch\\>|\
  follicle|\
  pre.?employment)
  
  ONLY_TEST_TYPE=(\\<emit\\>|\\<gc.?ms\\>|immunoassay)
  
  BEHAVIOR=(smok|exercise)
  
  RESULT=(\\<pass(ed|ing|able)?\\>|\\<fail|positive|negative)
  
  COUNTER_PRODUCTS=(\
  naturally\ klean|\
  \\<klear\\>|\
  aspirin\\>|\
  creatine|\
  vitamin|\
  carbo\ drink|\
  detoxify|\
  ready\ clean|\
  test\ kit|\
  \\<cert(o|a)\\>|\
  \\<smithkline\\>)
  
  COUNTER_BEHAVIOR=(\
  \\<clean|\
  dilute|\
  drink[a-z]*\ (some|more)?\\<water\\>)
  
  PHYSIOLOGY=(\
  blood|\
  \\<urine|\
  metabol)
  
  LAW=(\\<lawyer\\>|\\<probation\\>)
  
  DRUG_PHRASE=(\
  (\\<testing|detection)(\ )?(\\<time(s)?|period)|\
  clear\ test|\
  medication|\
  my\ (system|situation)|\
  poppy\ seed|\
  substance|\
  take\ a\ test|\
  prison)
  
  DRUG_PHRASE_01=(\
  need\ help|\
  \\<sample\\>|\
  question|\
  (a|the)\ test|\
  a\ job|\
  thank\ you|\
  thanks|\
  violate)
  
  # drug tests
  #
  :0 HB:
  *  H ?? ! ^TO_uswest.net
  *$ H ?? ! (^TO_|^${FROM_})$ALL_FRIENDS
  *  H ?? ! socal-rave
  *  H ?? ! \<scr\>
  *  ! \<ex.?500\>
  *  -20^0
  *$ H ?? 15^0 ^TO_$MYSELF_CSUN
  *  H ?? 50^0 ^TO_urine-test(_at_)calyx(_dot_)net
  *$ 10^0 $DRUG_PHRASE
  *$ 10^0 $ASK_FOR_HELP
  *$ 10^0 $BEHAVIOR
  *$ 10^0 $COUNTER_BEHAVIOR
  *$ 10^0 $COUNTER_PRODUCTS
  *$ 10^0 $STREET_DRUG
  *$ 10^0 $WEIRD_DRUG
  *$ 10^0 $ONLY_TEST_TYPE
  *$ 10^0 $PHYSIOLOGY
  *$ 10^0 $READERSHIP
  *$ 10^0 $RESULT
  *$ 10^0 $TEST_TYPE($SPC)?$TEST_SYN
  in/drug_testing_${YEAR:-0000}

Does anyone see why a lock file would be created indefinately?  

(BTW- in case anyone is wondering, I'm the drug testing faq author, so
this recipe is designed to detect emails asking me how to beat drug
tests).

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail