Author: coar
Date: Tue Mar 9 15:54:27 2010
New Revision: 920938
URL: http://svn.apache.org/viewvc?rev=920938&view=rev
Log:
This should be ready; mark the required perms in the comments
Modified:
labs/pulse/analysis/demail.sh
Modified: labs/pulse/analysis/demail.sh
URL:
http://svn.apache.org/viewvc/labs/pulse/analysis/demail.sh?rev=920938&r1=920937&r2=920938&view=diff
==============================================================================
--- labs/pulse/analysis/demail.sh (original)
+++ labs/pulse/analysis/demail.sh Tue Mar 9 15:54:27 2010
@@ -1,8 +1,17 @@
#! /bin/bash
#
-# Extract raw list data from the email message on STDIN.
+# Extract raw list data from the email message on STDIN. This is
+# intended to be an alias target for the mail processor.
#
# N.B.: This script must be 6774 to the pulsestat user in order to
# put the correct permissions on the output file!
#
- /usr/local/labs/pulse/analysis/listex-demail.pl >
/usr/local/labs/pulse/data/queue/$(date +%Y-%m-%d.$$.xml)
+RCFILE=/usr/local/labs/pulse/.pulserc
+if [ -x $RCFILE ] ; then
+ . $RCFILE
+else
+ export PULSE_DIR=/usr/local/labs/pulse
+fi
+
+$PULSE_DIR/analysis/listex-demail.pl \
+ > $PULSE_DIR/data/queue/$(date +%Y-%m-%d.$$.xml)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]