View PDF attachments as text in Mutt
To do so, install pdftotext
:
$ sudo apt install poppler-utils
Look for a mailcap
file. If none exists:
$ touch .config/mutt/mailcap
Then add the following line:
application/pdf; pdftotext -layout -q %s -; copiousoutput;
Next you need to add these lines to your .muttrc
:
auto_view application/pdf
set mailcap_path = ~/.config/mutt/mailcap
You now can type m
to view a PDF file as text.
You can read more about mailcap
and auto_view
in the manual of Mutt.
✍✍✍✍✍✍✍✍✍✍✍✍✍✍
I do self-funded research and I'm writing a book.
> What's the book about?
About technologies and agency.
Meaning, technologies can foster agency. No doubt. But I am also asking:
Can usage of technologies give us a sense of empowerment while in fact undermining our abilities?
I posted a summary of the prologue on the homepage: https://yctct.com/
✍✍✍✍✍✍✍✍✍✍✍✍✍✍
personal computing command-line interface (cli) gnu linux trisquel shell literacy office applications wiki mutt pdf