procmail
[Top] [All Lists]

Limit Message Length

1997-08-21 10:55:59



I use procmail to forward mail from certain individuals
to a different email account.

The second email account is in reality a pager where I am charged in
increments of 50 characters.  The idea is simply to alert me to dial in to
my ISP to retrieve the email from those select individuals.  Any other
mail can wait.
 
At the moment my script looks like this:

:0 c:
* ^From.*taylor
! jfo(_at_)xxxxxxxxx(_dot_)net

This works fine except that the paging company accepts up to
200 characters, and then bills me for up to 4 message units.

I now want to modify this routine to send no more than 50
characters to the second (paging) account.  The 50
characters could be the first 50, or ideally no more than 50
from the From and Subject lines.

I know the procmail can test for "more than" and "less than"
but I cannot figure out how to do exactly what I need. 

Any suggestions?



-----------------
Joe O'Connell
Boston
sja(_at_)counselor(_dot_)com

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