Re: Viewing HTML mails with images
On Fri, Apr 01, 2011 at 04:18:29PM -0500, David Champion wrote: To read such a message you need a program that is rfc2822-aware and handled both HTML rendering and content-id chasing, or a view wrapper that can save your message and all content-id attachments together (e.g. to a directory) and then rewrite the HTML so that cid: src references refer instead to static files on disk. I don't know of such a wrapper offhand, sorry, but maybe the explanation will help you find something. -- David Champion • d...@uchicago.edu • IT Services • University of Chicago This could be 'trivial' through use of data urls. Most browsers support them, and the content is already base64 encoded. I.e. just replace the cid: reference with a data url when extracting the email. It seems a more elegant solution than dumping the images to files, and referencing them. http://en.wikipedia.org/wiki/Data_Url -- Brandon
errno = 2 in mutt
Hi folks, I just started mutt the first time and it asked me a few question for configuration. When I noticed, I mistyped something, I canceled mutt by CMD + C (if I remember correctly). When I started mutt again, I got the error /var/mail/stefano: file or directory not found (errno = 2) (translated by me in English. I don't know, if this is the original English error message). What can I do to get mutt working? Thanks in advance! Stefano -- GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit gratis Handy-Flat! http://portal.gmx.net/de/go/dsl
Re: Viewing HTML mails with images
* Leonardo M. Ramé on Friday, April 01, 2011 at 17:40:08 -0300 Hi, when I receive HTML mails, I can see all its files in the attachments view, that is, the html itself, and all of its images. When I select the main html file, the default web browser is opened and I can see the html file alone, the images are not loaded. How can I let Mutt force showing the images? If you're not afraid of Python you can try out viewhtmlmsg from my muttils package: https://bitbucket.org/blacktrash/muttils/ c -- theatre - books - texts - movies Black Trash Productions at home: http://www.blacktrash.org Black Trash Productions on Facebook: http://www.facebook.com/blacktrashproductions
Re: Viewing HTML mails with images
On Apr 02, 2011 at 02:11 PM +0100, Christian Ebert wrote: If you're not afraid of Python you can try out viewhtmlmsg from my muttils package: Thanks for reminding me about these. I had installed them awhile ago and never remember to use them. Works great!
Re: errno = 2 in mutt
2011/4/2 Stefano Di Martino stefan...@gmx.net: Hi folks, I just started mutt the first time and it asked me a few question for configuration. When I noticed, I mistyped something, I canceled mutt by CMD + C (if I remember correctly). When I started mutt again, I got the error /var/mail/stefano: file or directory not found (errno = 2) (translated by me in English. I don't know, if this is the original English error message). What can I do to get mutt working? 1) Try touch /var/mail/stefano 2) edit ~/.muttrc, add set folder=/home/xxx/Mail set spoolfile=/home/xxx/Mail/inbox then, try touch /home/Mail/inbox Good Luck! Thanks in advance! Stefano -- GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit gratis Handy-Flat! http://portal.gmx.net/de/go/dsl
Re: errno = 2 in mutt
2011/4/2 Stefano Di Martino stefan...@gmx.net: THX. I tried something similar: Setting in .muttrc in home folder: folder-hook lo...@pop.gmx.net 'source ~/.mutt/gmx' Setting in ~/.mutt/gmx: set realname=Stefano Di Martino set from=stefan...@gmx.net set hostname=gmx.net set folder=~/.mutt/GMX set postponed==Entwurf set record==Gesendet set spoolfile==INBOX Try set spoolfile=/home/stefano/.mutt/GMX/INBOX Now I get the error /home/stefano/.mutt/GMX/INBOX is no a mail box (translated in English), but the folder /home/stefano/.mutt/GMX/INBOX exists in fact and I touched it, too. Thanks in advance for any help. Stefano Original-Nachricht Datum: Sat, 2 Apr 2011 22:54:53 +0800 Von: 张启德 kenifany...@gmail.com An: Stefano Di Martino stefan...@gmx.net CC: mutt-users@mutt.org Betreff: Re: errno = 2 in mutt 2011/4/2 Stefano Di Martino stefan...@gmx.net: Hi folks, I just started mutt the first time and it asked me a few question for configuration. When I noticed, I mistyped something, I canceled mutt by CMD + C (if I remember correctly). When I started mutt again, I got the error /var/mail/stefano: file or directory not found (errno = 2) (translated by me in English. I don't know, if this is the original English error message). What can I do to get mutt working? 1) Try touch /var/mail/stefano 2) edit ~/.muttrc, add set folder=/home/xxx/Mail set spoolfile=/home/xxx/Mail/inbox then, try touch /home/Mail/inbox Good Luck! Thanks in advance! Stefano -- GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit gratis Handy-Flat! http://portal.gmx.net/de/go/dsl -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
Re: Viewing HTML mails with images
On Sat, Apr 02, 2011 at 10:34:41AM -0400, Tim Gray wrote: On Apr 02, 2011 at 02:11 PM +0100, Christian Ebert wrote: If you're not afraid of Python you can try out viewhtmlmsg from my muttils package: Thanks for reminding me about these. I had installed them awhile ago and never remember to use them. Works great! +1. Thanks for providing that viewhtmlmsg script. -- Will Fiveash
Re: Viewing HTML mails with images
On 2011-04-01 16:18:29 -0500, David Champion wrote: * On 01 Apr 2011, Leonardo M. Ramé wrote: Hi, when I receive HTML mails, I can see all its files in the attachments view, that is, the html itself, and all of its images. When I select the main html file, the default web browser is opened and I can see the html file alone, the images are not loaded. How can I let Mutt force showing the images? I'm guessing that your HTML messages contain image attachments with Content-ID: MIME headers -- e.g. --boundary-string Content-ID: 5.1.1.6.2.20030724163449.01cb6bd0@hostname Content-Type: image/jpeg; name=attachment1.jpg Content-Disposition: inline; filename=1ff7346.jpg Content-Transfer-Encoding: base64 [base64 data] And that your HTML text has img nodes like: img src=cid:5.1.1.6.2.20030724163449.01cb6bd0@hostname alt=1ff7346.jpg If I'm wrong, disregard the rest of this message. This is an internal content reference. It works in mail readers that handle HTML internally because the content reference (cid:5.1.1.6...@hostname) cites a Content-ID: MIME header that's present in the same message. It doesn't work in Mutt because Mutt has passed the HTML MIME element to an external HTML reader and the cid: references are no longer valid -- there are no MIME elements associated with the HTML stream that the browser sees. To read such a message you need a program that is rfc2822-aware and handled both HTML rendering and content-id chasing, or a view wrapper that can save your message and all content-id attachments together (e.g. to a directory) and then rewrite the HTML so that cid: src references refer instead to static files on disk. I don't know of such a wrapper offhand, sorry, but maybe the explanation will help you find something. -- David Champion • d...@uchicago.edu • IT Services • University of Chicago Yes, that's exactly my problem. Thanks for the explanation. -- Leonardo M. Ramé http://leonardorame.blogspot.com
Re: Viewing HTML mails with images
On 2011-04-02 14:11:19 +0100, Christian Ebert wrote: * Leonardo M. Ramé on Friday, April 01, 2011 at 17:40:08 -0300 Hi, when I receive HTML mails, I can see all its files in the attachments view, that is, the html itself, and all of its images. When I select the main html file, the default web browser is opened and I can see the html file alone, the images are not loaded. How can I let Mutt force showing the images? If you're not afraid of Python you can try out viewhtmlmsg from my muttils package: https://bitbucket.org/blacktrash/muttils/ c -- Thanks, I'll give it a try. -- Leonardo M. Ramé http://leonardorame.blogspot.com
Re: Viewing HTML mails with images
Quoth Will Fiveash on Saturday, 02 April 2011: On Sat, Apr 02, 2011 at 10:34:41AM -0400, Tim Gray wrote: On Apr 02, 2011 at 02:11 PM +0100, Christian Ebert wrote: If you're not afraid of Python you can try out viewhtmlmsg from my muttils package: Thanks for reminding me about these. I had installed them awhile ago and never remember to use them. Works great! +1. Thanks for providing that viewhtmlmsg script. -- Will Fiveash +1. I use it almost every day. -- .o. | Sterling (Chip) Camden | http://camdensoftware.com ..o | sterl...@camdensoftware.com | http://chipsquips.com ooo | 2048R/D6DBAF91 | http://chipstips.com pgpjYRpD3in78.pgp Description: PGP signature
Re: Viewing HTML mails with images
On Sat, Apr 02, 2011 at 12:07:32PM -0700, Chip Camden thus spake: Quoth Will Fiveash on Saturday, 02 April 2011: On Sat, Apr 02, 2011 at 10:34:41AM -0400, Tim Gray wrote: On Apr 02, 2011 at 02:11 PM +0100, Christian Ebert wrote: If you're not afraid of Python you can try out viewhtmlmsg from my muttils package: Thanks for reminding me about these. I had installed them awhile ago and never remember to use them. Works great! +1. Thanks for providing that viewhtmlmsg script. -- Will Fiveash +1. I use it almost every day. -- .o. | Sterling (Chip) Camden | http://camdensoftware.com ..o | sterl...@camdensoftware.com | http://chipsquips.com ooo | 2048R/D6DBAF91 | http://chipstips.com I have never used this, but I just ported this to a FreeBSD port today. I will try this out on Monday. Here is a link to it. If anyone has any comments as to if this works, or not, that would be great! http://jgh.devio.us/files/muttils.shar.txt Thanks, Jason -- i am a mutthead