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 <F7> "\
> <enter-command> set my_wait_key=\$wait_key wait_key=no<enter>\
> <pipe-message>viewhtmlmsg<enter>\
> <enter-command> set wait_key=\$my_wait_key &my_wait_key<enter>\
> " "view HTML in browser"
>
> macro index,pager <F8> "\
> <enter-command> set my_wait_key=\$wait_key wait_key=no<enter>\
> <pipe-message>viewhtmlmsg -s<enter>\
> <enter-command> set wait_key=\$my_wait_key &my_wait_key<enter>\
> " "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