Eric,
Thanks for the followup. The one line at a time might be the problem--one of
my modifications to the TWiki markup is that I use the mbox From header to
serve as a record separator.
If you're not familiar with the From header, it consists of an arbitrary
number of lines, it can look something like this:
From "file index: askRhk04" Mon May 28 07:31:07 2007
Date: 05/28/07 07:31 am
Subject: file index: askRhk04
(Normally the field after the From is the email address of the sender, but
I've found in the software that I plan to use (including kmail, nail/mail)
that I can put an arbitrary phrase in quotes and that works just fine.)
It can have any number of email header lines of the form:
<keyword>: <whatever>
and is finally ended by a blank line. For my purposes, I require that it have
at least one Date: line and at least one Subject: line, but there may be an
arbitrary number of such lines.
Does luddite have any ability to maintain state between lines? And then, for
this case, after having recognized a valid mbox From header, go back to the
From line and colorize and fold starting from there?
There are some other instances where I need to maintain state between lines,
but this is the easiest example to give.
Thanks,
Randy Kramer