Procmail
Procmail is used to handle logbook-related mails (and something else ?). Executable is in /opt/sfw/bin, in the past we were using our installation from /usr/local/src/procmail-3.22, not sure which one in use now ..
Config file is /home/clasmail/.procmailrc:
# .procmailrc # redirects logbook email acknowledgements to logbook_mail_ack,logbook_mail_resolve # E.Wolin, 24-aug-99 ###PATH=$HOME/bin:/usr/bin:/apps/bin:/bin:/apps/java/bin/java:/usr/local/release/current/bin:/usr/local/clas/release/current/source/coda/common/scripts MAILDIR=$HOME/Mail #you'd better make sure it exists LOGFILE=$MAILDIR/from #recommended SHELL = /bin/csh # process logbook email # store all messages :0 c all_received # unacknowledged :0 * ^Subject: Re:.*Unacknowledged { :0 Bw * ^[ ]*[Aa]cknowledge | /bin/csh -c logbook_mail_ack :0 EBw * ^[ ]*<[ ]*[Aa]cknowledge | /bin/csh -c logbook_mail_ack :0 EBw * ^[ ]*[Rr]esolve | /bin/csh -c logbook_mail_resolve :0 EBw * ^[ ]*<[ ]*[Rr]esolve | /bin/csh -c logbook_mail_resolve :0 e logbook_mail_failure } # unresolved :0 * ^Subject: Re:.*Unresolved { :0 Bw * ^[ ]*[Aa]cknowledge | /bin/csh -c logbook_mail_ack :0 EBw * ^[ ]*<[ ]*[Aa]cknowledge | /bin/csh -c logbook_mail_ack :0 EBw * ^[ ]*[Rr]esolve | /bin/csh -c logbook_mail_resolve :0 EBw * ^[ ]*<[ ]*[Rr]esolve | /bin/csh -c logbook_mail_resolve :0 e logbook_mail_failure } # unknown mail :0 unknown