Okay, here's a question for you: I am trying to setup a weekly-posted
survey. Now, I am trying to setup a recipe file that will process all
messages that have the subject line: "+survey"... And *ONLY* that
text... If the subject does have "+survey" and more extraneous junk, an
error file is to be sent. ( A little "info" file)...
I have been keeping up with some of the automated file return recipes,
but I am having a hard time trying to minimalize the coding. So far,
what I have is nothing. It doesn't even *LOOK* at the subject line...
It is to return $SURVEY/survey.auto-reply (which has its own header of:
From: Seth Anderson <sanderso(_at_)the-college(_dot_)iwctx(_dot_)edu>
Subj: Survey - Automated Reply
Then I don't want to call "sendmail", I want to call "pgpsendmail" which
will at least *TRY* to encrypt it before transmitting it. I thought a
recipe like this might work:
:0:
FROMWHOM='formail -xFrom:' # Which way do the apostrophes go?
| pgpsendmail << "To:" << $FROMWHOM << $SURVEY/survey.auto-reply
But, it still don't work... Any suggestions?
===*=-+-=*==*=-+-=*==*=-+-=*==*=-+-=*==*=-+-=*==*=-+-=*==*=-+-=*==*=-+-=*===
[======================================] Team OS/2 Member - OS/2 Warp 3.0
[ Seth Anderson, Assistant Technician ] X-Files * Star Trek * Sci-Fi
[ Academic Computing Center ]
[ The University of the Incarnate Word ]
sanderso(_at_)the-college(_dot_)iwctx(_dot_)edu
[ San Antonio, Texas ] http://www.iwctx.edu/~sanderso
[======================================]
----------------------------------------------------------------------------
2 rules to success in life: 1) Don't tell people everything you know.
===*=-+-=*==*=-+-=*==*=-+-=*==*=-+-=*==*=-+-=*==*=-+-=*==*=-+-=*==*=-+-=*===
# Procmail 3.11pre4 Mail Filter Configuration File
# Last updated on April 14, 1996 by Seth Anderson
PATH=/bin:/usr/bin:/usr/local/bin
MAILDIR=$HOME/INBOX/
SENDMAIL=$PGPPATH/pgpsendmail
LOCKFILE=$HOME/.lockmail
LOGFILE=$HOME/procmail.log
DEFAULT=$HOME/INBOX/P2P_Public
SHELL=/bin/csh
VERBOSE=off
#------------------------------------------------------------------------------
###############################################################################
#--------------------STUFF TO TAKE CARE OF LOCALLY-----------------------------
# Count all messages processed...
:0Whic: count_mail.lock
| mailcount
# All messages from myself to myself - Personal memos
:0:
* ^To:.*sanderso*
* ^From:.*sanderso*
Memos
# All messages to myself
:0:
* (^To|^From|^Cc:)(_dot_)*sanderso(_at_)the-college(_dot_)iwctx(_dot_)edu
P2P_Private
# Messages from the System Administrator
:0:
* ^From:.(*sysadm*|*root*)
Sysadm
# All messages from the Mailer Daemon
:0:
* ^FROM_MAILER
postm
#------------------------------------------------------------------------------
###############################################################################
#-------------------------PRIORITY MESSAGES------------------------------------
# All requests for the surveys...
* (^Subject:) +file +request +survey
:0:
WHOFROM=`formail -xFrom:`
LOG=$WHOFROM # Log the requestor
:0 ah
| processf << $SURVEY/survey.auto-reply
# From Ben...
:0:
* (^From:)(_dot_)*blugg(_at_)the-college(_dot_)iwctx(_dot_)edu*
Priority
# From Julia...
:0:
* (^From:)(_dot_)*camillij(_at_)elwha(_dot_)evergreen(_dot_)edu*
Priority
# From Ryan
:0:
* (^From:)(_dot_)*rvignon(_at_)the-college(_dot_)iwctx(_dot_)edu*
Priority
#------------------------------------------------------------------------------
###############################################################################
#----------------------------THE GENERAL "JUNK MAIL"---------------------------
# If someone wants to unsubscribe I don't want to know
:0:
* ^Subject:.*unsubscribe*
/dev/null
# From the generic "foo(_at_)bar" messages...
:0:
* ^From:(_dot_)*foo(_at_)bar*
/dev/null
# Anything larger than 10K to be deleted...
:0:
* > 10000
/dev/null
#------------------------------------------------------------------------------
###############################################################################
#---------------------------THE REAL MAILING LISTS-----------------------------
# CyberMind (Philosophy and Psychology of Cyberspace)
:0:
* (^To|^From|^Cc:)(_dot_)*cybermind(_at_)listserv(_dot_)aol(_dot_)com*
CyberMind
# CSPR's Cyber-Rights and Cyber-Journal
:0:
* (^To|^Cc:).*cyber*
CSPR
# Dartmouth's Computer Science Technical Reports
:0:
* (^To|^From|^Cc:)(_dot_)*cs-tr(_at_)dartmouth(_dot_)edu*
CSTR
# Engage - European Star Trek Club
:0:
* (^To|^From|^Cc:)(_dot_)*engage(_at_)lists(_dot_)pipex(_dot_)com*
StarTrek_Engage
# PINE Information
:0:
* (^To|^Cc:)(_dot_)*pine-info(_at_)cac(_dot_)washington(_dot_)edu
pine-info
# Procmail
:0:
* (^To|^Cc:).*procmail
procmail
# Quotable Quotations
:0:
* (^To|^From|^Cc:).*quotations*
Quotations
# REXX Compiler
:0:
* (^To|^From|^Cc:)(_dot_)*rexxcomp(_at_)list(_dot_)cren(_dot_)net*
REXX_Compiler
# Turbo C++
:0:
* (^To|^From|^Cc:)(_dot_)*tcplus-l(_at_)list(_dot_)cren(_dot_)net*
TurboCPlusPlus
# World Wide Web URL-Minder Robot Notices
:0:
* ^From:.*URL-master*
HTTP-URL-Minder
# UNIX
:0:
* (^To|^From|^Cc:)(_dot_)*i-unix(_at_)list(_dot_)cren(_dot_)net*
I-UNIX
# Vulcan (Star Trek) List
:0:
* (^To|^Cc:)(_dot_)*vulcan-l(_at_)shikahr(_dot_)com(_dot_)inter(_dot_)net*
Vulcan
# X-Files Mailing List
:0:
* (^To|^Cc:).*x-files*
XF_Primary
# X-Files Fan Fiction
:0:
* (^To|^Cc:)(_dot_)*owner-x-files-fanfic(_at_)chaos(_dot_)taylored(_dot_)com*
XF_Fanfic
# X-Files Romance/Relationship
:0:
* (^To:|^Cc:).*xf-romantics*
XF_Romantics
# Yanni Fans
:0:
* (^To|Cc:)(_dot_)*yannifans(_at_)teleport(_dot_)com*
Yanni_Fans
#------------------------------------------------------------------------------
###############################################################################
#------------------------------------------------------------------------------
# *IF* the program reaches this far and does not receive anything, the
# mail will be sent back to "DEFAULT"...