Inspired by our recent thread about the use of upper case in subject lines
and by the receipt of all upper case messges fom another list I wondered
whether I could fix these using procmail?
I have three requirements:
a Test Subject: for all upper case and, if found, normalise the Subject text
By normalise I mean apply the UC/lc rule to the Subject: header line or at
least upcase the initial letter and lowercase the remainder. The Subject of
this message is in UC/lc. Of course, this should not affect any tag added
to the subject by the mailing list host or topic classifications assigned
by list owners/moderators.
b Test the message body for all uppercase and decrease the volume
Modify the body so that each paragraph has normal sentence case.
c Test the message body for all lowercase and increase the volume (a little)
I have one chronically ill correspondent who can't type properly; in
fact, she uses the remote control of her cable TV box to compose
messages. There's no uppercase in her messages. There are no
inter-sentence spaces! (But there are intra-sentence spaces.) So I'd
like to do something similar to case b by modifying the text to normal
sentence case and to insert the inter-sentence spaces.
It'd be great if I could also insert paragraph markers (two consecutive
line ends). She leaves those out too. :-( Occasionally it's possible to
detect post scripts to message so these could be paragraphed but the
general issue is probably insoluable.
Finally, there's no wrapping at a right margin so that's needed as well.
This case could probably be selected based upon From: line address.
(Sometimes her emails are to a list and sometimes direct.)
Regards, Trevor
British Sign Language is not inarticulate handwaving; it's a living language.
Support the campaign for formal recognition by the British government now!
--
<>< Re: deemed!
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail