I have setup an sms gateway. In my setup procmail will send sms's when there are specific words in the subject line. For the sms sending I use Gnokii.
A standard email is too big to be send as a sms, with headers the mail is bigger then 640 char.
So I need a script which only parses the body to Gnokii and when needed truncates it to the max size accepted by Gnokii.
Can anyone help me with a setup of Perl script which reads mail from the standard input(procmail)
and sends the body to the standard output