<<< Date Index >>>     <<< Thread Index >>>

[Mutt] #3460: mutt_needs_mailcap incorrectly returns false for text/html



#3460: mutt_needs_mailcap incorrectly returns false for text/html
------------------------------------------+---------------------------------
 Reporter:  ajschorr                      |       Owner:  mutt-dev
     Type:  defect                        |      Status:  new     
 Priority:  major                         |   Milestone:          
Component:  mutt                          |     Version:  1.5.20  
 Keywords:  mutt_needs_mailcap text/html  |  
------------------------------------------+---------------------------------
 In mutt-1.5.19, the following entries in /etc/mailcap gave
 the desired result:

 text/html; w3m -T text/html %s
 text/html; w3m -T text/html -dump %s ; copiousoutput

 When the attachment was viewed from the mime viewer ("v") menu,
 the first command was used to launch w3m interactively.  And the autoview
 would work fine in non-interactive pager mode.

 But as of 1.5.20 (and also in 1.5.21), the first command is never
 triggered.  Instead, it always uses the autoview copiousoutput
 command even when viewed from inside the mime viewer.

 I debugged the changes in the source, and the problem is in
 muttlib.c:mutt_needs_mailcap.  In 1.5.19, it used to check the
 subtype for TYPETEXT and return false only for a few explicit
 subtypes.  But in 1.5.20 and later, it returns false for any
 TYPETEXT body.  This causes text/html attachments to use only
 the autoview solution.  The patch may be to revert to the 1.5.19
 behavior, but I don't claim to be an expert.

 Thanks,
 Andy

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3460>
Mutt <http://www.mutt.org/>
The Mutt mail user agent