Rajesh Fowkar muttered:
> I have downloaded the new mutt 1.2.5i rpm with compressed folder
> option enabled.
>
> I have created a gzip file oldlih.gz ( tar -zcvf oldlih nov2000 )
^^^ ^^^^^^
The result is a tared and gziped file named 'oldlih'.
> 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 :
>
> # gzip
> open-hook \\.gz$ "gzip -cd %f > %t"
> close-hook \\.gz$ "gzip -c %t > %f"
> append-hook \\.gz$ "gzip -c %t >> %f"
First of all these hooks only work with files named *.gz. They won't be
executed on your 'oldlih' file!
I don't use the compressed foler patch, does it work with tared files?
If not, mutt won't be able to read the result that open-hook produces.
Remember it's a tar file now, since gzip uncompressed it.
> But when I try to access this oldlih.gz I am getting the message for
> a split second decompressing oldlih.gz and than the mutt bar displays
> the message no mailbox. What's wrong ?
Ah, the patch cannot handle tar files, so don't use tar! For a
single mbox file it's useless anyway.
For testing I would suggest to not modify the original file:
gzip -c nov2000 > oldlih.gz; mutt -f oldlih.gz
HTH,
Michael
--
An Ada exception is when a routine gets in trouble and says
'Beam me up, Scotty'.
PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key