procmail
[Top] [All Lists]

RE: how to cut off last part of an e-mail

2000-11-01 12:06:42
Hello,
maybo you find here the information you request:

http://www.uwasa.fi/~ts/info/proctips.html

regards
Sven-Christian Hupfeld



Von: procmail-admin(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
[mailto:procmail-admin(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE]Im Auftrag von 
Andreas Tindlund
Gesendet: Mittwoch, 1. November 2000 16:44
An: procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
Betreff: how to cut off last part of an e-mail

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

_______________________________________________
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>