Gnus development mailing list
 help / color / mirror / Atom feed
* Mailcap behavior not as expected
@ 2000-01-02  8:17 Daniel Pittman
  2000-01-02 15:37 ` Per Abrahamsen
  2000-04-21 16:22 ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 5+ messages in thread
From: Daniel Pittman @ 2000-01-02  8:17 UTC (permalink / raw)


Hi.

pGnus has a behavior in it's MIME display engine that I consider
somewhat odd, even if it is not technically a bug.

metamail(1) will select the first entry in the mailcap files that
matches the MIME type it is trying to display and attempt to use that to
display the content.

pGnus will try the last entry that matches the MIME type. Now,
mailcap(5) and friends don't actually specify behavior when there are
multiple matching entries in the mailcap files. 

I think that the behavior of metamail(1) is more what I would expect
though, an assumption that is also held by the architects of the Debian
MIME system -- they provide a configuration in /etc/ to allow one
package to be preferred as the viewer for it's MIME types.

This works by putting it's entries earlier in the system mailcap file...

Anyway, WIBNI pGnus also preferred the earlier entries, allowing it to
work like metamail(1) and it's friends?

        Daniel

-- 
No sight is more provocative of awe than is the night sky.
        -- Llewelyn Powys



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Mailcap behavior not as expected
  2000-01-02  8:17 Mailcap behavior not as expected Daniel Pittman
@ 2000-01-02 15:37 ` Per Abrahamsen
  2000-01-02 16:12   ` Steinar Bang
  2000-01-02 23:35   ` Carey Evans
  2000-04-21 16:22 ` Lars Magne Ingebrigtsen
  1 sibling, 2 replies; 5+ messages in thread
From: Per Abrahamsen @ 2000-01-02 15:37 UTC (permalink / raw)


Daniel Pittman <daniel@danann.net> writes:

> Anyway, WIBNI pGnus also preferred the earlier entries, allowing it to
> work like metamail(1) and it's friends?

When the standard is silent, following the "sample" implementation
(metamail) is probably the best.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Mailcap behavior not as expected
  2000-01-02 15:37 ` Per Abrahamsen
@ 2000-01-02 16:12   ` Steinar Bang
  2000-01-02 23:35   ` Carey Evans
  1 sibling, 0 replies; 5+ messages in thread
From: Steinar Bang @ 2000-01-02 16:12 UTC (permalink / raw)


>>>>> Per Abrahamsen <abraham@dina.kvl.dk>:

> Daniel Pittman <daniel@danann.net> writes:
>> Anyway, WIBNI pGnus also preferred the earlier entries, allowing it to
>> work like metamail(1) and it's friends?

> When the standard is silent, following the "sample" implementation
> (metamail) is probably the best.

Agreed.  That sounds like a good rule-of-thumb.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Mailcap behavior not as expected
  2000-01-02 15:37 ` Per Abrahamsen
  2000-01-02 16:12   ` Steinar Bang
@ 2000-01-02 23:35   ` Carey Evans
  1 sibling, 0 replies; 5+ messages in thread
From: Carey Evans @ 2000-01-02 23:35 UTC (permalink / raw)


Per Abrahamsen <abraham@dina.kvl.dk> writes:

> When the standard is silent, following the "sample" implementation
> (metamail) is probably the best.

Actually, RFC 1524 *does* specify the behaviour:

}   The configuration information will be obtained
}   from the FIRST matching entry in a mailcap file, where "matching"
}   depends on both a matching content-type specification, an entry
}   containing sufficient information for the purposes of the application
}   doing the searching, and the success of any test in the "test="
}   field, if present.

-- 
	 Carey Evans  http://home.clear.net.nz/pages/c.evans/

	       "This is where your sanity gives in..."



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Mailcap behavior not as expected
  2000-01-02  8:17 Mailcap behavior not as expected Daniel Pittman
  2000-01-02 15:37 ` Per Abrahamsen
@ 2000-04-21 16:22 ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 2000-04-21 16:22 UTC (permalink / raw)


Daniel Pittman <daniel@danann.net> writes:

> metamail(1) will select the first entry in the mailcap files that
> matches the MIME type it is trying to display and attempt to use that to
> display the content.

Yup.  Fix in Gnus v5.8.5.

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-04-21 16:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-02  8:17 Mailcap behavior not as expected Daniel Pittman
2000-01-02 15:37 ` Per Abrahamsen
2000-01-02 16:12   ` Steinar Bang
2000-01-02 23:35   ` Carey Evans
2000-04-21 16:22 ` Lars Magne Ingebrigtsen

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).