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


Groups > linux.debian.user > #240026

Re: Mutt/Neomutt and mailcap

From Nate Bargmann <n0nb@n0nb.us>
Newsgroups linux.debian.user
Subject Re: Mutt/Neomutt and mailcap
Date 2021-09-15 20:20 +0200
Message-ID <CXHFM-4py-19@gated-at.bofh.it> (permalink)
References <CXDiN-1Hw-11@gated-at.bofh.it> <CXFkB-2S3-3@gated-at.bofh.it> <CXHmp-43N-1@gated-at.bofh.it> <CXHFM-4py-17@gated-at.bofh.it>
Organization Amateur Radio!

Show all headers | View raw


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

* On 2021 15 Sep 13:02 -0500, Greg Wooledge wrote:
> On Wed, Sep 15, 2021 at 12:58:10PM -0500, Nate Bargmann wrote:
> > * On 2021 15 Sep 10:44 -0500, Jonathan Dowland wrote:
> > > What does this command report?
> > > 
> > >     ;see --norun application/octet-stream:/dev/null
> > 
> > In the message window, "key not bound", in the view attachment window,
> > "no tagged entries".  If I tag the file attachment, then ; is accepted
> > and s is interpreted as 'save file' and the rest of the command string
> > becomes the proposed file name to save.
> > 
> > I tried preceding the command with : instead and that failed.
> 
> Jonathan's message confused me too.  As far as I can tell, "see" is
> a *shell* command, not a mutt command.  I don't know why there's a ";"
> in front of it.

Ahh!  Thanks for that bit of info, Greg!  I'll admit that is one command
I don't recall running across in 25 years of using Linux.

The man page synopsis:

run‐mailcap, view, see, edit, compose, print - execute programs via en‐
tries in the mailcap file

> unicorn:~$ see --norun application/octet-stream:/dev/null
> Error: no "view" mailcap rules found for type "application/octet-stream"

Here it is apparently picking up my ~/.mailcap definition:

$ see --norun application/octet-stream:/dev/null
vim /dev/null

But Neomutt is picking up less instead.  This after closing and
restarting Neomutt after changing the file.

> Nothing else I tried made any more sense than that.  Even using ":"
> instead of ";" (to invoke it as a mutt command) didn't work, because "see"
> isn't a mutt command.

Thanks for restoring my limited sanity.  ;-D

I 'see' what was intended now.

The manual page leads me to the mime.types file, of which I only have a
copy in /etc.  For 'application/octet-stream' it shows this:

application/octet-stream                        bin deploy msu msp

which is not the extension of the attached file.  The .patch extension
appears to be:

text/x-diff                                     diff patch

Of course, we're now dealing with a Web mail server of some kind that is
possibly misconfigured and the odds of getting that fixed are likely
vanishingly small.

Plan B, detach the file and view it manually which I've already done.

Thanks!

- 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 — Previous in thread | 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