procmail
[Top] [All Lists]

how to cut off last part of an e-mail

2000-11-01 10:43:55
I have a script that forwards a copy of all e-mail I receive to my
GSM-mobile phone (with the e-mail address 
999888777(_at_)sms(_dot_)netcom(_dot_)no)

The sms.netcom.no server sends me the e-mail divided in up to 4
SMS-messages each containing 160 characters.

Sometimes there can be just to many messages popping into my phone.


Therefore:

Problem 1:
- How can I forward only the first 100 characters of the
e-mail body to 999888777(_at_)sms(_dot_)netcom(_dot_)no

Problem 2:
- Is it also possible to implement that the if the script detects many
undercores or dash'es  ( _____  / ----- ), it will cut the body from there
on? _____ or ---- usually indicates a signature file, which I am not
interested in receiving on my mobile phone.




_______________________________________________________________

  Andreas Tindlund             
_______________________________________________________________

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>