Amanda-Users

Script to handle Hargrove's vacation responder

2004-05-04 02:46:07
Subject: Script to handle Hargrove's vacation responder
From: Justin Gombos <mindfuq AT zianet DOT com>
To: amanda-users AT amanda DOT org
Date: Tue, 4 May 2004 00:42:55 -0600
* whargrove AT dsc DOT net <whargrove AT dsc DOT net> [2004-05-03 19:35]:
> Hello, and thank you for your email. 
> 
> I shall be out of the office until Tuesday 4th May. Should your email 
> require urgent attention, the please contact David Adams or email 
> da AT dsc DOT net. 

For dealing with Mr. Hargrove's vacation responder, I wrote the
following script, which might be useful to procmail users:

  SPC="[ ]"

  FROM_="(From${SPC}|(Old-|X-)?(Resent-)?\
  (From|Reply-To|Sender):)(.*\<)?"
  
  SENDER_ML=(owner-(\
  amanda-users@amanda\.org\
  |cryptography@metzdowd\.com\
  |cypherpunks@[a-z0-9.-]*(lne|ssz).com\
  |mixminion-dev@freehaven\.net))
  
  # Sender is owner mailing lists
  #
  :0 
  *$ ^Sender:.*$SENDER_ML
  * ^Sender:.*owner-\/[a-z0-9.-]+@
  * MATCH ?? ()\/[^@]+
  {
    LISTNAME=$MATCH
  
    :0 :
    *$ ^${FROM_}.*whargrove@dsc\.net
    * B ?? out.of.the.office
    /dev/null
  
    :0 E:
    mailing_lists/${LISTNAME}
  }

I have not tested this with the Hargrove auto-responder code, but the
code is pretty simple and should work.