Rajesh --

Did you know that your clock is off?

...and then Rajesh Fowkar said...
% Hi Listers,
% 
% I have downloaded the new mutt 1.2.5i rpm with compressed folder option enabled.

Yay :-)


% 
% I have created a gzip file oldlih.gz ( tar -zcvf oldlih nov2000 ). Here nov2000 is 
the archieve of the mailing list mailbox of nov. The new /etc/Muttrc has got the 
following additional hooks for compressed folders :

Assuming that nov2000 is an mbox file, all you need to do is gzip it like

  gzip nov2000
  mv nov2000.gz oldlih.gz

(also assuming that, for some reason, you want the different name).
This will work fine with the compressed folders patch and, I think,
the hooks you had.

Now, if this is a maildir and you really do need to use tar, you're
stepping out into unknown territory.  I don't think it unreasonable to
think that the compressed folders patch could handle recursion so that
you could specify

  open-hook \\.gz$ "gzip -cd %f > %t"
  open-hook \\.tar$ "cd %t ; tar xpf %f"
  close-hook \\.gz$ "gzip -c %t > %f"
  close-hook \\.tar$ "cd %t ; tar cpf %f ."

or similar (not going near the whole issue of the leading path name
contained in the tar file but skirting it with the cd and the .) and
then open a tarred and compressed maildir stored as nov2000.tar.gz or
some such -- but I haven't ever gotten around to trying it :-)


:-D
-- 
David T-G                       * It's easier to fight for one's principles
(play) [EMAIL PROTECTED]      * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/        Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

PGP signature

Reply via email to