On Fri, Sep 24, 1999 at 04:47:00PM +0200, Eric Smith wrote:
> Maybe this is not really a mutt question.
> 
> I have the following line(s) in my .mailcap which is most useful:
> 
> application/zip;      /usr/bin/unzip -d/var/tmp/unzipped/ %s
> application/x-zip-compressed; /usr/bin/unzip -d/var/tmp/unzipped/ %s
> 
> As you see, it unzips a zip attachment automatically when I press on it, now 
> is it possible to have the routine prompt me for what destination dir I wish to 
>unzip to?
>
Replace unzip with a script that asks for the file name and then calls
unzip. What is unzip? gunzip from gzip? I have several similar scripts
but not one that does this exactly.
 
> (As a matter of interest Netscape reads this .mailcap as well and when 
> you download it also unzips on the fly).

If you want this fine. If you do not, have your mutt mailcap somewhere
that Netscape does not look. I use ~/.mutt/mailcap and point to this
with use mailcap in .muttrc. Netscape, lynx etc sometimes do not like
copiousoutput in mailcap lines.
> -- 
> Eric Smith
> [EMAIL PROTECTED]
> 
> We've had reports that on Linux (Redhat 5.1) on Intel,
> undef $scalar will return memory to the system, while on
> Solaris 2.6 it won't.  In general, try it yourself and see.
> Makes you think.

-- 
        Associate Professor Brian Salter-Duke (Brian Duke)
Chemistry, Faculty of Science, IT and Education, Northern Territory University,
  Darwin, NT 0909, Australia.  Phone 08-89466702. Fax 08-89466847
[EMAIL PROTECTED]  http://www.smps.ntu.edu.au/school/compchem.html

Reply via email to