EMAIL to SMS tuning

SMS FoxBox provides you a gateway from email to SMS. There are a lot of mailservers and is really difficult to adapt our scripts to all products, but we try!!!
Probably with some little adjustment it can works with EVERY mailserver POP3/IMAP compliant.
We have discovered thanks to some user experience that some mail clients and servers appends white spaces to the end of the message (LOTUS NOTES is one of this). To solve this problem you have to edit the file /etc/procmailrc.
Locate the line:

| /bin/cat > $OUTFILE

and modify it to look like this
| /bin/cat |grep -v ^$ | sed '/To:/G' >> $OUTFILE

To learn more about how to customize EMAIL to SMS gateway look at:

http://www.kdev.it/joomla/SMS_FoxBox/Tutorials/Email_to_SMS_custom_scripts_2007082269.html