David DeSimone [[EMAIL PROTECTED]] wrote:
> Ryan Claycamp <[EMAIL PROTECTED]> wrote:
> > I am setting up a script file to fetch a web page every day and mail
> > it to a friend. I do great getting the file with wget. When I pipe
> > it to mutt, it sends it through as plain text.
>
> This is pretty much a limitation of Mutt's batch mode.
>
> > If I was doing this manually, I discovered that I could edit-type to
> > text/html. How do I do this from the command line, so I can run it
> > from cron?
>
> Somehow I doubt this can be done, but some of Mutt's users are pretty
> clever...
>
> One way to do this would be to send the wget output to a file, then
> attach that file in batch mode, using the -a switch to Mutt. But your
> message will still need a text/plain part to make up the main body, to
> which the HTML will be attached.
mutt -a index.html -s foo [EMAIL PROTECTED] < /dev/null
Works for me. I get a null text/plain part and a text/html part with the
page.
--
Jeremy Blosser | [EMAIL PROTECTED] | http://jblosser.firinn.org/
-----------------+-------------------------+------------------------------
"If Microsoft can change and compete on quality, I've won." -- L. Torvalds
PGP signature