<<< Date Index >>>     <<< Thread Index >>>

Re: Mailcap, autoview, and exporting



On Thu, May 18, 2006 at 03:35:01PM -0400, Dave Waxman wrote:
> "ext/html; cp %s /home/dave/public_html/mail%s.html | sleep 2 | chmod -R
> 777 /home/dave/public_html/mail/* | elinks -dump -dump-charset
> iso-8859-15 -default-mime-type text/html %s; needsterminal;
> copiousoutput;"
> and while it works, you can see why it is not ideal.  First, it's
> impossible to know what temp file is what in the public dir

How about saving it as something like

  cp %s /home/dave/public_html/$(date +%Y_%m_%d-%H_%M_%S)-%s.html

You could even extract the sender from the From field and put that in
there.

> and secondly
> the internal pager is made to look ugly with this long command
> displayed.

How about putting the whole thing into a script?

Sincerely,
Martin

-- 
\u270C