Darac Marjal wrote: > This is where your ~/.mailcap file comes in. This is a great file > for registering viewers for MIME types. So, for example, I have the > following in my Mailcap: ... > application/pdf; pdftotext %s -; copiousoutput
I suggest using the pdftotext -layout option. It can significantly improve the look of the result. Without that option it can have an effect similar to runnings 'strings' on a binary file and is useful but often word soup too. But with the -layout option it tries to recreate the original layout. For just typical things like invoices and documentation and such the -layout option can give a surprisingly good representation. Give pdftotext -layout a try. I am using this: application/pdf; /usr/bin/pdftotext -layout %s -; copiousoutput; test=test "$DISPLAY" = ""; description=Portable Document Format; nametemplate=%s.pdf Note: By using the DISPLAY test it means I only get this action if I am not using a graphical display. Such as when logged in using ssh. But if I am using a graphical display then the graphical clients listed in /etc/mailcap will be used instead and I will see the graphical rendering of it. grep application/pdf /etc/mailcap This isn't a mutt list and we have already gone off topic from Postfix but since I said the above I will continue for one more tidbit and then stop. The auto_view can work but getting a configuration that is nice as defined by the user can be difficult. Instead if one 'v'iews the MIME parts, selects the part such as text/html or application/pdf and then uses 'm' to view-mailcap on the selected MIME part then it will run the mailcap defined action regardless of the auto_views configuration. I find that strategy to be more universial as some software distros have patched mutt in this area making each of them behave differently with regard to MIME part viewing by default and auto_views. But using 'v' and 'm' work uniformly across them. Regardless of being able to deal with non-plain-text email fairly well I still much prefer plain text email. Plain text is best. I keep threatening some of the worse offenders that I am going to draw my response in crayon, scan in the image, and send back my responses that way, as my preferred visual rendering! Bob