Re: What to use for displaying MIME?
Grant Edwards <[email protected]>
| Newsgroups | gmane.network.slrn.user |
|---|---|
| Message-ID | <[email protected]> |
On 2007-03-30, Troy Piggins <[email protected]> wrote: > * Grant Edwards is quoted & my replies are inline below : >> On 2007-03-30, Troy Piggins <[email protected]> wrote: >> >> First, I should say I was wrong about demime not rendering html >> and giving no indication of removed attachements. It does >> indicate the filename and content type of some deleted parts. >> By running it on the command-line I've figured out that it was >> trying to use lynx to render HTML (which wasn't installed). >> Now that lynx is installed, that's working a little better. > > Good to hear :) Before I tried demime, I used to run across base64 encoded postings in one of the gmane groups, the weren't handled by what I was using back then, but I haven't been able to find any of them to test either demime or unmime.py on. > [snip] >> > Are you typing <esc>6 etc in group or article mode? It works in >> > article mode, and group mode I see the command prefix message you >> > must be seeing. >> >> I swear I was typing it article mode. But upon trying it again, >> it works. I added message() calls to register/unregister >> functions make it easier to tell. The register/unregister was >> probably working before and I didn't know it... > > Good to hear also. Good idea about the messages. I've added > them to mine also - don't know why I didn't do it sooner. Oh > yeah, I'm an idiot. > >> FWIW, here's the current version of unmime.py > > Thanks for that. I've saved it in my $PATH, > /usr/local/bin/unmime.py, made it executable, but how do you > invoke it? I assumed similar to the perl script, so change this > line in demime.sl: > > #v+ > fp = popen ("/usr/local/bin/demime --quiet - < "+demime_tmp, "r"); > #v- > > to: > > #v+ > fp = popen ("/usr/local/bin/unmime.py - < "+demime_tmp, "r"); > #v- It reads from standard input, writes to standard output, and ignores command line parameters. The above should work, though the "-" isn't needed. > Or do you have your own macro wrapper? Nope, I did basically what you showed above, though I also added another "message()" call saying that mime content had been processed. > Worked well for the couple of signed and html multipart (html > only untested) messages I checked. I was thinking about actually verifying signed postings. Doing the verification is easy, but it's pointless if you don't have the sender's public key. Another option might be to actually save message parts that have a filename. I don't see real file attachments that often in real Usenet groups, but on gmane's mailing list mirror groups they're fairly common. I usually end up going to gmane's web interface and downloading the attachements there, but being able to save them from slrn would be handy. > Mind if I put it on my website - credits to you - as an > alternative for demime? No problem. > Anything you want me to say on there? If you prefer, you can grab it from http://www.visi.com/~grante/unmime.py I'll let you know if I make any changes. -- Grant Edwards grante Yow! If I pull this SWITCH at I'll be RITA HAYWORTH!! Or visi.com a SCIENTOLOGIST! ------------------------------------------------------------------------- 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