Re: compressed mailbox mutt
Thanks everybody for all the help. I had in fact made blunder of using tar. gzip works fine. No problem. Excellent feature of mutt. Warm Regards Rajesh Michael Tatge saw fit to inform me that: 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 -- Rajesh Fowkar /\ * How I Configured my SiS6215 Card ? Visit My Web Site * WebSite:http://rajesh.computers.webjump.com * Email : [EMAIL PROTECTED] * Address:KURTARKAR NAGARI,BLDG-C,T4,3RD FLOOR,SHANTINAGAR,PONDA-GOA.(INDIA) * * Do not dwell in the past, do not dream of the future,concentrate the mind * on the present moment. - Buddha \/
compressed mailbox mutt
Hi Listers, 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 ). 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" # # bzip2 open-hook \\.bz2$ "bzip2 -cd %f %t" close-hook \\.bz2$ "bzip2 -c %t %f" append-hook \\.bz2$ "bzip2 -c %t %f" 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 ? I have even tried adding the above hooks in my ~/.mutt/muttrc. Same thing happens. Can anybody help me out ? Thanks in advance. Regards -- Rajesh Fowkar /\ * How I Configured my SiS6215 Card ? Visit My Web Site * WebSite:http://rajesh.computers.webjump.com * Email : [EMAIL PROTECTED] * Address:KURTARKAR NAGARI,BLDG-C,T4,3RD FLOOR,SHANTINAGAR,PONDA-GOA.(INDIA) * * Do not dwell in the past, do not dream of the future,concentrate the mind * on the present moment. - Buddha \/
Re: compressed mailbox mutt
Please trim your long lines next time. 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 ? It's called *compressed* folders patch - not "tar'ed and compressed" folders patch.
Re: compressed mailbox mutt
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
Re: compressed mailbox mutt
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