|
|
Re: Matching message headers in mutt hooks |
On Mon, Jul 09, 2012 at 11:37:37AM +0200, Suvayu Ali wrote: > How does one handle attachments? I saw the pipe command and tried to > pipe a pdf file to Evince, but it didn't seem to work as I had expected. > Do I need an old school viewer like gv for this to work? It's also > possible I didn't specify the command properly. I get a lot of > pdf/ps/eps/png attachments, so this is crucial need for me. You could do something like the following: Create in ~/ the files .mime.types and .mailcap ~/.mime.types application/pdf pdf ~/.mailcap application/pdf; evince %s; test=test -n "$DISPLAY" application/pdf; pdftotext %s %s.txt \; cat %s.txt \; rm -f %s.txt ; copiousoutput then edit ~/.muttrc and add: auto_view text/html message/* application/pdf If I didn't make any mistake you should get a text rendering of the pdf directly in mutt (for a quick look). I you want to see the pdf in evince hit 'v', select the pdf and hit 'enter'. AV -- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
[Older Fedora Users] [Fedora Announce] [Fedora Package Announce] [EPEL Announce] [Fedora News] [Fedora Cloud] [Fedora Advisory Board] [Fedora Education] [Fedora Security] [Fedora Scitech] [Fedora Robotics] [Fedora Maintainers] [Fedora Infrastructure] [Fedora Websites] [Anaconda Devel] [Fedora Devel Java] [Fedora Legacy] [Fedora Desktop] [Fedora Fonts] [ATA RAID] [Fedora Marketing] [Fedora Management Tools] [Fedora Mentors] [SSH] [Find Someone Special] [Fedora Package Review] [Fedora R Devel] [Fedora PHP Devel] [Kickstart] [Fedora Music] [Fedora Packaging] [Centos] [Fedora SELinux] [Fedora Legal] [Fedora Kernel] [Fedora QA] [Fedora Triage] [Fedora OCaml] [Coolkey] [Virtualization Tools] [ET Management Tools] [Yum Users] [Tux] [Yosemite News] [Yosemite Photos] [Linux Apps] [Maemo Users] [Gnome Users] [KDE Users] [Fedora Tools] [Fedora Art] [Fedora Docs] [Maemo Users] [Asterisk PBX] [Fedora Sparc] [Fedora Universal Network Connector] [Libvirt Users] [Fedora ARM]
![]() |
![]() |