Re: What to use for displaying MIME?
Grant Edwards <[email protected]>
| Newsgroups | gmane.network.slrn.user |
|---|---|
| Message-ID | <[email protected]> |
On 2007-03-29, Troy Piggins <[email protected]> wrote: >> Yup, that's where I started. demime just doesn't work very >> well. It doesn't seem to handle signed posts or nested >> message structures. > > When you say 'demime' - do you mean the demime perl script, or > demime.sl the s-lang macro? The perl script. (The slang works fine.) Within the first day of usage, I ran across a number of signed articles where the demime perl script just deleted both the signed message and the signature and left nothing. > MIME/PGP signed? Yup. > Works for me - see screenshots on the above URL. I'd like to > know more. Not sure about nested structures. All I can say is that some messages I tried to read didn't work for me. One example that didn't work was a multipart/mixed message where there were a couple text/plain parts and one multipart/signed part. Another thing I didn't like much about demime was that it didn't show any indication what sections had been removed from multipart/mixed, and didn't give any indication of where the boundaries were for the sections of a multipart/mixed that it did render. If "attachments" were removed, I'd like to know their type and name. When multiple text/plain sections are rendered, I want to know where the boundaries were. It also seemed to make no attempt to render HTML message sections. In a multipart/alternative, I'd like just the text/plain version, but if there is no text/plain, then I want to see the text/html version rendered in a reasonable manner. >> I'm also a bit confused by display_filter.sl attempting to bind >> the key's \e6 and \e7. That simply doesn't work for me. >> AFAICT, \eN where N is a digit is treated as a command prefix, >> and you can't bind a command to it. Changing display_filter.sl >> to bind \m and \M seems to work. > > You can change the key bindings to anything you like. What I'm saying is that I couldn't. I tried to bind the commands to \e6 and \e7 using your slang file, but it didn't work. AFAICT, my copy of slrn always treats escape-6 and escape-7 as command prefixes, not commands themselves. I was wondering what you did to make \e6 and \e7 work. >> [I've just fixed my unmime.py so that it doesn't strip off all >> of the headers.] Now you can reply to messages in addition to >> being able to read them. :) > > Well done. I don't know python, other than the fact they live > in zoos ;-) Python is a very nice object-oriented programming language. www.python.org It's byte-compiled and run on a VM (like Java, Perl, and many others). It's got a very extensive standard library that includes things like MIME e-mail message handling modules that let you do in 60 lines what took 3000 lines of Perl. ;) -- Grant Edwards grante Yow! Is this an out-take at from the "BRADY BUNCH"? visi.com ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV