On Thu, Sep 25, 2008 at 10:09 PM, Joyce Gutierrez <[EMAIL PROTECTED]>wrote:
>
>
> | perl /home/sms/massms/newsms.pl $SENDER $TO $BODY $SUBJECT  >>
> /home/sms/massms/maillog.txt
>

You should quote shell arguments to avoid word splitting.
e.g.  "$SENDER" "$TO" "$BODY" "$SUBJECT"

Consult the bash(1) manual about word splitting.

[...]

> Subject: Hi there this is a Test
> Message: hello this is a test,
>
> With this message, the passed values to my perl script would be Subject: Hi
> and Body: there..
>

That should only happen when the order of arguments is: ... $SUBJECT $BODY


> whenever a space is detected in the subject of the email, it parses the
> subject and assigns the other part of the subject as the body. With this,
> the whole body of the email is not passed to my perl script...
>
> Could anyone please point out what could be the problem with my procmail
> script?
>

I could point more problems but I don't think you should worry about them
now. :-)
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Reply via email to