-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday, August 30 at 05:46 PM, quoth Jonas Jacobsson: > Hi fellow Mutt users,
Howdy! > How have you solved the problem with viewing attached pdf documents > withing Mutt? I just discovered pdftohtml and pdftotxt and will start > digging on how to use them. Meh. I have a computer with one of them fancy whatchamacallem... graphical interfaces. Just 'cuz email is best in mutt doesn't mean pdf's are (in fact, they aren't). > Since a pdf file is an octetstream I can't just use .mailcap since > that is dependant on the document type specified in the MIME header, > right? (Only looking for octetstream will cause alot of other document > types to be viewed with the same tool.) Poppycock! You need to read your muttrc man page more carefully! From the documentation: mime_lookup type[/subtype] [ ... ] unmime_lookup type[/subtype] [ ... ] This command permits you to define a list of "data" MIME content types for which mutt will try to determine the actual file type from the file name, and not use a mailcap(5) entry given for the original MIME type. For instance, you may add the application/octet-stream MIME type to this list. Then mutt will recognize that the filename of the attachment ends in .pdf, will see in your mime.types file (either in /etc/mime.types or ~/.mime.types) that the pdf extension means application/pdf, and will use the mailcap entry for application/pdf! People have been using mutt to deal with the wiles of electronic mail for a long long time... ;) ~Kyle - -- If Mr. Einstein doesn't like the natural laws of the universe, let him go back to where he came from. -- Robert Benchley (1889-1945) -----BEGIN PGP SIGNATURE----- Comment: Thank you for using encryption! iD8DBQFG1ujmBkIOoMqOI14RAgL4AJ4xc+XY/2HB0ObKAzaGdvZet8s0JgCg6ckY l7XBwHGyhuuWmLmnbXjpxjI= =6W2D -----END PGP SIGNATURE-----