No matching mailcap entry...
Dear all, I am having trouble configuring mailcap to do anything at all. I am configuring Mutt 1.2.5i on Cygwin (see mutt -v output below), and it seems to run normally in other respects -- at any rate, I can read, send, and receive messages. When I run: mutt -F c:/cygwin/unixmail/users/tbaker/muttrc -f test-file Mutt correctly reads: 1) c:/cygwin/unixmail/users/tbaker/muttrc, which sources 2) c:/cygwin/unixmail/etc/Muttrc In _both_ muttrc and Muttrc (alternately), I have tested the following: set mailcap_path=c:/cygwin/unixmail/etc/mailcap set mailcap_path=/cygdrive/c/cygwin/unixmail/etc/mailcap set mailcap_path=/unixmail/etc/mailcap where c:/cygwin/unixmail/etc/mailcap consists of just one test line: application/msword; less %s Yet when I run mutt -F c:/cygwin/unixmail/users/tbaker/muttrc -f test-file and try to call up an attachment of Content-Type: application/msword, confirming that the type is application/msword, Mutt tells me No matching mailcap entry found. Viewing as text. I have spent the better part of three hours checking and re-checking the pathnames, Content-Type:, dependencies between configuration files, etc -- even on different test-files -- and am at a loss as to where the problem could lie. Am I overlooking something obvious? Tom -- output of mutt -v -- Mutt 1.2.5i (2000-07-28) Copyright (C) 1996-2000 Michael R. Elkins and others. Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'. Mutt is free software, and you are welcome to redistribute it under certain conditions; type `mutt -vv' for details. System: CYGWIN_NT-5.0 1.3.10(0.51/3/2) [using ncurses 5.2] Compile options: -DOMAIN -DEBUG +HOMESPOOL -USE_SETGID +USE_DOTLOCK +USE_FCNTL -USE_FLOCK -USE_IMAP -USE_GSS -USE_SSL -USE_POP -HAVE_REGCOMP +USE_GNU_REGEX +HAVE_COLOR +HAVE_PGP -BUFFY_SIZE -EXACT_ADDRESS -ENABLE_NLS SENDMAIL=no MAILPATH=spool SHAREDIR=/cygdrive/f/home/projects/unixmail/build/mutt/local/lib/mutt SYSCONFDIR=/cygdrive/f/home/projects/unixmail/build/mutt/local/etc -ISPELL To contact the developers, please mail to [EMAIL PROTECTED]. To report a bug, please use the muttbug utility. -- Dr. Thomas Baker [EMAIL PROTECTED] Birlinghoven Library, Fraunhofer-Gesellschaft mobile +49-171-408-5784 Institutszentrum Schloss Birlinghoven work +49-30-8109-9027 53754 Sankt Augustin, Germany fax +49-2241-14-2619
Re: no matching mailcap entry found error
On Thu, Feb 01, 2001 at 09:29:06AM -, Jim M. wrote: Then I openned the mutt. I selected the first message that had pdf attachments. I typed "v" to see attahcments. I highlighted an attachments of type ".pdf". Hit the return. I got the error: "no matching mailcap entry found. viewing in text mode". [Note that I am replying only to mutt-users and not mutt-dev as it will be less confusing to keep the discussion in one place and mutt-users seems more appropriate.] There are a number of things I can think of that could be causing this problem. I typed "v" to see attahcments. I highlighted an attachments of type ".pdf". Hit the return. First of all, mutt will not use the "application/pdf" entry in your mailcap unless the content-type of the attachment is application/pdf. Simply having a file name suffix/extension of .pdf is not sufficient. If the content-type is application/octet-stream, for example, you may need to use an external program like mutt.octet.filter. I added the "application/pdf; /usr/bin/acroread %s" to my /etc/mailcap file as someone in here suggested.. saved it. According to the mutt 1.2 manual, mutt looks in a serial of mailcap files, which by default are: ${HOME}/.mailcap:/usr/local/share/mutt/mailcap:/etc/mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap I think that mutt looks in all of these, not just the first one it finds, so putting your entry in /etc/mailcap should be fine unless this path has been modified by a mailcap_path setting in a muttrc. Maybe muttrc missing something. Where is muttrc located at?. Again according to the mutt 1.2 manual, the system muttrc file is "typically /usr/local/share/mutt/Muttrc or /etc/Muttrc". Mutt next looks for ~/.muttrc and then ~/.mutt/muttrc. You can also type 'mutt -v' to see the SHAREDIR and SYSCONFDIR directories specified for your particular mutt when it was built. Another way to find the system Muttrc, since you're running Red Hat Linux, is to use the 'locate' command. Execute 'locate Muttrc' to see where that file is on your system. When you find it, check the setting of mailcap_path, if any. HTH, Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | RF Communications Product Generation Unit | Spokane, Washington, USA
Re: no matching mailcap entry found error
Are you sure the file your received had it's MIME type set to: application/pdf? On Thu, Feb 01, 2001 at 09:29:06AM -, Jim M. wrote: Hi, I installed acroread rpm for my redhat 6.0. It is in /usr/bin/acroread and when I type acroread it nicely opens up. I added the "application/pdf; /usr/bin/acroread %s" to my /etc/mailcap file as someone in here suggested.. saved it. Then I openned the mutt. I selected the first message that had pdf attachments. I typed "v" to see attahcments. I highlighted an attachments of type ".pdf". Hit the return. I got the error: "no matching mailcap entry found. viewing in text mode". Then i saw the attachment as bunch of garbage stuff on the screen. Tried different things still did not work. Maybe muttrc missing something. Where is muttrc located at?. What is wrong and how can i fix it?. J _ Get your FREE download of MSN Explorer at http://explorer.msn.com -- Ben Reser [EMAIL PROTECTED] http://ben.reser.org Pool is a game of racism for it is the white ball eliminating all the other races off the green felt earth.