Am 2008-09-24 21:28:23, schrieb Joyce Gutierrez:
Hi guys,
I am using procmail and formail to parse email and pass the generated values
to a perl script.
Here is my .procmailrc
PATH=/bin:/usr/bin
MAILDIR=$HOME/Mail
LOGFILE=/home/sms/procmail.log
VERBOSE=yes
SHELL=/bin/bash
TO=`formail -xTo:`
SUBJECT=`formail -xSubject: | expand | sed -e 's/^[ ] *//g' -e 's/[ ] *$//g'`
SENDER=`formail -xFrom: | expand | sed -e 's/^[ ]*//g' -e 's/[ ]*$//g'`
BODY=`formail -I ""`
SENDER=`formail -rtzxTo:`
:0
| perl /home/sms/massms/newsms.pl $SENDER $TO $BODY $SUBJECT >>
/home/sms/massms/maillog.txt
Whenever I try to send an email, The sender and the recipient parts are
passed successfully. However when I have a message such as follows, the Body
part is not passed to my perl script:
:0
{ DUMMY=`perl /home/sms/massms/newsms.pl "$SENDER" "$TO" "$BODY" "$SUBJECT"
/home/sms/massms/maillog.txt` }
Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator
24V Electronic Engineer
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
+49/177/9351947 50, rue de Soultz MSN LinuxMichi
+33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
____________________________________________________________
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