Alex --
...and then Alex Lane said...
% All,
% My understanding is that mailcap will allow you to configure
% things so that you can view mail attachments.
Yep; that's the idea.
% What can I do to automatically convert encoded attachments
% into files? In particular, many people send me MS Word files, and
As I understand the mailcap file, you specify the MIME type, and then
the program to "view" it, and then any options (like copiousoutput,
for instance).
What you want to do with your "viewer" is save the attachment as a
file. So either make your viewer be a one-liner embedded in the
mailcap line, like
application/msword; cat '%s' > /some/temp/file;
or whip up a little script about like
#!/bin/sh
# yes, I'm still old fashioned
WRITEDIR=/path/to/some/dir
OUTFILE=mailcap.dump.$$
while [ -f $WRITEDIR/$OUTFILE ] ; do OUTFILE=$OUTFILE.$$ ; done
cat > $WRITEDIR/$OUTFILE
echo "$WRITEDIR/$OUTFILE created"
and have your mailcap entry look like
application/msword; /path/to/that/script < '%s';
% I'd like to be able to access such files via my local network from
% my Windoze box.
Eewwww... I do see your point, but it just seems, well, so *icky* ;-)
%
% TIA.
HTH; Mutt-ers, how did I do? ;-)
%
% Cheers...
% --
% Alex Lane mailto:[EMAIL PROTECTED]
% Seabrook, Texas, USA http://www.galexi.com/alex/
% If the fool would persist in his folly, he would become wise.
% --William Blake
%
:-D
--
David Thorburn-Gundlach * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED] Helping out at Pfizer
http://www.bigfoot.com/~davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
"Why2k? Well, I didn't think at the time that I could charge any more!"
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*
PGP signature