Is there any way to print attachments such as PDF files?
Chris Green
cl at isbd.net
Fri Apr 16 19:24:33 UTC 2021
On Fri, Apr 16, 2021 at 09:07:39PM +0200, Anders Damsgaard wrote:
> * Chris Green <cl at isbd.net> [2021-04-16 19:28:17 +0100]:
>
> > As per subject, is there any easy way to print attachments such as PDF
> > files? Hitting 'p' against an attachment just says "I don't know how
> > to print that". Is there any way to tell mutt how to print it which
> > will also allow printing of plain text as normal.
> >
> Hi Chris,
>
> Just pipe the file to 'lpr -P PDF'. Optionally, add a keybind to do so.
> If you want to get fancy, you can make a shell script which detects the
> mime type, e.g. using `file -ib`, and takes action accordingly.
>
Of course, obvious really, thank you.
--
Chris Green
More information about the Mutt-users
mailing list