Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #240011

Mutt/Neomutt and mailcap

From Nate Bargmann <n0nb@n0nb.us>
Newsgroups linux.debian.user
Subject Mutt/Neomutt and mailcap
Date 2021-09-15 15:40 +0200
Message-ID <CXDiN-1Hw-11@gated-at.bofh.it> (permalink)
Organization Amateur Radio!

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

As there are a lot of Mutt/Neomutt users on this list, maybe someone can
point me in the right direction.

Recently via another mailing list a message was posted that included a
diff file with the extension of .patch.  The MIME encoding is shown as
application/octet-stream, using Neomutt's view command.

Pressing Enter on the file name resulting in Geany (GUI text editor)
being opened with the file.  Nothing in my ~/.mailcap nor anything in
/etc/mailcap mapped Geany to this MIME encoding/file name.

As I hadn't been using Geany, I removed it and added the following line
to my ~/.mailcap:

application/octet-stream; vim %s; description=Patch file; nametemplate=%s.patch

Now Neomutt calls less to show the file!

I'm left to be scratching my head as shown here:

$ neomutt -nF /dev/null -Q mailcap_path
set mailcap_path = "~/.mailcap:/usr/share/neomutt/mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap"

only ~/.mailcap and /etc/mailcap exist on my system.  I see that less
only shows twice in /etc/mailcap for text/plain and text/*, though the
latter is followed by a text/* that specifies vim.  In ~/.mailcp less is
not shown anywhere.

I'm rather puzzled, to say the least.

- Nate

-- 
"The optimist proclaims that we live in the best of all
possible worlds.  The pessimist fears this is true."
Web: https://www.n0nb.us
Projects: https://github.com/N0NB
GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Mutt/Neomutt and mailcap Nate Bargmann <n0nb@n0nb.us> - 2021-09-15 15:40 +0200
  Re: Mutt/Neomutt and mailcap Jonathan Dowland <jon+debian-user@dow.land> - 2021-09-15 17:50 +0200
    Re: Mutt/Neomutt and mailcap Nate Bargmann <n0nb@n0nb.us> - 2021-09-15 20:00 +0200
      Re: Mutt/Neomutt and mailcap Greg Wooledge <greg@wooledge.org> - 2021-09-15 20:20 +0200
        Re: Mutt/Neomutt and mailcap Nate Bargmann <n0nb@n0nb.us> - 2021-09-15 20:20 +0200
        Re: Mutt/Neomutt and mailcap <tomas@tuxteam.de> - 2021-09-15 21:20 +0200
          Re: Mutt/Neomutt and mailcap Nate Bargmann <n0nb@n0nb.us> - 2021-09-15 23:30 +0200
            Re: Mutt/Neomutt and mailcap David Wright <deblis@lionunicorn.co.uk> - 2021-09-16 04:40 +0200
              Re: Mutt/Neomutt and mailcap <tomas@tuxteam.de> - 2021-09-16 08:30 +0200
              Re: Mutt/Neomutt and mailcap Nate Bargmann <n0nb@n0nb.us> - 2021-09-16 12:40 +0200
                Re: Mutt/Neomutt and mailcap David Wright <deblis@lionunicorn.co.uk> - 2021-09-19 06:50 +0200
        Re: Mutt/Neomutt and mailcap Jonathan Dowland <jon+debian-user@dow.land> - 2021-09-16 09:50 +0200
          Re: Mutt/Neomutt and mailcap <tomas@tuxteam.de> - 2021-09-16 11:10 +0200
          Re: Mutt/Neomutt and mailcap Greg Wooledge <greg@wooledge.org> - 2021-09-16 13:50 +0200
            Re: Mutt/Neomutt and mailcap Jonathan Dowland <jon+debian-user@dow.land> - 2021-09-18 00:30 +0200
  Re: Mutt/Neomutt and mailcap Andrei POPESCU <andreimpopescu@gmail.com> - 2021-09-16 09:40 +0200
    Re: Mutt/Neomutt and mailcap Nate Bargmann <n0nb@n0nb.us> - 2021-09-16 12:10 +0200

csiph-web