* [sup-talk] Error: no "view" mailcap rules found for type "text/plain"
@ 2011-02-16 6:42 Christer Edwards
2011-02-16 14:07 ` Philippe LeCavalier
2011-02-16 16:26 ` Mark Alexander
0 siblings, 2 replies; 6+ messages in thread
From: Christer Edwards @ 2011-02-16 6:42 UTC (permalink / raw)
To: sup-talk
[-- Attachment #1.1: Type: text/plain, Size: 431 bytes --]
I finally managed to find the run-mailcap binary (mime-types package),
but I'm still getting issues with rendering HTML email properly. I get
the error in the subject line as well as another (can't reproduce
without quitting sup).
I wonder if anyone might share their .mailcap file, or suggest any
alternative methods for stripping out the nonsense HTML markup and just
leaving me with plain text.
Thank you,
Christer
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
[-- Attachment #2: Type: text/plain, Size: 140 bytes --]
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sup-talk] Error: no "view" mailcap rules found for type "text/plain"
2011-02-16 6:42 [sup-talk] Error: no "view" mailcap rules found for type "text/plain" Christer Edwards
@ 2011-02-16 14:07 ` Philippe LeCavalier
2011-02-16 14:46 ` Christer Edwards
2011-02-16 16:26 ` Mark Alexander
1 sibling, 1 reply; 6+ messages in thread
From: Philippe LeCavalier @ 2011-02-16 14:07 UTC (permalink / raw)
To: Christer Edwards; +Cc: sup-talk
Hi Christer.
Excerpts from Christer Edwards's message of Wed Feb 16 01:42:46 -0500 2011:
[...]
> I wonder if anyone might share their .mailcap file
Here's mine. I just started building it but it's something...BTW Did you look into the mime-decode.rb hook?
cat ../../.mailcap
application/zip; squeeze '%s'
application/pdf; /usr/bin/xpdf '%s'
application/msexcel; gnumeric '%s'
application/html; firefox '%s'
application/vnd.openxmlformats-officedocument.wordprocessingml.document; abiword '%s'
Not certain the last one is 'proper' but it works.
--
Thanks,
Phil
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sup-talk] Error: no "view" mailcap rules found for type "text/plain"
2011-02-16 14:07 ` Philippe LeCavalier
@ 2011-02-16 14:46 ` Christer Edwards
2011-02-16 15:28 ` Philippe LeCavalier
0 siblings, 1 reply; 6+ messages in thread
From: Christer Edwards @ 2011-02-16 14:46 UTC (permalink / raw)
To: Philippe LeCavalier; +Cc: sup-talk
[-- Attachment #1.1: Type: text/plain, Size: 804 bytes --]
Excerpts from Philippe LeCavalier's message of 2011-02-16 07:07:19 -0700:
> Here's mine. I just started building it but it's something...BTW Did you look into the mime-decode.rb hook?
>
> cat ../../.mailcap
> application/zip; squeeze '%s'
> application/pdf; /usr/bin/xpdf '%s'
> application/msexcel; gnumeric '%s'
> application/html; firefox '%s'
> application/vnd.openxmlformats-officedocument.wordprocessingml.document; abiword '%s'
>
> Not certain the last one is 'proper' but it works.
I tried adding this contents to my file, but I'm still getting the error when selecting an html email attachment:
Couldn't execute view command, viewing as text.
In response to another suggestion, I have not tried the mime hook. I haven't quite been able to make sense of it yet.
Christer
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
[-- Attachment #2: Type: text/plain, Size: 140 bytes --]
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sup-talk] Error: no "view" mailcap rules found for type "text/plain"
2011-02-16 14:46 ` Christer Edwards
@ 2011-02-16 15:28 ` Philippe LeCavalier
0 siblings, 0 replies; 6+ messages in thread
From: Philippe LeCavalier @ 2011-02-16 15:28 UTC (permalink / raw)
To: Christer Edwards; +Cc: sup-talk
Hi Christer.
Excerpts from Christer Edwards's message of Wed Feb 16 09:46:49 -0500 2011:
> Excerpts from Philippe LeCavalier's message of 2011-02-16 07:07:19 -0700:
> > Here's mine. I just started building it but it's something...BTW Did you look into the mime-decode.rb hook?
> >
> > cat ../../.mailcap
> > application/zip; squeeze '%s'
> > application/pdf; /usr/bin/xpdf '%s'
> > application/msexcel; gnumeric '%s'
> > application/html; firefox '%s'
> > application/vnd.openxmlformats-officedocument.wordprocessingml.document; abiword '%s'
> >
> > Not certain the last one is 'proper' but it works.
>
> I tried adding this contents to my file, but I'm still getting the error when selecting an html email attachment:
>
> Couldn't execute view command, viewing as text.
I think sup always tries to display HTML inline but without the mime-decode.rb hook it will fail(just a guess). Despite the error the
mailcap entry for firefox(assuming you have firefox, if not substitute for sensible-browser) should open.
All mime-decode does is make use of w3m to display the html encoding inline. So you'll need the w3m package for that to work.
> Christer
--
Thanks,
Phil
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sup-talk] Error: no "view" mailcap rules found for type "text/plain"
2011-02-16 6:42 [sup-talk] Error: no "view" mailcap rules found for type "text/plain" Christer Edwards
2011-02-16 14:07 ` Philippe LeCavalier
@ 2011-02-16 16:26 ` Mark Alexander
2011-02-16 16:39 ` Christer Edwards
1 sibling, 1 reply; 6+ messages in thread
From: Mark Alexander @ 2011-02-16 16:26 UTC (permalink / raw)
To: Christer Edwards; +Cc: sup-talk
Excerpts from Christer Edwards's message of Wed Feb 16 01:42:46 -0500 2011:
> I wonder if anyone might share their .mailcap file, or suggest any
> alternative methods for stripping out the nonsense HTML markup and just
> leaving me with plain text.
I use this line in my .mailcap to run w3m on html attachments:
text/html; /usr/bin/w3m -T text/html '%s'; needsterminal; description=HTML Text; nametemplate=%s.html
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-02-16 16:55 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-16 6:42 [sup-talk] Error: no "view" mailcap rules found for type "text/plain" Christer Edwards
2011-02-16 14:07 ` Philippe LeCavalier
2011-02-16 14:46 ` Christer Edwards
2011-02-16 15:28 ` Philippe LeCavalier
2011-02-16 16:26 ` Mark Alexander
2011-02-16 16:39 ` Christer Edwards
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox