Re: Viewing attached pdf files
- To: mutt-users@xxxxxxxx
- Subject: Re: Viewing attached pdf files
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Thu, 30 Aug 2007 09:57:26 -0600
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date:from:to:subject:message-id:references:mime-version:content-type:in-reply-to; q=dns/txt; s=default; bh=ypiGnpjQskHqYlyhNhVsOKtw4oE=; b=J2J/oVdBTKSEiCo6+2CXC1dKissy32NWkFKkqiWwR1lCFDlvoueN42RWjezp2Xn/B5YJxDoQDUPHsPjpccPH67Ocg7kQO4g/OdFzXRqDwcZiW4G96LRAShehnGoNDKg1cYZncqaqL29JJs1Eu8QWLWo2SrBUbQ+zYHDMwT7pIpk=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=I3IBDp3o3jpwrl6lrYz0p2y/qaas42xgfNSjYZNAm6XBJVgpQuffDEMBsBxl8sJeLtE0FDRF/aYN/ifveSDXx33pVqGeMzMur+fCnpYTAmmKqTAPQ6+I5EHbR/gV6Yw9kdVT95iRd01WvQT4BmxO+FiHvBl0aD6fNhEDcBeBPso=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent;
- In-reply-to: <20070830154627.GA4381@xxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- References: <20070830154627.GA4381@xxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.16 (2007-08-28)
-----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-----