Possible to launch Thunderbird to view a mail with images?

2010-09-04 Thread Charles Jie
Dear mutt users,

I've been using mutt for 7 years. From time to time, such idea may flash
in my brain.

I can read most of my daily mail with mutt without problem.

But sometimes some friends may send me an html mail with pretty rich
inline images. Such embedded images need to be seen in right
context (there are related text arround them).

My current practice is bouncing the mail to another user in my linux
box, and launch Thunderbird to get and read it.

I'm wondering if it is possible for my mutt to copy the message to a
temporary mbox file, and launch a GUI mail viewer to view it. (the way a
little like what we do about attachment)

I've checked Thunderbird's command line usage. It accepts a URL
(thunderbird -mail URL) but it doesn't treat it as mbox (but raw
text).

Any idea or experience?

best regards,
charlie



Replying to oneself

2010-09-04 Thread Andre Majorel
Suppose you're sending email back and forth between two of your
addresses.

j...@joe.com sends email at j...@joe.com. When joe2 replies, the
reply goes to joe2 because alternates is set to joe[...@joe\.com.

If reply_self was set, the reply would go to joe1 as expected.
But reply_self = no is useful in other circumstances.

Maybe Mutt shouldn't force To: if all the recipients are in
alternates. That way, you could leave reply_self unset and still
be able to talk to yourself when you want to.

-- 
André Majorel http://www.teaser.fr/~amajorel/


Default To: per folder

2010-09-04 Thread Andre Majorel
Is there a way to set a default value for To: in  ? It
would be very useful after a folder-hook for mailing lists etc.

-- 
André Majorel http://www.teaser.fr/~amajorel/


Re: Possible to launch Thunderbird to view a mail with images?

2010-09-04 Thread Christian Ebert
* Charles Jie on Saturday, September 04, 2010 at 18:40:43 +0800
> I've been using mutt for 7 years. From time to time, such idea may flash
> in my brain.
> 
>I can read most of my daily mail with mutt without problem.
> 
>But sometimes some friends may send me an html mail with pretty rich
>inline images. Such embedded images need to be seen in right
>context (there are related text arround them).
> 
>My current practice is bouncing the mail to another user in my linux
>box, and launch Thunderbird to get and read it.
> 
> I'm wondering if it is possible for my mutt to copy the message to a
> temporary mbox file, and launch a GUI mail viewer to view it. (the way a
> little like what we do about attachment)
> 
>I've checked Thunderbird's command line usage. It accepts a URL
>(thunderbird -mail URL) but it doesn't treat it as mbox (but raw
>text).
> 
>Any idea or experience?

Shameless plug:

If you're not afraid of Python, you could try viewhtmlmsg of my
muttils bundle. It seems to do what you want.

$ viewhtmlmsg -h
Usage: viewhtmlmsg [options]

Displays html message read from stdin.  $BROWSER environment may be overridden
with option "-b".

Options:
  --version show program's version number and exit
  -h, --helpshow this help message and exit
  -s, --safeview html w/o loading remote files
  -k KEEP, --keep=KEEP  remove temporary files after KEEP seconds (0 for
keeping files)
  -b APP, --browser=APP
prefer browser APP over $BROWSER environment

But it is mainly meant to be used from within Mutt via a macro:

# call viewhtmlmsg from 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
-- 
Python Mutt utilities --->> http://www.blacktrash.org/hg/muttils/


Re: Possible to launch Thunderbird to view a mail with images?

2010-09-04 Thread Andreas Kalex

* Charles Jie  wrote on 04.09.2010 at 12:50:
> 
> My current practice is bouncing the mail to another user in my linux
> box, and launch Thunderbird to get and read it.
Why don't use a browser to open a html mail?
I use "v" to see the attachments of the mail, and scroll to the one which has 
text like this:
" [text/html, quoted, iso-8859-1, 41K]"  on the right side. Now it depends on 
the entries in mailcap which program is to open.

Andreas



Re: Possible to launch Thunderbird to view a mail with images?

2010-09-04 Thread Grant Edwards
On 2010-09-04, Charles Jie  wrote:
> Dear mutt users,
>
> I've been using mutt for 7 years. From time to time, such idea may flash
> in my brain.
>
> I can read most of my daily mail with mutt without problem.
>
> But sometimes some friends may send me an html mail with pretty
> rich inline images. Such embedded images need to be seen in right
> context (there are related text arround them).
>
> My current practice is bouncing the mail to another user in my
> linux box, and launch Thunderbird to get and read it.

I use Firefox instead of Thunderbird. In my .mailcap file I have this
entry:

  text/html; links -force-html -dump %s; copiousoutput; print = firefoxurl %s;

That uses "links" to render html by default.  If that's not good
enough, I hit "p" in mutt to "print" the html, and that lauches
firefox using this script:

-firefoxurl-
#!/bin/bash
set -x
MRC="mozilla-xremote-client -a firefox"
URL="$1"
if $MRC 'ping()' 2>/dev/null ; then
  $MRC "openURL($URL,new-tab)"
else
  firefox "$URL"
fi  


I know that's not quite what you're asking for, but maybe it's a start.

If that's not good enough, then I just launch Thunderbird manually
(which is set up to use the same IMAP server that mutt is using).




Re: Possible to launch Thunderbird to view a mail with images? (thanks)

2010-09-04 Thread Charles Jie
Hi, thank you for your 3 responses. I've gone through your texts and
those are interesting and helpful.

I do use a browser to read the html part when needed, like Grant and
Andreas said.

I press  to call w3m to view it. It's good for most of the
cases, showing images as well if they are remote URLs.

If it's not good enough, I press 'w'(a macro) to call Google Chrome
to view it. It does a better job.

However, in this case I mentioned, it's about a message EMBEDDING many
INLINE images, which are not visible to the browsers.

Why? Because the images are not saved to the filesystem together
with the HTML part.

A GUI mail client like Thunderbird does be able to deal with such a
message and display the html message with those inline images
inserted in the right places.

This is why I have to save the WHOLE message and ask a mail client
to look at it.

Christian's solution looks like doing the job I need, because it feeds
the MESSAGE to the viewhtmlmsg.

Thank you. I like Python and expect to see it more (Most of the time
I code in Perl). I'll give it a try, and report it later.

(Googling 'viewhtmlmsg', I found some previous relevant discussions.)

thanks,
charlie

On Sat, Sep 04, 2010 at 12:59:36PM +0100, Christian Ebert wrote:
> * Charles Jie on Saturday, September 04, 2010 at 18:40:43 +0800
> > I've been using mutt for 7 years. From time to time, such idea may flash
> > in my brain.
> >
> >I can read most of my daily mail with mutt without problem.
> >
> >But sometimes some friends may send me an html mail with pretty rich
> >inline images. Such embedded images need to be seen in right
> >context (there are related text arround them).
> >
> >My current practice is bouncing the mail to another user in my linux
> >box, and launch Thunderbird to get and read it.
> >
> > I'm wondering if it is possible for my mutt to copy the message to a
> > temporary mbox file, and launch a GUI mail viewer to view it. (the way a
> > little like what we do about attachment)
> >
> >I've checked Thunderbird's command line usage. It accepts a URL
> >(thunderbird -mail URL) but it doesn't treat it as mbox (but raw
> >text).
> >
> >Any idea or experience?
>
> Shameless plug:
>
> If you're not afraid of Python, you could try viewhtmlmsg of my
> muttils bundle. It seems to do what you want.
>
> $ viewhtmlmsg -h
> Usage: viewhtmlmsg [options]
>
> Displays html message read from stdin.  $BROWSER environment may be overridden
> with option "-b".
>
> Options:
>   --version show program's version number and exit
>   -h, --helpshow this help message and exit
>   -s, --safeview html w/o loading remote files
>   -k KEEP, --keep=KEEP  remove temporary files after KEEP seconds (0 for
> keeping files)
>   -b APP, --browser=APP
> prefer browser APP over $BROWSER environment
>
> But it is mainly meant to be used from within Mutt via a macro:
>
> # call viewhtmlmsg from 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

On Sat, Sep 04, 2010 at 02:58:38PM +0200, Andreas Kalex wrote:
>
> * Charles Jie  wrote on 04.09.2010 at 12:50:
> >
> > My current practice is bouncing the mail to another user in my linux
> > box, and launch Thunderbird to get and read it.
> Why don't use a browser to open a html mail?
> I use "v" to see the attachments of the mail, and scroll to the one which has 
> text like this:
> " [text/html, quoted, iso-8859-1, 41K]"  on the right side. Now it depends on 
> the entries in mailcap which program is to open.
>
> Andreas

On Sat, Sep 04, 2010 at 01:03:52PM +, Grant Edwards wrote:
>
> I use Firefox instead of Thunderbird. In my .mailcap file I have this
> entry:
>
>   text/html; links -force-html -dump %s; copiousoutput; print = firefoxurl %s;
>
> That uses "links" to render html by default.  If that's not good
> enough, I hit "p" in mutt to "print" the html, and that lauches
> firefox using this script:
>
> -firefoxurl-
> #!/bin/bash
> set -x
> MRC="mozilla-xremote-client -a firefox"
> URL="$1"
> if $MRC 'ping()' 2>/dev/null ; then
>   $MRC "openURL($URL,new-tab)"
> else
>   firefox "$URL"
> fi
> 
>
> I know that's not quite what you're asking for, but maybe it's a start.
>
> If that's not good enough, then I just launch Thunderbird manually
> (which is set up to use the same IMAP server that mutt is using).



Re: Default To: per folder

2010-09-04 Thread Nicolas KOWALSKI
Andre Majorel  writes:
> Is there a way to set a default value for To: in  ? It
> would be very useful after a folder-hook for mailing lists etc.

Yes, using my_hdr. Here is an example of what is in my ~/.muttrc:

folder-hook =list.debian'my_hdr To: 
debian-u...@lists.debian.org'
folder-hook =list.dovecot   'my_hdr To: dove...@dovecot.org'
folder-hook =list.mutt  'my_hdr To: mutt-users@mutt.org'

-- 
Nicolas


Re: Default To: per folder

2010-09-04 Thread E. Prom
On Saturday, 04 September 2010, 19:05:40 +0200,
Nicolas KOWALSKI  wrote:
> Andre Majorel  writes:
> > Is there a way to set a default value for To: in  ? It
> > would be very useful after a folder-hook for mailing lists etc.
> 
> Yes, using my_hdr. Here is an example of what is in my ~/.muttrc:
> 
> folder-hook =list.debian  'my_hdr To: 
> debian-u...@lists.debian.org'
> folder-hook =list.dovecot 'my_hdr To: dove...@dovecot.org'
> folder-hook =list.mutt'my_hdr To: mutt-users@mutt.org'

This seemed great to me, but I notice that when replying a mail after
defining a default "To: address", this address is not replaced by but
added to the person's address I'm replying to.


Re: Taking notes using Mutt threads

2010-09-04 Thread Brian Ryans
Quoting Chris Bannister on 2010-08-31 07:00:43, in Message-Id
<20100831120043.gb18...@fischer>

> I remember a program called tina whose interface was like mutts.

I'm a tina user myself, but there's a certain part of my brain that's
tickled by perverting software into doing things it wasn't designed to
do.

-- 
 _  Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 .
( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com   ..:
 X  ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org
/ \ "The most powerful optimization tool . . . may be the Delete key."
  -- Eric S. Raymond


signature.asc
Description: Digital signature


Re: Possible to launch Thunderbird to view a mail with images?

2010-09-04 Thread Chip Camden
Quoth Christian Ebert on Saturday, 04 September 2010:
> * Charles Jie on Saturday, September 04, 2010 at 18:40:43 +0800
> > I've been using mutt for 7 years. From time to time, such idea may flash
> > in my brain.
> > 
> >I can read most of my daily mail with mutt without problem.
> > 
> >But sometimes some friends may send me an html mail with pretty rich
> >inline images. Such embedded images need to be seen in right
> >context (there are related text arround them).
> > 
> >My current practice is bouncing the mail to another user in my linux
> >box, and launch Thunderbird to get and read it.
> > 
> > I'm wondering if it is possible for my mutt to copy the message to a
> > temporary mbox file, and launch a GUI mail viewer to view it. (the way a
> > little like what we do about attachment)
> > 
> >I've checked Thunderbird's command line usage. It accepts a URL
> >(thunderbird -mail URL) but it doesn't treat it as mbox (but raw
> >text).
> > 
> >Any idea or experience?
> 
> Shameless plug:
> 
> If you're not afraid of Python, you could try viewhtmlmsg of my
> muttils bundle. It seems to do what you want.
> 
> $ viewhtmlmsg -h
> Usage: viewhtmlmsg [options]
> 
> Displays html message read from stdin.  $BROWSER environment may be overridden
> with option "-b".
> 
> Options:
>   --version show program's version number and exit
>   -h, --helpshow this help message and exit
>   -s, --safeview html w/o loading remote files
>   -k KEEP, --keep=KEEP  remove temporary files after KEEP seconds (0 for
> keeping files)
>   -b APP, --browser=APP
> prefer browser APP over $BROWSER environment
> 
> But it is mainly meant to be used from within Mutt via a macro:
> 
> # call viewhtmlmsg from 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
> -- 
> Python Mutt utilities --->> http://www.blacktrash.org/hg/muttils/

That's pretty cool.  It looks though like it doesn't accept a shell
wrapper for the browser:

viewhtmlmsg -b browser

where browser is a shell script as follows:

#!/bin/sh
if RunningX
then
   firefox $*
   xdotool key super+3
   xdotool keyup super
else
   w3m -t text/html $*
fi

It appears from debugging that we never even get into this script, yet no
error is generated.  Same result if I put the full path on the script.

Works great with just 'viewhtmlmsg -b firefox' though, and the odd thing
is that 'firefox' is a shell script in /usr/local/bin.

-- 
Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F
http://camdensoftware.com | http://chipstips.com| http://chipsquips.com


pgpg5ZARYWkVw.pgp
Description: PGP signature