Hello,
Does any have any ideas on how to detect if a To: and/or Cc: line is
excessively long? I have this formula that changes the To and Cc header
lines, so that I can read my message without have to scroll 4 or 5 pages.
I only won't to invoke this program is the To and Cc have more than a few
names. I get mailings from time to time with scores of email addresses in
the To: field.
# Regenerate "To" and "Cc" Lines
:0 fhw
* LONG TO AND CC
| $FORMAIL -R "To " "To2 " -R "Cc " "Cc2 "
--------------------------------------------------------------------------
Additionally, Any ideas on how to make this saving of only last 200
messages in INBOX more efficient? The only down side to this method is
that everything is always viewed as NEW, but that is not important for my
purposes.
# Create a backup cache of 200 most recent messages in case of mistakes
:0 c
{
:0 c
$PMDIR/backup
:0 ic
| cd $PMDIR/backup && rm -f dummy `ls -t msg.* | sed -e 1,200d`
:0
| cd $PMDIR/backup && cat `ls -rt` > $DEFAULT
:0
/dev/null
}
============================================================================
- Liston Bias You cannot prevent the birds of sorrow
Alumnus of Oklahoma State Univ from flying over your head, but you can
Alumnus of Florida State Univ prevent them from building nests in
your hair.
bias(_at_)pobox(_dot_)com -- Persian Proverb
http://www.pobox.com/~bias
============================================================================