[MlMt] Problem replying to messages with encoded < >'s in them

Kee Hinckley kee+freron at hinckley.com
Thu Dec 5 04:14:27 EST 2013


I ran across this when I was testing my reply scripts, but this seems to 
happen with the regular reply as well. I have an HTML message that has 
encoded XML in it. Here's an excerpt.

```
<br>
<program TMSId="SP002535400000" rootId="8893140" 
connectorId="SP002535400000" 
seriesId="191276"><br>
<titles><br>
<title size="120" type="full" 
lang="en">NBA Basketball</title><br>
<title size="10" type="red" 
lang="en">Basketball</title><br>
</titles><br>
<progType>Sports event</progType><br>
<genres><br>
<genre genreId="59">Basketball</genre><br>
</genres><br>
```

When I reply to that message, the HTML that is sent to tidy has all the 
< characters decoded already.

```
> <program TMSId="SP002535400000" rootId="8893140" 
> connectorId="SP002535400000" seriesId="191276">
> <titles>
> <title size="120" type="full" lang="en">NBA Basketball</title>
> <title size="10" type="red" lang="en">Basketball</title>
> </titles>
> <progType>Sports event</progType>
> <genres>
> <genre genreId="59">Basketball</genre>
> </genres>
```

But then that's going to get processed by the html to markdown script as 
though it were html. And when it displays in the mail program, it's 
going to be interpreted as HTML as well (what's left of it).


Incidentally. I found a way to get around having my HTML prefixed by "> 
".

``"r"     = ( "replyAll:", "selectAll:", "decreaseQuoteLevel:", 
"deselectAll:", "moveToBeginningOfDocument:", "insertNewline:", 
"insertNewline:", "moveToBeginningOfDocument:" );``
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20131205/be7c0ae9/attachment-0001.html>


More information about the mailmate mailing list