On July 27, 2002 at 11:16, Neil W Rickert wrote:
> > But, these days, I get so much MIME mail with
> >attachments... and nmh's MIME handling is so far from what I
> >need... that I've been using the Mozilla mail agent to make the
> >first cut at reading my mail, weeding out spam, etc... then
> >using a script to pull the messages I want to keep from my
> >Mozilla inbox into my nmh inbox, where I file them. Until now.
>
> Interesting.
>
> I'm doing the reverse.
>
> I get so much MIME mail, and so much of that MIME mail is spam,
> that my first pass is with command line tools, before I try
> using exmh for rendering the mime.
I have the following bash function for dumping a message to
Galeon:
sh.web() {
/bin/rm -rf $HOME/tmp/webmail
/bin/mkdir -p $HOME/tmp/webmail
(cd $HOME/tmp/webmail && \
show -noshowproc -noheader $* | mhonarc -single > index.html
galeon -n file://$HOME/tmp/webmail/index.html)
}
mhonarc converts the message into HTML (including the handling of
attachments). I'm sure the above could be modified for other browsers.
For example, for netscape/mozilla, you can run something like the
following to load the HTML file:
mozilla -raise -remote 'openFile($HOME/tmp/webmail/index.html)'
This requires an existing running instance of mozilla. If you
want to be fancy, you could check to see that mozilla is running
and adjust the command accordingly.
--ewh