Re: Mailcap and MS Word documents

2022-10-09 Thread Jan Eden via Mutt-users
On 2022-10-09 10:20, Jan Eden wrote: > Hi, > > after Chris Green's and Cameron Simpson's helpful advice regarding HTML > messages, I dare to post another mailcap question. > > My mailcap contains the following lines: > > application/vnd.openxmlformats-officedocument.w

Mailcap and MS Word documents

2022-10-09 Thread Jan Eden via Mutt-users
Hi, after Chris Green's and Cameron Simpson's helpful advice regarding HTML messages, I dare to post another mailcap question. My mailcap contains the following lines: application/vnd.openxmlformats-officedocument.wordprocessingml.document; ~/.mutt/view_attachment %s "-" a

Re: Custom location for .mailcap?

2022-08-23 Thread Dan Ciprus (dciprus)
On Tue, Aug 23, 2022 at 06:29:28PM -0500, X Tec wrote: Hello. I'm wondering, is it possible to specify a different custom location for ~/.mailcap, and different from the defaults? Thanks beforehand for your attention. set mailcap_path = ~/.config/neomutt/mailcap -- Daniel Ciprus [ curl -L

Custom location for .mailcap?

2022-08-23 Thread X Tec
Hello. I'm wondering, is it possible to specify a different custom location for ~/.mailcap, and different from the defaults? Thanks beforehand for your attention.

Re: Mailcap selectively applying settings

2022-05-13 Thread Cameron Simpson
Slow to respond here. Mutt's MIME handling stuff has a long section in the manual here: http://www.mutt.org/doc/manual/#mimesupport with the mailcap section commencing here: http://www.mutt.org/doc/manual/#mailcap In particular see the stuff about "copiousoutput" and the pager. On 12

Re: Mailcap selectively applying settings

2022-05-13 Thread Christopher Conforti
On Thu, May 12, 2022 at 08:51:47PM +0100, Chris Green wrote: > On Thu, May 12, 2022 at 03:38:23PM -0400, Christopher Conforti wrote: > > Hi list, I'm having a bit of a weird one, at least for me. I can't get mutt > > to > > read my entire mailcap file properly, it seems

Re: Mailcap selectively applying settings

2022-05-13 Thread Christopher Conforti
On Thu, May 12, 2022 at 08:05:52PM +, Sam Kuper wrote: > On Thu, May 12, 2022 at 03:38:23PM -0400, Christopher Conforti wrote: > > text/html lynx -dump %s | more > > > > is seemingly ignored, even when there are no other options given for > > handling HTML. > > I may be wrong, but

Re: Mailcap selectively applying settings

2022-05-12 Thread Chris Green
On Thu, May 12, 2022 at 03:38:23PM -0400, Christopher Conforti wrote: > Hi list, I'm having a bit of a weird one, at least for me. I can't get mutt to > read my entire mailcap file properly, it seems. For example, I have the > following line in my mailcap: > > images/*; eog %s

Re: Mailcap selectively applying settings

2022-05-12 Thread Sam Kuper
On Thu, May 12, 2022 at 03:38:23PM -0400, Christopher Conforti wrote: > text/html lynx -dump %s | more > > is seemingly ignored, even when there are no other options given for > handling HTML. I may be wrong, but shouldn't there be a semicolon in that entry? I.e. text/html; lynx -dump

Mailcap selectively applying settings

2022-05-12 Thread Christopher Conforti
Hi list, I'm having a bit of a weird one, at least for me. I can't get mutt to read my entire mailcap file properly, it seems. For example, I have the following line in my mailcap: images/*; eog %s It handles this just fine; all image attachments are opened with eog. However, another line

Re: Problem with mailcap, did it work? Am I confused (yes)?

2022-01-26 Thread Chris Green
On Wed, Jan 26, 2022 at 03:40:22PM +, Chris Green wrote: > I'm sure that once upon a time I could read MS Word documents via > mailcap without problems. > > Now I just get "No matching mailcap entry found. Viewing as text." > > There is a matching mailcap entr

Problem with mailcap, did it work? Am I confused (yes)?

2022-01-26 Thread Chris Green
I'm sure that once upon a time I could read MS Word documents via mailcap without problems. Now I just get "No matching mailcap entry found. Viewing as text." There is a matching mailcap entry in /etc/mailcap, I do have a local ~/.mailcap though. Does having a local .mailcap prevent

Re: mailcap sanitization sanitizing too much...

2021-05-25 Thread Kevin J. McCarthy
On Tue, May 25, 2021 at 11:32:32AM +0800, Philippe Meunier wrote: So would it be possible to change the sanitization so that it restricts file names to Unicode alphanumeric characters (plus a few other safe characters) rather than just ASCII alphanumeric characters? There was a similar

mailcap sanitization sanitizing too much...

2021-05-24 Thread Philippe Meunier
Hello, When viewing an email attachment with mailcap, mutt sanitizes %s to contain only ASCII alphanumeric characters, plus a few other safe characters. Unfortunately this means that when trying to view an attachment with, say, a Chinese or a Korean name, I end up with a file name that looks like

Re: Location of sample muttrc and mailcap files, and correct names of Gmail folders

2021-02-12 Thread boB Stepp
On 21/02/12 06:50PM, David J. J. Ring, Jr. wrote: Also and this seems to be the initial cause of my calamity, what is the correct names of the imap folders in gmail? Some of my muttrc files have GMail others have Gmail with only the first letter capitalized. I just got through doing a

Re: Location of sample muttrc and mailcap files, and correct names of Gmail folders

2021-02-12 Thread David Lowry-Duda
Hello - > Where are sample files for muttrc located? Where are sample mailcap > located? On my machine, sample muttrc files are located in /usr/share/doc/mutt/examples. There are a couple of muttrc files and a sample mailcap file there. If you have the source, then there are s

Location of sample muttrc and mailcap files, and correct names of Gmail folders

2021-02-12 Thread David J. J. Ring, Jr.
Hello Mutt-Users, Today for some reason, mutt stopped working, it needed a control-c to interrupt then continue, I finally got it working, I don't remember how, but probably I had an error in my muttrc file. Where are sample files for muttrc located? Where are sample mailcap located? Also

Re: Mailcap for .docx files (using docx2txt or similar)

2021-01-22 Thread Chris Green
On Fri, Jan 22, 2021 at 06:24:22PM +0530, Chinmaya Nagpal wrote: > On Fri, Jan 22, 2021 at 12:35:46PM +, Chris Green wrote: > > So, it would be handy to have mutt configured to use one to view .docx > > files. I'm sure somebody must have done this already so what does the >

Re: Mailcap for .docx files (using docx2txt or similar)

2021-01-22 Thread meine
> This works for pandoc: > application/vnd.openxmlformats-officedocument.wordprocessingml.document; > pandoc --from docx --to markdown %s; copiousoutput > > Source: > https://raymii.org/s/articles/Viewing_PDF_docx_and_odt_files_in_Mutt.html Thanks for this! not only makes this work in mutt, but

Re: Mailcap for .docx files (using docx2txt or similar)

2021-01-22 Thread meine
> So, it would be handy to have mutt configured to use one to view .docx > files. I'm sure somebody must have done this already so what does the > ~/.mailcap entry have to look like? in my .mutt/mailcap (FreeBSD) application/ms-word; catdoc %s //meine

Re: Mailcap for .docx files (using docx2txt or similar)

2021-01-22 Thread Chinmaya Nagpal
On Fri, Jan 22, 2021 at 12:35:46PM +, Chris Green wrote: > So, it would be handy to have mutt configured to use one to view .docx > files. I'm sure somebody must have done this already so what does the > ~/.mailcap entry have to look like? This works for pandoc: ap

Mailcap for .docx files (using docx2txt or similar)

2021-01-22 Thread Chris Green
this already so what does the ~/.mailcap entry have to look like? -- Chris Green

Re: Determining what mailcap entry mutt is trying to run for an attachment?

2020-03-01 Thread Jon Leech
t/html > > mail attachment just displays it as text on my console. > > Try typing 'm' in the attachment menu, which forces using the mailcap > (), instead of hitting Enter. > > Debian's Buster package reverted to a mostly vanilla Mutt release, and so > doesn't have patches t

Re: Determining what mailcap entry mutt is trying to run for an attachment?

2020-03-01 Thread Kevin J. McCarthy
menu, which forces using the mailcap (), instead of hitting Enter. Debian's Buster package reverted to a mostly vanilla Mutt release, and so doesn't have patches that probably changed the default "Enter" keybinding for you. -- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910

Determining what mailcap entry mutt is trying to run for an attachment?

2020-03-01 Thread Jon Leech
I just upgraded from mutt as packaged for Debian 9 (1.7.2, I think) to mutt 1.10.1 packaged for Debian 10. Now attempting to 'v'iew a text/html mail attachment just displays it as text on my console. I've made no change to my ~/.mailcap, which is where the matching action should be found

Re: macro/prompt to trigger mailcap?

2018-07-19 Thread ilf
Darac Marjal: If you have one entry for the mime-type with the "copiousoutput" flag, and you put that AFTER one without, then mutt will use the copiousoutput program to auto_view the attachment, but it will invoke the other one when you "view-mailcap". Nice. Bu

Re: macro/prompt to trigger mailcap?

2018-07-19 Thread Darac Marjal
On Tue, Jul 17, 2018 at 09:53:54PM +0200, ilf wrote: How do you handle attachments? Currently, I use "auto_view text/html" and "implicit_autoview" with mailcap. However, I would like to not display attachments via mailcap automatically on opening a mail, but only after

Re: macro/prompt to trigger mailcap?

2018-07-18 Thread Cameron Simpson
On 17Jul2018 21:53, ilf wrote: How do you handle attachments? I confess I inline the ones which I can. PDF->text, images -> size and format info, etc. Currently, I use "auto_view text/html" and "implicit_autoview" with mailcap. However, I would like to not displ

macro/prompt to trigger mailcap?

2018-07-17 Thread ilf
How do you handle attachments? Currently, I use "auto_view text/html" and "implicit_autoview" with mailcap. However, I would like to not display attachments via mailcap automatically on opening a mail, but only after pressing another key. (Never trust attachments…)

Re: A mutt mailcap problem

2018-05-18 Thread Kevin J. McCarthy
On Fri, May 18, 2018 at 07:53:05PM +0200, mimosinnet wrote: > text/html; xdg-open %s &; test=test -n "$DISPLAY"; needsterminal; > > I wonder if some setting in chromium/chrome has been changed. Does adding "nametemplate=%s.html" to the mailcap entry help? --

Re: A mutt mailcap problem

2018-05-18 Thread mimosinnet
and: xdg-open mutt-mimomedia-1000-10945-13086124291664314301.html opens de file as html. This is what I have in the .mailcap file. text/html; xdg-open %s &; test=test -n "$DISPLAY"; needsterminal; I wonder if some setting in chromium/chrome has been changed. Cheers! -- Mimosi

Re: A mutt mailcap problem

2018-05-12 Thread Kevin J. McCarthy
On Sat, May 12, 2018 at 11:15:26AM +1000, Brian Salter-Duke wrote: > I select the attachments with 'v', move the cursor down to the > quoted-printable text/html line and hit enter. Now using Mutt 1.8.0 > that menu does not come up. Instead of hitting enter, try typing m . -- Kevin J. McCarthy

Re: Libreoffice document can't open by mailcap entry

2018-01-10 Thread Jason
pen, but, file named as > "Assunto27-FORMULA.odt" showed up in libreoffice. > > I hope thies could help someone. > > Thanks. > For file names with spaces, you could try changing nametemplate=%s.odt to nametemplate='%s'.odt (notice quotation marks) in the mailcap entry:

Re: Libreoffice document can't open by mailcap entry

2018-01-10 Thread Marcelo Laia
On 10/01/18 at 02:05, David Woodfall wrote: > > What does mutt display the mimetype as? I found the problem! It was in the file name. File named "Assunto 27 - FORMULA.odt" dosen't open, but, file named as "Assunto27-FORMULA.odt" showed up in libreoffice. I hope thies could help someone.

Re: Libreoffice document can't open by mailcap entry

2018-01-09 Thread David Woodfall
Hi, I have the follow entry in mailcap: application/vnd.oasis.opendocument.text; libreoffice '%s'; edit=libreoffice '%s'; test=test -n "$DISPLAY"; description="OpenDocument Text Document"; nametemplate=%s.odt So, I attach a document and select it. I chose enter key to see

Libreoffice document can't open by mailcap entry

2018-01-09 Thread Marcelo Laia
Hi, I have the follow entry in mailcap: application/vnd.oasis.opendocument.text; libreoffice '%s'; edit=libreoffice '%s'; test=test -n "$DISPLAY"; description="OpenDocument Text Document"; nametemplate=%s.odt So, I attach a document and select it. I chose enter key to see

Firefox, ~/.mailcap and mutt with profile

2017-02-14 Thread Michelle Konzack
Good day, I have some Firefox profiles and like to use for for them specified mutt configs. In my WindowManager FVWM it works since ever by using mutt -F ~/.mutt/user_linux4miche...@gmail.com.conf however, /etc/mailcap is setup to message/rfc822; mutt -Rf '%s'; edit=mutt -f '%s

Re: 1.6.1 doesn't seem to use mailcap in the same way as 1.5.23 did - how to fix?

2016-05-13 Thread Chris Green
gt; > Version 1.6.1 doesn't call /home/chris/bin/muttfox (a script which > > > > handles getting the HTML mail to firefox), version 1.5.24 did. So > > > > what do I need to change to get 1.6.1 to work the way that 1.5.24 used > > > > to? With 1.5.24 th

Re: 1.6.1 doesn't seem to use mailcap in the same way as 1.5.23 did - how to fix?

2016-05-13 Thread Kevin J. McCarthy
t; handles getting the HTML mail to firefox), version 1.5.24 did. So > > > what do I need to change to get 1.6.1 to work the way that 1.5.24 used > > > to? With 1.5.24 the first line of .mailcap was used when you hit 'v' > > > in mutt. > > > > Try hitting

Re: 1.6.1 doesn't seem to use mailcap in the same way as 1.5.23 did - how to fix?

2016-05-13 Thread Chris Green
; > what do I need to change to get 1.6.1 to work the way that 1.5.24 used > > to? With 1.5.24 the first line of .mailcap was used when you hit 'v' > > in mutt. > > Try hitting m (by default bound to ) in the attachment viewer. Ah! Thank you, that works. Did the default get changed or what? -- Chris Green

Re: 1.6.1 doesn't seem to use mailcap in the same way as 1.5.23 did - how to fix?

2016-05-13 Thread Kevin J. McCarthy
With 1.5.24 the first line of .mailcap was used when you hit 'v' > in mutt. Try hitting m (by default bound to ) in the attachment viewer. -- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA signature.asc Description: PGP signature

Re: 1.6.1 doesn't seem to use mailcap in the same way as 1.5.23 did - how to fix?

2016-05-13 Thread Chris Green
> > > > It works OK but doesn't seem to use my .mailcap entries in the same > > was as 1.5.24 did. My .mailcap is:- > > Dit you set mailcap? I use 1.6.1 as well, and have: > > set mailcap_path = ~/.mutt/mailcap > I've never set it before, the mailcap I'm using

1.6.1 doesn't seem to use mailcap in the same way as 1.5.23 did - how to fix?

2016-05-13 Thread Chris Green
I have just locally built mutt 1.6.1 on my xubuntu 16.04 system to use instead of the 1.5.24 that xubuntu provides (because of the reverse video on exit bug I reported). It works OK but doesn't seem to use my .mailcap entries in the same was as 1.5.24 did. My .mailcap is:- text/html; /home

Re: mutts and mailcap

2016-05-09 Thread Grady Martin
. The help file says that is bound to view-attach "view attachment using mailcap entry if necessary" while 'm' is bound to view-mailcap "force viewing of attachment using mailcap". What's the difference? Apparently using mailcap is "necessary" on one system bu

view-attach vs. view-mailcap (was: Invoking an alternative command on a MIME part)

2015-04-28 Thread martin f krafft
also sprach Cameron Simpson c...@zip.com.au [2015-04-28 04:17 +0200]: I do not properly understand view-mailcap versus view-attach. I would appreciate someone else chiming in here. I think the difference is that view-attach tries to render inline (e.g. text/plain) and only resorts to run

Mutt output garbled after fullscreen mailcap entry

2014-04-06 Thread Chris Down
I use the following entry in my mailcap to view images fullscreen: image/*; sxiv -bf %s This displays images full screen in sxiv. However, this causes me to need to restart mutt afterwards (C-l does not fix it), as the display gets garbled. After I close the fullscreen window

Re: Mutt output garbled after fullscreen mailcap entry

2014-04-06 Thread Patrick Shanahan
* Chris Down ch...@chrisdown.name [04-06-14 23:19]: I use the following entry in my mailcap to view images fullscreen: image/*; sxiv -bf %s This displays images full screen in sxiv. However, this causes me to need to restart mutt afterwards (C-l does not fix it), as the display gets

Re: Mutt output garbled after fullscreen mailcap entry

2014-04-06 Thread Chris Down
Patrick Shanahan writes: !reset should reset the terminal Huh. I didn't think this was a terminal issue, but you're right, that does fix it. Is there a better way to fix this than writing a macro to do that? Where is the underlying cause for this? pgpOTOKuh1a5h.pgp Description: PGP signature

Re: Mutt output garbled after fullscreen mailcap entry

2014-04-06 Thread Chris Down
Chris Down writes: Is there a better way to fix this than writing a macro to do that? Where is the underlying cause for this? I changed my mailcap entry to: image/*; sxiv -bf %s \; reset I'm still interested in fixing the underlying cause. pgpGXzDeFpQu0.pgp Description: PGP signature

text/html mailcap entry won't work

2014-02-24 Thread LEVAI Daniel
Hi! I have this in my ~/.mailcap: text/html; links %s; needsterminal And I didn't set auto_view for text/html in Mutt, but when I press Enter or Space on the text/html part (after (v)iewing the message from index) it just display the raw HTML. I've been struggling with Mutt's mailcap handling

Re: text/html mailcap entry won't work

2014-02-24 Thread Maurice McCarthy
Personally I have no problem with text/html; /usr/bin/elinks -force-html %s Regards Maurice

Re: text/html mailcap entry won't work

2014-02-24 Thread MD
I have this in my .muttrc: auto_view text/html application/pdf application/ics # attachment types to show inline alternative_order text/enriched text/plain text/html # preferred order to view attachments and this is my .mailcap: text/html; /usr/bin/sensible-browser '%s'; description=HTML

Re: text/html mailcap entry won't work

2014-02-24 Thread LEVAI Daniel
On h, febr 24, 2014 at 17:54:54 +0100, MD wrote: I have this in my .muttrc: [...] On h, febr 24, 2014 at 11:38:44 +, Maurice McCarthy wrote: Personally I have no problem with [...] Thanks guys. I know these are *supposed* to work, but they don't :) That's why I'm asking for help :)

Re: text/html mailcap entry won't work

2014-02-24 Thread Timo Schmidt
On Mon 24.02.2014 11:29, LEVAI Daniel wrote: I have this in my ~/.mailcap: text/html; links %s; needsterminal And I didn't set auto_view for text/html in Mutt, but when I press Enter or Space on the text/html part (after (v)iewing the message from index) it just display the raw HTML

Re: text/html mailcap entry won't work

2014-02-24 Thread LEVAI Daniel
On h, febr 24, 2014 at 21:32:23 +0100, Timo Schmidt wrote: On Mon 24.02.2014 11:29, LEVAI Daniel wrote: I have this in my ~/.mailcap: text/html; links %s; needsterminal And I didn't set auto_view for text/html in Mutt, but when I press Enter or Space on the text/html part (after

Re: text/html mailcap entry won't work

2014-02-24 Thread Cameron Simpson
On 24Feb2014 21:45, LEVAI Daniel l...@ecentrum.hu wrote: On h, febr 24, 2014 at 21:32:23 +0100, Timo Schmidt wrote: See http://www.mutt.org/doc/devel/manual.html#tab-attachment-bindings in particular: view-mailcap m force viewing of attachment using mailcap Wow, you win

Re: text/html mailcap entry won't work

2014-02-24 Thread LEVAI Daniel
On k, febr 25, 2014 at 08:25:12 +1100, Cameron Simpson wrote: On 24Feb2014 21:45, LEVAI Daniel l...@ecentrum.hu wrote: On h, febr 24, 2014 at 21:32:23 +0100, Timo Schmidt wrote: See http://www.mutt.org/doc/devel/manual.html#tab-attachment-bindings in particular: view-mailcapm

mailcap command run even when not using auto_view

2013-10-08 Thread Bernard Massot
Hello. I've configured mutt to view .xlsx attachments inline if they're not too big. Here is my configuration: ~/.mailcap: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; ssconvert --export-type=Gnumeric_stf:stf_csv '%s' fd://1 2 /dev/null | column -s, -t; copiousoutput

Re: Mailcap

2013-02-13 Thread James Griffin
- Ed w...@comcast.net [2013-02-12 15:39:33 -0500] - : I have this in my mailcap to view images image/*; /usr/bin/gpicview '%s'; test=test -n $DISPLAY but when I open a message with an image attached mutt tells me there is no entry in mailcap, but if I go on to using v

Mailcap

2013-02-12 Thread Ed
I have this in my mailcap to view images image/*; /usr/bin/gpicview '%s'; test=test -n $DISPLAY but when I open a message with an image attached mutt tells me there is no entry in mailcap, but if I go on to using v then the image is displayed. I tried to see what I could find but did not have

Re: Mailcap

2013-02-12 Thread Ed
On Feb 12, Ed wrote: I have this in my mailcap to view images image/*; /usr/bin/gpicview '%s'; test=test -n $DISPLAY but when I open a message with an image attached mutt tells me there is no entry in mailcap, but if I go on to using v then the image is displayed. I tried to see what I

problem with mailcap and searching

2012-05-29 Thread Xylo Drum
I have a pretty much default mutt setup including some very simple lines in my .mailcap such as: image/jpg; xview %s image/jpeg; xview %s these work fine for viewing images, but when trying to do a 'l' search with a pattern of ~bfoo mutt keeps throwing up mailcap entry for type image/jpeg

Re: problem with mailcap and searching

2012-05-29 Thread Gary Johnson
On 2012-05-29, Xylo Drum wrote: I have a pretty much default mutt setup including some very simple lines in my .mailcap such as: image/jpg; xview %s image/jpeg; xview %s these work fine for viewing images, but when trying to do a 'l' search with a pattern of ~bfoo mutt keeps throwing up

Re: problem with mailcap and searching

2012-05-29 Thread Xylo Drum
Hi Gary, Thanks for swift reply. Your solution works in that it fixes the 'search' problem, but it means that I can't view the attachments with 'v' - there needs to be a way to use 'switch' in the mailcap, or get mutt to use different mailcaps in different contexts. Cheers, On Tue, May 29, 2012

Re: problem with mailcap and searching

2012-05-29 Thread Gary Johnson
On 2012-05-29, Xylo Drum wrote: On Tue, May 29, 2012 at 5:20 PM, Gary Johnson garyj...@spocom.com wrote: On 2012-05-29, Xylo Drum wrote: I have a pretty much default mutt setup including some very simple lines in my .mailcap such as: image/jpg; xview %s image/jpeg; xview %s

Re: problem with mailcap and searching

2012-05-29 Thread Xylo Drum
some very simple lines in my .mailcap such as: image/jpg; xview %s image/jpeg; xview %s these work fine for viewing images, but when trying to do a 'l' search with a pattern of ~bfoo mutt keeps throwing up mailcap entry for type image/jpeg not found Mutt is looking for a rule

mutt 1.5.21 mailcap text/html

2012-01-03 Thread Matthias Apitz
Hello, I'm struggling a bit with the above combination; I have in ~/.muttrc auto_view text/html and in the file ~/.mailcap the line: image/*;xv %s which works fine displaying image attachments with xv(1); the line text/html; lynx -dump %s; copiousoutput; nametemplate=%s.html works fine too

Re: mutt 1.5.21 mailcap text/html

2012-01-03 Thread Patrick Shanahan
* Matthias Apitz g...@unixarea.de [01-03-12 07:30]: I'm struggling a bit with the above combination; I have in ~/.muttrc auto_view text/html and in the file ~/.mailcap the line: image/*;xv %s which works fine displaying image attachments with xv(1); the line text/html; lynx -dump

Re: mutt 1.5.21 mailcap text/html

2012-01-03 Thread Matthias Apitz
El día Tuesday, January 03, 2012 a las 07:58:20AM -0500, Patrick Shanahan escribió: try: text/html;firefox -new-window %s\;exit 1; \ nametemplate=%s.html; test=test -n $DISPLAY one line broken after exit 1; for display thanks; but gives as well: mailcap entry for type text/html not found

Re: mutt 1.5.21 mailcap text/html

2012-01-03 Thread Patrick Shanahan
; but gives as well: mailcap entry for type text/html not found do you still have a line with *only*: text/thml remove it. firefox is not a character application, it is graphical. The error msg is correct. I disagree; a correct messages would be found invalid mailcap entry for type text

Re: mutt 1.5.21 mailcap text/html

2012-01-03 Thread Matthias Apitz
=%s.html; test=test -n $DISPLAY one line broken after exit 1; for display thanks; but gives as well: mailcap entry for type text/html not found do you still have a line with *only*: text/thml remove it: here is what I have in ~/,mailcap file: $ fgrep text .mailcap # text/html

Re: mutt 1.5.21 mailcap text/html

2012-01-03 Thread Jostein Berntsen
;firefox -new-window %s\;exit 1; \ nametemplate=%s.html; test=test -n $DISPLAY one line broken after exit 1; for display thanks; but gives as well: mailcap entry for type text/html not found do you still have a line with *only*: text/thml remove it: here is what I have

Re: mutt 1.5.21 mailcap text/html

2012-01-03 Thread Matthias Apitz
El día Tuesday, January 03, 2012 a las 02:37:49PM +0100, Jostein Berntsen escribió: here is what I have in ~/,mailcap file: $ fgrep text .mailcap # text/html; lynx -dump %s; copiousoutput; nametemplate=%s.html text/html;firefox3 -new-window %s\;exit 1; nametemplate=%s.html; test=test

Re: mailcap entry for html - escaping spaces

2011-11-06 Thread Tim Johnson
* Cameron Simpson c...@zip.com.au [05 16:28]: On 05Nov2011 14:23, Tim Johnson t...@akwebsoft.com wrote: | Done. I've installed the css package. Added the invocation of | env.sh to to .profile. Restarted mutt. With environment :). | Below is result of mutt - !env [...] |

Re: mailcap entry for html - escaping spaces

2011-11-06 Thread Cameron Simpson
in the mailcap. | | remap: /Users/tim/rc/remap: No such file or directory | | Save [/Users/tim/dl/muttAUDN80.]? | | Also, would like to eliminate prompt to save file. Do you mind | resending me the URL for your documentation. I lost it. Sorry! http://www.cskk.ezoshosting.com/cs/css/manuals

Re: mailcap entry for html - escaping spaces

2011-11-06 Thread Tim Johnson
in the mailcap. | | remap: /Users/tim/rc/remap: No such file or directory | | Save [/Users/tim/dl/muttAUDN80.]? | | Also, would like to eliminate prompt to save file. Do you mind | resending me the URL for your documentation. I lost it. Sorry! http://www.cskk.ezoshosting.com/cs/css

Re: mailcap entry for html - escaping spaces

2011-11-06 Thread Cameron Simpson
On 06Nov2011 13:46, Tim Johnson t...@akwebsoft.com wrote: | * Cameron Simpson c...@zip.com.au [06 11:31]: | | Also, would like to eliminate prompt to save file. Do you mind | | resending me the URL for your documentation. I lost it. Sorry! | |

Re: mailcap entry for html - escaping spaces

2011-11-05 Thread Tim Johnson
* Cameron Simpson c...@zip.com.au [04 17:36]: On 04Nov2011 15:50, Tim Johnson t...@akwebsoft.com wrote: | And from env.sh, I note the following: | : ${OS:=''} | case `uname -sr` in | SunOS\ [56789].\*) OS=solaris ;; | SunOS\ \*) OS=sunos ;; | Linux\ \*)

Re: mailcap entry for html - escaping spaces

2011-11-05 Thread Cameron Simpson
On 05Nov2011 14:23, Tim Johnson t...@akwebsoft.com wrote: | Done. I've installed the css package. Added the invocation of | env.sh to to .profile. Restarted mutt. With environment :). | Below is result of mutt - !env [...] | TMPDIR=/var/folders/rj/6r6lch2d1mqb6p8k7s_ydrh8gn/T/

Re: mailcap entry for html - escaping spaces

2011-11-04 Thread Tim Johnson
* Cameron Simpson c...@zip.com.au [03 18:42]: On 03Nov2011 17:07, Tim Johnson t...@akwebsoft.com wrote: | Cameron, thanks for those explanations. | I have not yet installed your css package. Been really busy here. | Will try to get to it tomorrow or saturday. | This is fun. And

Re: mailcap entry for html - escaping spaces

2011-11-04 Thread Cameron Simpson
On 04Nov2011 15:50, Tim Johnson t...@akwebsoft.com wrote: | And from env.sh, I note the following: | : ${OS:=''} | case `uname -sr` in | SunOS\ [56789].\*) OS=solaris ;; | SunOS\ \*) OS=sunos ;; | Linux\ \*) OS=linux ;; | esac I'm using darwin. But please update your

Re: mailcap entry for html - escaping spaces

2011-11-03 Thread Tim Johnson
* Cameron Simpson c...@zip.com.au [02 18:51]: | | This discrepancy is odd, and a little troubling. We probably need to | | investigate that a little. | | I think this has to do with the way that iTerm2 passes the | | environment to mutt... but I am just guessing. | | Hmm. I'm

Re: mailcap entry for html - escaping spaces

2011-11-03 Thread Tim Johnson
* Tim Johnson t...@akwebsoft.com [03 08:15]: * Cameron Simpson c...@zip.com.au [02 18:51]: | | This discrepancy is odd, and a little troubling. We probably need to | | investigate that a little. | | I think this has to do with the way that iTerm2 passes the | | environment

Re: mailcap entry for html - escaping spaces

2011-11-03 Thread Cameron Simpson
On 03Nov2011 07:55, Tim Johnson t...@akwebsoft.com wrote: | * Cameron Simpson c...@zip.com.au [02 18:51]: | Ok, now running iTerm2. How do you invoke mutt then? A special iterm2 | profile or something else? | | I just use /opt/local/bin/mutt as the command in a profile. | I can also

Re: mailcap entry for html - escaping spaces

2011-11-03 Thread Tim Johnson
* Cameron Simpson c...@zip.com.au [03 11:47]: On 03Nov2011 07:55, Tim Johnson t...@akwebsoft.com wrote: That sounds right. Taking the latter case first, mutt gets the environment because your login shell has build the environment before mutt gets invoked. For the former case, mutt

Re: mailcap entry for html - escaping spaces

2011-11-03 Thread Cameron Simpson
On 03Nov2011 17:07, Tim Johnson t...@akwebsoft.com wrote: | Cameron, thanks for those explanations. | I have not yet installed your css package. Been really busy here. | Will try to get to it tomorrow or saturday. | This is fun. And informative. No worries, whenever. | BTW: This

Re: mailcap entry for html - escaping spaces

2011-11-02 Thread Tim Johnson
code and picked out a list of what I take to be | commands, but don't appear to be shell commands (subcommands?). | As follows: | mkdirn | withurl | fixexts | file2mime | mailcap | readline | so... I'm guessing that if we solve the problem with mkdirn, | others will fall

Re: mailcap entry for html - escaping spaces

2011-11-02 Thread Cameron Simpson
On 02Nov2011 09:59, Tim Johnson t...@akwebsoft.com wrote: | * Cameron Simpson c...@zip.com.au [01 17:55]: | On 01Nov2011 16:53, Tim Johnson t...@akwebsoft.com wrote: | | From bash - linus:~ tim$ echo $PATH | |

Re: mailcap entry for html - escaping spaces

2011-11-02 Thread Cameron Simpson
On 03Nov2011 08:30, I wrote: | On 02Nov2011 09:59, Tim Johnson t...@akwebsoft.com wrote: | | * Cameron Simpson c...@zip.com.au [01 17:55]: | | On 01Nov2011 16:53, Tim Johnson t...@akwebsoft.com wrote: | | | From bash - linus:~ tim$ echo $PATH | | |

Re: mailcap entry for html - escaping spaces

2011-11-01 Thread Tim Johnson
. It has a million switches (which you can put in $APPHELPER_PREOPTS to set default behaviour). Manual page here: http://www.cskk.ezoshosting.com/cs/css/manuals/apphelper.1.html Looking at it. Since apphelper finds the file viewer by consulting the mailcap file I in fact keep two such files

Re: mailcap entry for html - escaping spaces

2011-11-01 Thread Cameron Simpson
to be shell commands (subcommands?). | As follows: | mkdirn | withurl | fixexts | file2mime | mailcap | readline | so... I'm guessing that if we solve the problem with mkdirn, | others will fall in place? Ok, you may hate the next bit. All the items you cite are my own scripts

Re: mailcap entry for html - escaping spaces

2011-10-31 Thread Cameron Simpson
On 30Oct2011 17:35, Tim Johnson t...@akwebsoft.com wrote: | * Cameron Simpson c...@zip.com.au [111030 13:12]: | Should do. The open-an-app mechanism is the same. | | However, as written withstdin leaves the temp copy lying around (the | --keep mode). For HTML this won't waste much disc space

Re: mailcap entry for html - escaping spaces

2011-10-30 Thread Tim Johnson
* Cameron Simpson c...@zip.com.au [111029 17:51]: The script is (was) wrong. withstdin was actually a differently purposed script and did exhibit that behaviour. I have modified it. Invoke the new version like this: text/html; withstdin --keep --ext=.html open -a Chrome %s You

Re: mailcap entry for html - escaping spaces

2011-10-30 Thread Cameron Simpson
://www.cskk.ezoshosting.com/cs/css/manuals/apphelper.1.html Since apphelper finds the file viewer by consulting the mailcap file I in fact keep two such files around: a plain mailcap and a mailcap-ah which has lines like: image/jpg; ah %s xv; gui image/jpg; iminfo %s; copiousoutput which I use

Re: mailcap entry for html - escaping spaces

2011-10-30 Thread Tim Johnson
apphelper finds the file viewer by consulting the mailcap file I in fact keep two such files around: a plain mailcap and a mailcap-ah which has lines like: image/jpg; ah %s xv; gui image/jpg; iminfo %s; copiousoutput which I use with mutt. As you can see I run apphelper via a small

Re: mailcap entry for html - escaping spaces

2011-10-29 Thread Tim Johnson
scripts not yet part of the main set). For your situation the simplest thing for me would be: ln -s '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' $HOME/bin-local/chrome (On one line, should the mailer fold things.) Then just make the mailcap read: text/html

Re: mailcap entry for html - escaping spaces

2011-10-29 Thread Cameron Simpson
On 29Oct2011 08:08, Tim Johnson t...@akwebsoft.com wrote: | For your situation the simplest thing for me would be: |ln -s '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' $HOME/bin-local/chrome | (On one line, should the mailer fold things.) | Then just make the mailcap read

Re: mailcap entry for html - escaping spaces

2011-10-29 Thread Tim Johnson
* Cameron Simpson c...@zip.com.au [111029 13:27]: Does Chrome run at all? Yes. If so, try changing your mailcap line to read: text/html; open -a Chrome %s Done. which uses the Mac's open command to open the URL or file using the chrome app. That usage works for me (from

Re: mailcap entry for html - escaping spaces

2011-10-29 Thread Patrick Shanahan
* Tim Johnson t...@akwebsoft.com [10-29-11 20:12]: * Cameron Simpson c...@zip.com.au [111029 13:27]: That works. However, if I do 'm' (view-mailcap) or Cr (view-attach) focus switches to a new chrome tab, but I get a This webpage is not found error message. Example: location

Re: mailcap entry for html - escaping spaces

2011-10-29 Thread Cameron Simpson
On 29Oct2011 16:09, Tim Johnson t...@akwebsoft.com wrote: | * Cameron Simpson c...@zip.com.au [111029 13:27]: | Does Chrome run at all? | Yes. | If so, try changing your mailcap line to read: | |text/html; open -a Chrome %s | Done. | which uses the Mac's open command to open the URL

  1   2   3   4   >