Re: replying to and quoting an HTML attachment
On Wed, Jul 10, 2002 at 06:44:46PM -0700, Eugene Lee wrote: Thanks to you and John Iverson and Will Yardley for the responses. It turned out to be my mailcap entry. I had this: text/html; links %s; nametemplate=%s.html when I really needed this: text/html; links -dump %s; nametemplate=%s.html; copiousoutput Now if I can only figure out how to keep both entries and get Mutt to let me select between the two methods... You can. Just put them in you mailcap in this order: text/html; links %s; nametemplate=%s.html text/html; links -dump %s; nametemplate=%s.html; copiousoutput The copiousoutput tag tells mutt to use that entry for in-line expansion of text/html content while using the other entry to view text/html content from the attachment menu. This is covered in the mutt manual in the section on Search Order (5.3.3.2) under Advanced mailcap Usage (5.3.3). Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Spokane, Washington, USA http://www.spocom.com/users/gjohnson/mutt/ |
Re: replying to and quoting an HTML attachment
On Thu, Jul 11, 2002 at 09:44:53AM -0700, Gary Johnson wrote: : : On Wed, Jul 10, 2002 at 06:44:46PM -0700, Eugene Lee wrote: : : Now if I can only figure out how to keep both entries and get Mutt to : let me select between the two methods... : : You can. Just put them in you mailcap in this order: : : text/html; links %s; nametemplate=%s.html : text/html; links -dump %s; nametemplate=%s.html; copiousoutput Ahhh. At one time, I did have both entries, but in reversed order. : This is covered in the mutt manual in the section on Search Order : (5.3.3.2) under Advanced mailcap Usage (5.3.3). Another Ahhh. I think I got hung up on this line in the manual: When searching for an entry in the mailcap file, Mutt will search for the most useful entry for its purpose. Mucho thanks! -- Eugene Lee [EMAIL PROTECTED]
Re: replying to and quoting an HTML attachment
* On Wed, 10 Jul 2002, Eugene Lee wrote: I looked in the archives and couldn't find a specific answer this one. I receive several HTML messages that arrive as an attachment with no plain text equivalent in the main message body or another attachment. When I reply to these messages, how do I configure Mutt to convert the HTML attachment into plain text, quote it, and finally edit it? Or is this a mailcap issue? Thanks in advance. I beleive these are the relevant settings I use: In .muttrc: alternative_order text/plain text # Favor plain text in multipart messages auto_view text/html # View html dumped to text in pager (see .mailcap) In .mailcap (choose one according to browser): # text/html; lynx -dump %s; copiousoutput; nametemplate=%s.html # text/html; links -dump %s; copiousoutput; nametemplate=%s.html text/html; w3m -dump %s; copiousoutput; nametemplate=%s.html -- John
Re: replying to and quoting an HTML attachment
Eugene Lee wrote: I looked in the archives and couldn't find a specific answer this one. I receive several HTML messages that arrive as an attachment with no plain text equivalent in the main message body or another attachment. When I reply to these messages, how do I configure Mutt to convert the HTML attachment into plain text, quote it, and finally edit it? Or is this a mailcap issue? Thanks in advance. did you search on google? a google search for 'mutt-users html mail mailcap' turns up a lot of responses for me, including many in the mutt-users archives. i use: in ~/.mailcap: text/html; w3m -dump %s; nametemplate=%s.html; copiousoutput and in my .muttrc: # view annoying html mail inline auto_view text/html # if plain text and html prefer plain text alternative_order text/plain text/enriched text/html HTH. -- Will Yardley input: william hq . newdream . net .
Re: replying to and quoting an HTML attachment
On Wed, Jul 10, 2002 at 05:06:12PM -0700, Eugene Lee wrote: I looked in the archives and couldn't find a specific answer this one. I receive several HTML messages that arrive as an attachment with no plain text equivalent in the main message body or another attachment. When I reply to these messages, how do I configure Mutt to convert the HTML attachment into plain text, quote it, and finally edit it? Or is this a mailcap issue? Thanks in advance. It's at least partly a mailcap issue. If you already have mutt and mailcap configured to display HTML attachments as plain text in the pager, replying should just work as you described. Otherwise, you will need an entry like this in your mailcap: text/html; w3m -dump %s; nametemplate=%s.html; copiousoutput and you _may_ need this in your muttrc: auto_view text/html The auto_view command is required for the pager to work; I don't know if it's required to convert HTML to plain text in replies. HTH, Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Spokane, Washington, USA http://www.spocom.com/users/gjohnson/mutt/ |
Re: replying to and quoting an HTML attachment
On Wed, Jul 10, 2002 at 05:36:43PM -0700, Gary Johnson wrote: : : On Wed, Jul 10, 2002 at 05:06:12PM -0700, Eugene Lee wrote: : : I receive several HTML messages that arrive as an attachment with no : plain text equivalent in the main message body or another attachment. : When I reply to these messages, how do I configure Mutt to convert the : HTML attachment into plain text, quote it, and finally edit it? Or is : this a mailcap issue? Thanks in advance. : : It's at least partly a mailcap issue. If you already have mutt and : mailcap configured to display HTML attachments as plain text in the : pager, replying should just work as you described. Otherwise, you : will need an entry like this in your mailcap: : : text/html; w3m -dump %s; nametemplate=%s.html; copiousoutput Thanks to you and John Iverson and Will Yardley for the responses. It turned out to be my mailcap entry. I had this: text/html; links %s; nametemplate=%s.html when I really needed this: text/html; links -dump %s; nametemplate=%s.html; copiousoutput Now if I can only figure out how to keep both entries and get Mutt to let me select between the two methods... -- Eugene Lee [EMAIL PROTECTED]