Gnus development mailing list
 help / color / mirror / Atom feed
From: Daniel Pittman <daniel@rimspace.net>
Subject: Re: Allow people to circumvent W3 for HTML
Date: Sat, 20 Oct 2001 21:47:20 +1000	[thread overview]
Message-ID: <87669ay39a.fsf@inanna.rimspace.net> (raw)
In-Reply-To: <iluu1wu645w.fsf@barbar.josefsson.org> (Simon Josefsson's message of "Sat, 20 Oct 2001 11:39:55 +0200")

On Sat, 20 Oct 2001, Simon Josefsson wrote:
> Daniel Pittman <daniel@rimspace.net> writes:

[...]

>> Yes, please. Actually, allowing me to easily control what is used to
>> render HTML to text would be ideal; I want to pipe it through (for
>> example) html2text(1) rather than use W3.
> 
> Doesn't
> 
> text/html: html2text %s; copiousoutput
> 
> or something in ~/.mailcap work?

Er, didn't last time I tried... ...time passes...

...or maybe not. I thought I did have it in there. Let me try again.

No. Adding it and restarting XEmacs (and, thus, Gnus) completely failed
to cause to it take effect: the HTML mail still caused W3 to load.

Lesse... Within `mailcap-mime-data', we have my values *first* in the
list, with the W3 values last.

W3 is definitely chosen; there isn't an issue with searching this data
in reverse order, is there? More testing...

Found it. The breakage comes for `mm-display-inline'

Basically, `mm-display-part' comes in, makes sure the mailcap files are
parsed, locates the viewer from the mailcap data (getting html2text),
then asks:

  (if (and (mm-inlinable-p handle)
           (mm-inlined-p handle))

When this passes, it calls `mm-display-inline' which unconditionally
uses W3. The HTML part isn't considered to be capable of being inlined
unless W3 is present.


Now, having looked at this, I can most certainly go and fix this problem
by redefining the stuff in the inlined type data structures to call my
shell command and parse the content that way.

However, in answer to your original question: No, adding that to
.mailcap or *any* other mailcap file will never work when the W3 library
is installed.

So, bug or feature? You decide ... but I would suggest adding a fairly
easy to reach default that let the end user call a shell command to
reformat the text and make it inline rather than forcing W3.


I will post my solution once it's written; it should be capable of doing
that if someone with commit access wants to add it. It waits on my
finishing cleaning my bedroom so I have somewhere to sleep tonight,
though. :)


> Hopefully Netscape won't cater to that line.

It seems to be brighter than that, at least for versions of Netscape
equal to Mozilla 0.9.5+. :)

      Daniel

-- 
Time spent in the advertising business seems to create a
permanent deformity like the Chinese habit of foot-bonding.
        -- Dean Acheson



  parent reply	other threads:[~2001-10-20 11:47 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-19 13:39 Kai Großjohann
2001-10-19 14:19 ` Oystein Viggen
2001-10-19 15:52   ` Frank Schmitt
2001-10-19 16:24     ` David S. Goldberg
2001-10-19 17:54       ` Kai Großjohann
2001-10-19 18:09         ` David S. Goldberg
2001-10-19 21:27           ` Kai Großjohann
2001-10-20 10:11             ` Per Abrahamsen
2001-10-20 18:30               ` Henrik Enberg
2001-10-21  8:20                 ` Per Abrahamsen
2001-10-21 14:25                   ` Lloyd Zusman
2001-10-19 16:30   ` Kai Großjohann
2001-10-21 12:06     ` Oystein Viggen
2001-10-20  6:01 ` Daniel Pittman
2001-10-20  9:39   ` Simon Josefsson
2001-10-20 10:55     ` Kai Großjohann
2001-10-20 11:25       ` Simon Josefsson
2001-10-20 11:47     ` Daniel Pittman [this message]
2001-10-20 12:00       ` Simon Josefsson
2001-10-20 18:08       ` Kai Großjohann
2001-10-21  1:41         ` Daniel Pittman
2001-10-21  8:35           ` Kai Großjohann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87669ay39a.fsf@inanna.rimspace.net \
    --to=daniel@rimspace.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).