[no subject]

2000-04-04 23:48:52

Can I extract bits of the messages that MHonArc is processing as
$string$, such as specific header fields and the message body
itself?  Can I get them with escaped quotes?

What I'd like to do is to use MHonArc and PHP together to create
archives that have a "reply" button that allows the browsing user to
easily reply to a message in the archives.  This in itself is not
difficult to do -- except that I don't see how to get MHonArc to do
its end:

  To extract specific headers from the archives messages into
$VARIABLES$ with any quotes escaped.  For instance, say
$FROM_HEADER$ might be "\"Bubba Smith\" <bubba(_at_)redneck(_dot_)net>".

  To extract the body of the message,, and without MHonArc's
HTML-ising of email addresses and URLs (ie no a-ref insertions) as
another variable with escaped quotes.  eg $MESSAGE_BODY$="Hi
Boffo!\nI went and saw \"Titanic\" with the wife last night...".

  To prevent KHonArc from filling in anything at all between
MsgPgBegin and MsgPgEnd.

What I'm attempting to do is to have MHonArc generate not HTML, but
a PHP document with all the message bits plugged into variable
strings for PHP such that it _looks_ like a normal MHonArc-ised
message in a browser, but under the covers is really a little PHP
program that was generated by MHonArc...

Can do?

J C Lawrence                              Internet: claw(_at_)kanga(_dot_)nu
----------(*)                            Internet: coder(_at_)kanga(_dot_)nu
...Honorary Member of Clan McFud -- Teamer's Avenging Monolith...

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