Re: Export HTML emails with images
* Matthias Apitz on Friday, February 27, 2009 at 18:44:37 +0100 > Thanks for this piece of software; I have set in ~/.muttrc: > > macro pager "\ > set my_wait_key=\$wait_key wait_key=no\ > PYTHONPATH=~/lib/python /home/guru/bin/viewhtmlmsg -b > konqueror -s\ > set wait_key=\$my_wait_key &my_wait_key\ > " "view HTML (safe) in browser" > ... > > this brings up on F8 a konqueror window with the HTML mail, but in the > mutt-window some error like: > > Press any key to continue... (I press CR) > Usage: set variable=yes|no > > this is with mutt 1.4.2.3i; any idea? thx Your mutt version doesn't support "my_" variables. The good news is that configuration is simpler. macro pager "\ PYTHONPATH=~/lib/python /home/guru/bin/viewhtmlmsg -b konqueror -s\ " "view HTML (safe) in browser" Is basically enough from viewhtmlmsg's, errmh, view. Of course this is less flexible. You'd have to hard code your $wait_key settings in case you have it on by default and want it turned off for the macro etc. c -- Was heißt hier Dogma, ich bin Underdogma! [ What the hell do you mean dogma, I am underdogma. ] _F R E E_ _V I D E O S_ -->> http://www.blacktrash.org/underdogma/
Re: Export HTML emails with images
El día Friday, February 27, 2009 a las 04:35:13PM +0100, Christian Ebert escribió: > Shamelessly plugging my muttils package (needs Python >= 2.4): > > http://www.blacktrash.org/hg/muttils/ > > You can use its viewhtmlmsg command in a macro: > > macro index,pager "\ > set my_wait_key=\$wait_key wait_key=no\ > viewhtmlmsg\ > set wait_key=\$my_wait_key &my_wait_key\ > " "view HTML in browser" > > macro index,pager "\ > set my_wait_key=\$wait_key wait_key=no\ > viewhtmlmsg -s\ > set wait_key=\$my_wait_key &my_wait_key\ > " "view HTML (safe) in browser" Hi Christian, Thanks for this piece of software; I have set in ~/.muttrc: macro pager "\ set my_wait_key=\$wait_key wait_key=no\ PYTHONPATH=~/lib/python /home/guru/bin/viewhtmlmsg -b konqueror -s\ set wait_key=\$my_wait_key &my_wait_key\ " "view HTML (safe) in browser" ... this brings up on F8 a konqueror window with the HTML mail, but in the mutt-window some error like: Press any key to continue... (I press CR) Usage: set variable=yes|no this is with mutt 1.4.2.3i; any idea? thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/
Re: Export HTML emails with images
Christian Ebert wrote : > Shamelessly plugging my muttils package (needs Python >= 2.4): > > http://www.blacktrash.org/hg/muttils/ > > You can use its viewhtmlmsg command in a macro: > > macro index,pager "\ > set my_wait_key=\$wait_key wait_key=no\ > viewhtmlmsg\ > set wait_key=\$my_wait_key &my_wait_key\ > " "view HTML in browser" > > macro index,pager "\ > set my_wait_key=\$wait_key wait_key=no\ > viewhtmlmsg -s\ > set wait_key=\$my_wait_key &my_wait_key\ > " "view HTML (safe) in browser" Awesome, that is exactly what I needed! It took me a minute to find out why it didn't open my browser, then I read 'viewhtmlmsgcommand.py' and realised my $BROWSER was not set. Thanks, Bertrand
Re: Export HTML emails with images
* Bertrand Janin on Friday, February 27, 2009 at 09:56:59 -0500 > I work in a company using mainly HTML emails. They format their mails > and from time to time insert screenshots and images to illustrate their > point. While I obviously disagree with the process, I am not in position > to change that right now. > > The text version generated by their thunderbirds is good 95% of the time > and mutt serves me well. But I still receive this email from time to > time with screenshots and formatting in a specific order. It is rare but > I hate to juggle between firefox, mutt and an image viewer. > > I tried to search quickly for solutions to 'export' the mail with its > image attachment so it can be viewed as-is in firefox, with the images > at the right place. I tried to fiddle with 'metamail' but without > success, 'uudecode' doesn't find anything... > > I can probably write a script to handle this kind of situation, but > before I code a square wheel I'd like to know if someone out there ever > accomplished this. Shamelessly plugging my muttils package (needs Python >= 2.4): http://www.blacktrash.org/hg/muttils/ You can use its viewhtmlmsg command in a macro: macro index,pager "\ set my_wait_key=\$wait_key wait_key=no\ viewhtmlmsg\ set wait_key=\$my_wait_key &my_wait_key\ " "view HTML in browser" macro index,pager "\ set my_wait_key=\$wait_key wait_key=no\ viewhtmlmsg -s\ set wait_key=\$my_wait_key &my_wait_key\ " "view HTML (safe) in browser" c -- \black\trash movie_C O W B O Y_ _C A N O E_ _C O M A_ Ein deutscher Western/A German Western -->> http://www.blacktrash.org/underdogma/ccc.html -->> http://www.blacktrash.org/underdogma/ccc-en.html
Export HTML emails with images
Hey everyone, I work in a company using mainly HTML emails. They format their mails and from time to time insert screenshots and images to illustrate their point. While I obviously disagree with the process, I am not in position to change that right now. The text version generated by their thunderbirds is good 95% of the time and mutt serves me well. But I still receive this email from time to time with screenshots and formatting in a specific order. It is rare but I hate to juggle between firefox, mutt and an image viewer. I tried to search quickly for solutions to 'export' the mail with its image attachment so it can be viewed as-is in firefox, with the images at the right place. I tried to fiddle with 'metamail' but without success, 'uudecode' doesn't find anything... I can probably write a script to handle this kind of situation, but before I code a square wheel I'd like to know if someone out there ever accomplished this. Bertrand