Re: Re: mailcap on Windows WSL

2024-10-08 Thread Jan Eden via Mutt-users
On 2024-10-08 08:26, Michael Kjörling wrote: > On 8 Oct 2024 08:55 +0200, from mutt-users@mutt.org (Jan Eden via Mutt-users): > > I need to use mutt within the WSL of MS Windows. To display HTML > > mails via mailcap, I created a small script which reads from STDIN, > > wr

Re: Re: mailcap on Windows WSL

2024-10-08 Thread Jan Eden via Mutt-users
On 2024-10-08 09:38, José María Mateos wrote: > On Tue, Oct 8, 2024, at 08:55, Jan Eden via Mutt-users wrote: > > with open('/var/tmp/htmlfile', 'w', encoding='iso-8859-1') as tmp_file: > > ... > > > > but this only changed the error message to: > > > > 'latin-1' can't encode character '...' i

Re: mailcap on Windows WSL

2024-10-08 Thread Michael Kjörling
On 8 Oct 2024 08:55 +0200, from mutt-users@mutt.org (Jan Eden via Mutt-users): > I need to use mutt within the WSL of MS Windows. To display HTML > mails via mailcap, I created a small script which reads from STDIN, > writes a temporary file and opens it with the Edge browser: >

Re: mailcap on Windows WSL

2024-10-08 Thread José María Mateos
On Tue, Oct 8, 2024, at 08:55, Jan Eden via Mutt-users wrote: > with open('/var/tmp/htmlfile', 'w', encoding='iso-8859-1') as tmp_file: > ... > > but this only changed the error message to: > > 'latin-1' can't encode character '...' in position ...: ordinal not in > range(256) You can tell o

mailcap on Windows WSL

2024-10-08 Thread Jan Eden via Mutt-users
Good morning, I need to use mutt within the WSL of MS Windows. To display HTML mails via mailcap, I created a small script which reads from STDIN, writes a temporary file and opens it with the Edge browser: # ~/.mutt/mailcap text/html; ~/.mutt/htmlviewer html # ~/.mutt/htmlviewer with open

Re: HTML viewing in lynx without view-mailcap

2024-07-10 Thread J
On Fri, Jul 05, 2024 at 04:34:55AM CDT José María Mateos wrote: > On Thu, Jul 04, 2024 at 04:39:44PM -0500, J wrote: > > Hello, > > > > I have a little problem that I can't quite figure out (OS is Debian 10.9). > > On my current system, using Mutt 2.1.5, I have to

Re: HTML viewing in lynx without view-mailcap

2024-07-05 Thread José María Mateos
On Thu, Jul 04, 2024 at 04:39:44PM -0500, J wrote: Hello, I have a little problem that I can't quite figure out (OS is Debian 10.9). On my current system, using Mutt 2.1.5, I have to use 'm' (view with mailcap) to open an html part in lynx; hitting Enter simply dumps the co

Re: HTML viewing in lynx without view-mailcap

2024-07-05 Thread Michael Kjörling
On 4 Jul 2024 16:39 -0500, from elect...@emypeople.net (J): > I have a little problem that I can't quite figure out (OS is Debian > 10.9). On my current system, using Mutt 2.1.5, I have to use 'm' > (view with mailcap) to open an html part in lynx; hitting Enter > sim

Re: HTML viewing in lynx without view-mailcap

2024-07-04 Thread Rene Kita
On Thu, Jul 04, 2024 at 04:39:44PM -0500, J wrote: > Hello, > > I have a little problem that I can't quite figure out (OS is Debian 10.9). On > my current system, using Mutt 2.1.5, I have to use 'm' (view with mailcap) to > open an html part in lynx; hitting Enter

HTML viewing in lynx without view-mailcap

2024-07-04 Thread J
Hello, I have a little problem that I can't quite figure out (OS is Debian 10.9). On my current system, using Mutt 2.1.5, I have to use 'm' (view with mailcap) to open an html part in lynx; hitting Enter simply dumps the contents into the pager. On an older system, using N

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-office

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 "

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 [ cu

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.

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

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 shouldn't

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/*;

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, an

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 e

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 pr

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 request

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 major

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 samp

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?

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 c

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:

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
;iew a text/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 &g

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

2020-03-01 Thread Kevin J. McCarthy
7; 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 that probably changed the default "Enter" keybinding for you. -- Kevin J. McCarthy GPG Fin

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 shoul

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. But I&#

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 GP

Re: Libreoffice document can't open by mailcap entry

2018-01-10 Thread Jason
7;t open, 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

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

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 cho

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 cho

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=m

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.

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. > > > &g

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; > 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

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;

Re: mutts and mailcap

2016-05-08 Thread Grady Martin
code them. 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&

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

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 signatur

Re: Mutt output garbled after fullscreen mailcap entry

2014-04-06 Thread Patrick Shanahan
* Chris Down [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 disp

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, the

Re: text/html mailcap entry won't work

2014-02-24 Thread LEVAI Daniel
> > m force viewing of attachment using mailcap > > > > Wow, you win. > > > > But this doesn't make sense: > > > > Using these mailcap entries: > > > > text/html; google-chrome %s; nametemplate=%s.html; test=test -n &q

Re: text/html mailcap entry won't work

2014-02-24 Thread Cameron Simpson
On 24Feb2014 21:45, LEVAI Daniel 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: > > m force viewing of attachment using mailcap > > Wow, you

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

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)

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 :) Dan

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'; descri

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

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 m

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

Re: Mailcap

2013-02-13 Thread James Griffin
- Ed [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

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

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

Re: problem with mailcap and searching

2012-05-29 Thread Xylo Drum
ding 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 >> >> w

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 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: > >> > >>

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 conte

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 >

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 imag

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

Re: mutt 1.5.21 && mailcap && text/html

2012-01-03 Thread Jostein Berntsen
scribió: > > > > > > > try: text/html;firefox -new-window %s\;exit 1; \ > > > > nametemplate=%s.html; test=test -n "$DISPLAY" > > > > > > > > one line broken after "exit 1;" for display > > > > > >

Re: mutt 1.5.21 && mailcap && text/html

2012-01-03 Thread Matthias Apitz
\;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

Re: mutt 1.5.21 && mailcap && text/html

2012-01-03 Thread Patrick Shanahan
ken 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. > > > > firefox is not a character application, it is graphical. The error msg is > > correct.

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: mail

Re: mutt 1.5.21 && mailcap && text/html

2012-01-03 Thread Patrick Shanahan
* Matthias Apitz [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 li

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 fin

Re: mailcap entry for html - escaping spaces

2011-11-06 Thread Cameron Simpson
On 06Nov2011 13:46, Tim Johnson wrote: | * Cameron Simpson [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! | > | > http://www.cskk.ezoshosting.com/cs/css/manuals/apphelper.1.html | > |

Re: mailcap entry for html - escaping spaces

2011-11-06 Thread Tim Johnson
"xv the-file", presuming you have "xv %s" 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 > | rese

Re: mailcap entry for html - escaping spaces

2011-11-06 Thread Cameron Simpson
gin stuff, so maybe I have never noticed the system default. | > I'm hoping xv worked? | It loads, but does not load the file. I just get the splash screen That's no good. While "xv" is open, what does "ps" show its command line to be? It should be running "

Re: mailcap entry for html - escaping spaces

2011-11-06 Thread Tim Johnson
* Cameron Simpson [05 16:28]: > On 05Nov2011 14:23, Tim Johnson 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/6r6lch2d1mqb6p8

Re: mailcap entry for html - escaping spaces

2011-11-05 Thread Cameron Simpson
On 05Nov2011 14:23, Tim Johnson 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/ Interesting. Seems a surpri

Re: mailcap entry for html - escaping spaces

2011-11-05 Thread Tim Johnson
* Cameron Simpson [04 17:36]: > On 04Nov2011 15:50, Tim Johnson 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 us

Re: mailcap entry for html - escaping spaces

2011-11-04 Thread Cameron Simpson
On 04Nov2011 15:50, Tim Johnson 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 env.sh to the attach

Re: mailcap entry for html - escaping spaces

2011-11-04 Thread Tim Johnson
* Cameron Simpson [03 18:42]: > On 03Nov2011 17:07, Tim Johnson 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. OK. Starting t

Re: mailcap entry for html - escaping spaces

2011-11-03 Thread Cameron Simpson
On 03Nov2011 17:07, Tim Johnson 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 pythonist has notices

Re: mailcap entry for html - escaping spaces

2011-11-03 Thread Tim Johnson
* Cameron Simpson [03 11:47]: > On 03Nov2011 07:55, Tim Johnson 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 gets invoked possibly directly

Re: mailcap entry for html - escaping spaces

2011-11-03 Thread Cameron Simpson
On 03Nov2011 07:55, Tim Johnson wrote: | * Cameron Simpson [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 launch mutt directly from the defaul

Re: mailcap entry for html - escaping spaces

2011-11-03 Thread Tim Johnson
* Tim Johnson [03 08:15]: > * Cameron Simpson [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

Re: mailcap entry for html - escaping spaces

2011-11-03 Thread Tim Johnson
* Cameron Simpson [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 using iTerm

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 wrote: | | * Cameron Simpson [01 17:55]: | | > On 01Nov2011 16:53, Tim Johnson wrote: | | > | From bash - linus:~ tim$ echo $PATH | | > | /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/b

Re: mailcap entry for html - escaping spaces

2011-11-02 Thread Cameron Simpson
On 02Nov2011 09:59, Tim Johnson wrote: | * Cameron Simpson [01 17:55]: | > On 01Nov2011 16:53, Tim Johnson wrote: | > | From bash - linus:~ tim$ echo $PATH | > | /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin | > | From mutt echo $PATH | > |

Re: mailcap entry for html - escaping spaces

2011-11-02 Thread Tim Johnson
#x27; full path, I'm now getting error messages with apphelper > | execute: > | the first was on > | mkdirn - command not recognized. > | I went thru your code and picked out a list of what I take to be > | commands, but don't appear to be shell commands (s

Re: mailcap entry for html - escaping spaces

2011-11-01 Thread Cameron Simpson
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 in place? Ok, you may hate the nex

Re: mailcap entry for html - escaping spaces

2011-11-01 Thread Tim Johnson
uot; rigmarole tedious. > > 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

  1   2   3   4   >