question on executing executable in mailcap

Ranjan Maitra via Mutt-users <[email protected]>
Newsgroups gmane.mail.mutt.user
Message-ID <[email protected]>
Hi,

I have the following in my $HOME/.mailcap file:

application/pdf;                   mutt_bgrun "${PDFVIEWER:-zathura}" %s; test=test -n "$DISPLAY"; nametemplate=%s.pdf; description="PDF Document"

So this uses mutt_bgrun which is a shell script in my $HOME/bin

However, when I try to see the attachment I get:

 sh: line 1: mutt_bgrun: command not found
 Press any key to continue...

What am I doing incorrectly?

How do I get the $HOME/bin file to be included?

As an aside, are there any awesome mailcaps out there that long-term users would be willing to point to? My needs at this point are fairly standard.

Many thanks,
Ranjan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.