exmh: richtext quoting broken

Alexander Zangerl <[email protected]>
Newsgroups gmane.mail.exmh.devel
Message-ID <[email protected]>
i've packaged exmh 2.7.0 for debian and in the process of cleaning
up the mess left by the original maintainer, i've come across a couple
of old bug reports by debian uses which are still applicable.

the richtext problem is documented here: <URL:http://bugs.debian.org/175193>

in short: rich-texting a document that includes anything looking
like "<tag>" generates a broken document, as the opening "<" is not
quoted like rfc 1896 says (by doubling the "<").

fix? the problem seems a bit non-trivial to me and at the moment i can't 
offer anything ready-made, but here's a few ideas that might lead somebody 
with some time to spare to a solution:

* if sedit doesn't keep track of its own richtext tags versus text the user
entered, then there is no foolproof way of escaping things at the end before
sending: how to distinguish the user's to-be-escaped material from sedit's
legitimate tags? even if you look for unknown tags, then nothing keeps 
the user from messing things up with an unmatched <bigger> somewhere.

* if sedit keeps track of insertion, then normal user input could be 
simply run through the tcl equivalent of s/</<</g.
but looking at the code, i don't see any provisions for such complex state
keeping :-/

* maybe this could be a low-tech solution: everytime the user enters 
hits the "<" key in enriched mode, sedit silently expands it to "<<" and
shows only the original single "<".
if enriched mode is entered late during composition of an email, sedit could
run the quoting substitution on the whole body when switching.

regards
az

-- 
+ Alexander Zangerl + DSA 42BD645D + (RSA 5B586291)
"symlinks ... the goto of the file system world."  -- David Tilbrook

_______________________________________________
Exmh-workers mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/exmh-workers
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBPDHCpy/2bEK9ZF0RAgx2AJwK/e9zdJggav96JZWz+xO1ARy9kQCfVA+O
adAmSBC1esrB6/VkqfrN1Lo=
=mV1C
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.