mut_dotlock and compressed folders patch
Hello. I have noticed that the pre-packaged mutt in RHL 8.0 (and also in prior versions) is compiled with the options --disable-flock and --enable-fcntl and that building the package does not produce any external dotlock program (mutt_dotlock). When I customize the package to add support for compressed folders (compressed folder patch by Roland Rosenfeld) or nntp (nntp patch by Vsevolod Volkov), while keeping the above options, the building process adds support for external dotlock and also instals the mutt_dotlock program. Does anybody has noticed this behaviour and would comment on it? I want the support for compressed folders and nntp, but I do not want to use an external dotlock program. Is that possible? Regards, Romildo -- Prof. José Romildo Malaquias[EMAIL PROTECTED] Departamento de Computação [EMAIL PROTECTED] Univ. Federal de Ouro Preto http://uber.com.br/romildo
Re: compressed folders and Maildir
»Sven Guckes« sagte am 2002-03-21 um 00:45:34 +0100 : who said that the compressed folders patch will work when using Maildir format? ;-) Nobody, that's why I'd like to force mbox_type=mbox when saving to a .bz2 file. append-hook? is this a new one? Yes. Introduced by CFP. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de | Jabber: [EMAIL PROTECTED] iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 1 day 13 hours 35 minutes
Re: compressed folders and Maildir
* Alexander Skwar [EMAIL PROTECTED] [2002-03-18 22:41]: I'm using Maildir as my default mbox type and also want to save old messages in my archive in mbox format. To do this, I'm using the compressed folders patch, and when I was still using mbox, this worked fine. However, when mbox_type is set to Maildir, saving to .bz2 files won't work. The messages simply aren't appended to the .bz2 file. Setting mbox_type to mbox allows me to save the messages. who said that the compressed folders patch will work when using Maildir format? ;-) (no, I did not bother to check this.. did you?) Is there a way to also execute some mutt commands in the save-hook/append-hook? append-hook? is this a new one? $ grep append- mutt-1.3.27/*(.) mx.c:else /* use regular append-copy mode */ grep: po: Is a directory sendlib.c:dprint (1, (debugfile, mutt_write_fcc(): unable to open mailbox %s in append-mode, aborting.\n, hmm... as for save-hook: 3.14. Specify default save filename Usage: save-hook [!]pattern filename do you see a command in there? right. Sven
compressed folders and Maildir
Hi! I'm using Maildir as my default mbox type and also want to save old messages in my archive in mbox format. To do this, I'm using the compressed folders patch, and when I was still using mbox, this worked fine. However, when mbox_type is set to Maildir, saving to .bz2 files won't work. The messages simply aren't appended to the .bz2 file. Setting mbox_type to mbox allows me to save the messages. Is there a way to also execute some mutt commands in the save-hook/append-hook? Thanks, Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de | Jabber: [EMAIL PROTECTED] iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 1 day 11 hours 33 minutes
Re: Compressed Folders Patch/ multiple instances of mutt
* Nicolas Rachinsky [EMAIL PROTECTED] [03-11-2001 20:28]: | AFAIK it is possible and harmless to have multiple Instances of mutt | running and accessing the same folders. | | I want to ask if anybody knows if that's still true when using | compressed folders (to let multiple instances of mutt access the same | compressed folder at the same time). Mutt (gunzips|unzips) the zipped mbox to a temporary file in /tmp. The name of this file contains mutt, `hostname -s`, and the pid of the instance of mutt creating this file. When you have two Mutt's running, they have two different pid's, and if you access the same zipped folder, it gets unzipped to two different tmp files. I guess that every sync overwrites the original zipped folder, so the Mutt which syncs last, syncs best! So, IMO, this is _not_ a good idea. -- René Clerc - ([EMAIL PROTECTED]) Left to themselves, things tend to go from bad to worse. PGP signature
Compressed Folders Patch/ multiple instances of mutt
AFAIK it is possible and harmless to have multiple Instances of mutt running and accessing the same folders. I want to ask if anybody knows if that's still true when using compressed folders (to let multiple instances of mutt access the same compressed folder at the same time). thanks Nicolas
maildir and compressed folders
Is it possible to use the compressed folders patch with maildir. What happens than. Does every mail gets compressed, or how does this work with maildir? Thanks, Manuel
Re: maildir and compressed folders
On 2001.10.18, in [EMAIL PROTECTED], Manuel Hendel [EMAIL PROTECTED] wrote: Is it possible to use the compressed folders patch with maildir. What happens than. Does every mail gets compressed, or how does this work with maildir? This patch really isn't particular to compression; it creates hooks for commands to execute before opening and after closing a folder. The default hooks are for compression of an mbox file, but it seems you could reset them as a tar+gz command instead, and store your maildir as a compressed tarball. (You could also compress each message within, but I'd personally favor the tarball.) It's just a matter of writing the correct open/close hooks. One of these days I'm going to get around to using it for encrypting certain folders. -- -D.[EMAIL PROTECTED]NSITUniversity of Chicago
Re: maildir and compressed folders
Manuel -- ...and then Manuel Hendel said... % Is it possible to use the compressed folders patch with maildir. What % happens than. Does every mail gets compressed, or how does this work % with maildir? The way the compressed folder is recognized is through hooks. For an mbox folder doing compression, I have # compressed folders open-hook \\.gz$ gzip -cd %f %t open-hook \\.z$ gzip -cd %f %t close-hook \\.gz$ gzip -c %t %f close-hook \\.z$ gzip -c %t %f append-hook \\.gz$ gzip -c %t %f append-hook \\.z$ gzip -c %t %f in my muttrc file. As you can see, mutt knows what to do with a *.gz or *.z file based on the open- and close- and append- hooks. You should be able to define your hooks any way you wish for your maildir. I'd imagine you'd probably use tar with gzip to bundle and compress the whole thing something like open-hook \\.tar.gz$ cd /tmp ; tar xpfz %f close-hook \\.tar\\.gz$ cd /tmp ; tar cpfz %f %t (though this is untested and I certainly don't know how mutt will handle the temp dir and the file names and the real location path just for starters) to tell mutt how to open a .tar.gz box (go to the temp dir and extract from the actual file) and then close it later (go to the temp dir and tar up the real file with what's in the temp file). In theory, you should be able to open and/or close and/or append any sort of mailbox this way; one idea that has crossed my mind is a encrypted mail folder (tar.pgp) but I haven't played with it and it requires an unencrypted temp file anyway... % % Thanks, % Manuel HTH HAND :-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.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! PGP signature
Re: maildir and compressed folders
On Thu, Oct 18, 2001 at 03:11:26PM -0400, David T-G wrote: In theory, you should be able to open and/or close and/or append any sort of mailbox this way; one idea that has crossed my mind is a encrypted mail folder (tar.pgp) but I haven't played with it and it requires an unencrypted temp file anyway... nod... I used to do that for a while - the folders would get unencrypted while you were reading them, but if someone got hold of your machine, they wouldn't be able to access any (closed) folders... the only problem was in appending msgs to mailboxes, since it had to unencrypt/reencrypt, instead of just appending, like you can do with gzip... -- Dan Boger [EMAIL PROTECTED] PGP signature
Automated archiving; compressed folders
In order to clean up my mailboxes, I'd like to move messages flagged important AND older than a month to an archive mailbox. Can this be done automatically? And/or based on scoring too? Also, it would be fine to have the archive box compressed. I'm using a patched mutt capable of that, but how to create and use a compressed archive folder? Andre Berger[[EMAIL PROTECTED]]
Re: compressed folders option
These hooks don't work in my muttrc. open-hook \\.gz$ "gzip -cd %f %t" close-hook \\.gz$ "gzip -c %t %f" append-hook \\.gz$ "gzip -c %t %f" I get the following errors: Error in /home/1/j/jlambert/.muttrc, line 42: open-hook: unknown command Error in /home/1/j/jlambert/.muttrc, line 43: close-hook: unknown command Error in /home/1/j/jlambert/.muttrc, line 44: append-hook: unknown command I tried these hooks in 1.2.5i and 1.3.15i without success. What am I missing here? Thanks, -Jim -- [EMAIL PROTECTED] (Replace Z's with E's to reply) cat /dev/coffee | /dev/cup | /dev/mouth | /dev/nose /dev/keyboard -Anonymous
Re: compressed folders option
Jim Lambert muttered: These hooks don't work in my muttrc. open-hook \\.gz$ "gzip -cd %f %t" close-hook \\.gz$ "gzip -c %t %f" append-hook \\.gz$ "gzip -c %t %f" I get the following errors: Error in /home/1/j/jlambert/.muttrc, line 42: open-hook: unknown command Error in /home/1/j/jlambert/.muttrc, line 43: close-hook: unknown command Error in /home/1/j/jlambert/.muttrc, line 44: append-hook: unknown command Well, if you didn't apply the Roland Rosenfeld's compressed-folders- patch... see http://www.spinnaker.de HTH, Michael -- "Oh, I've seen copies [of Linux Journal] around the terminal room at The Labs." (By Dennis Ritchie) PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key
Re: compressed folders option
Thanks for the help. It works great! -Jim On Sat, Mar 24, 2001 at 06:59:30PM +0100, Michael Tatge wrote: Jim Lambert muttered: These hooks don't work in my muttrc. open-hook \\.gz$ "gzip -cd %f %t" close-hook \\.gz$ "gzip -c %t %f" append-hook \\.gz$ "gzip -c %t %f" I get the following errors: Error in /home/1/j/jlambert/.muttrc, line 42: open-hook: unknown command Error in /home/1/j/jlambert/.muttrc, line 43: close-hook: unknown command Error in /home/1/j/jlambert/.muttrc, line 44: append-hook: unknown command Well, if you didn't apply the Roland Rosenfeld's compressed-folders- patch... see http://www.spinnaker.de HTH, Michael -- "Oh, I've seen copies [of Linux Journal] around the terminal room at The Labs." (By Dennis Ritchie) PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key -- [EMAIL PROTECTED] (Replace Z's with E's to reply) "A witty saying proves nothing." -Voltaire
compressed folders option
I just downloaded and installed 1.2.5i with the compressed folder option, but I haven't (yet) understood the information on using this option. The manual.txt file gives some open-hook, close-hook, append-hook examples, but I'm left baffled by reading it all. Am I supposed to put something like open-hook \\.gz$ "gzip -cd %f %t" into my .muttrc? If so where? If not, do I need to type all of that every time I wish to open a gzipped mail folder? I'm just overwhelmed by all the stuff here and don't understand it yet. Any help will be appreciated. (BTW, gpg/pgp comes next :-) thanks, -chuck -- ACCEL Services, Inc.| Specialists in Gravity, Magnetics | 1(713)993-0671 ph. 1980 Post Oak Blvd. | and Integrated Interpretation | 1(713)960-1157 fax Suite 2050 | | Houston, TX, 77056 | Chuck Campbell | [EMAIL PROTECTED] | President Senior Geoscientist | "Integration means more than having all the maps at the same scale!"
Re: compressed folders option
I have this in my muttrc and it works fine open-hook \\.gz$ "gzip -cd %f %t" close-hook \\.gz$ "gzip -c %t %f" append-hook \\.gz$ "gzip -c %t %f" On Fri, Mar 23, 2001 at 10:56:35AM -0600, Chuck Campbell muttered: | I just downloaded and installed 1.2.5i with the compressed folder option, | but I haven't (yet) understood the information on using this option. | | The manual.txt file gives some open-hook, close-hook, append-hook | examples, but I'm left baffled by reading it all. | | Am I supposed to put something like open-hook \\.gz$ "gzip -cd %f %t" | into my .muttrc? If so where? If not, do I need to type all of that | every time I wish to open a gzipped mail folder? | | I'm just overwhelmed by all the stuff here and don't understand it yet. | | Any help will be appreciated. | | (BTW, gpg/pgp comes next :-) | | | thanks, | -chuck | | -- | ACCEL Services, Inc.| Specialists in Gravity, Magnetics | 1(713)993-0671 ph. | 1980 Post Oak Blvd. | and Integrated Interpretation | 1(713)960-1157 fax | Suite 2050 | | | Houston, TX, 77056 | Chuck Campbell | [EMAIL PROTECTED] | | President Senior Geoscientist | | | "Integration means more than having all the maps at the same scale!" -- /Jason G Helfman "At any given moment, you may find the ticket to the circus that has always been in your possession." Fingerprint: 6A32 3774 E390 33B5 8C96 2AA1 2BF4 BD71 35A1 C149 GnuPG http://www.gnupg.org Get Private! 1024D/35A1C149
Re: compressed folders
On Thu, Jan 18, 2001 at 09:02:37AM -0500, Michael P. Soulier wrote: On Thu, Jan 18, 2001 at 07:21:24PM +0530, Suresh Ramasubramanian wrote: Using a large mallet, Michael P. Soulier whacked out: Now, if I need to search the gzipped copy, I can unzip it and use mutt's excellent regexp support. However, I'm wondering if there's a way to unzip it Use Roland Rosenfeld's gzipped folders patch. You can get prebuilt rpms at http://mutt.linuxatwork.at I'll look for it. I'll have to convert the rpms to a civilized .deb file though. ;-) The mutt package in Debian/unstable has already Roland's patch applied. From the changelog: mutt (1.2.5-5) unstable; urgency=low * Added the compressed folder patch (Closes: #76224). -- Marco d'Itri [EMAIL PROTECTED] Mon, 27 Nov 2000 18:46:25 +0100 -- Rafael Laboissiere [EMAIL PROTECTED]
compressed folders
Hey guys. My apologies if this is in the docs, you can just point me to it. Currently, I save every message at work that I've ever sent. This makes the outbox big quickly, so I copy the outbox occasionally and start with a new one, gziping the old one. Now, if I need to search the gzipped copy, I can unzip it and use mutt's excellent regexp support. However, I'm wondering if there's a way to unzip it automatically and zip it again. I'm sure someone has done this, I can't be the laziest guy in the room! Ok, maybe. ;-) Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] "...the word HACK is used as a verb to indicate a massive amount of nerd-like effort." -Harley Hahn, A Student's Guide to UNIX PGP Public Key: http://24.43.42.96/email.phtml PGP signature
Re: compressed folders
Thus saith Michael P. Soulier: Hey guys. My apologies if this is in the docs, you can just point me to it. Currently, I save every message at work that I've ever sent. This makes the outbox big quickly, so I copy the outbox occasionally and start with a new one, gziping the old one. Now, if I need to search the gzipped copy, I can unzip it and use mutt's excellent regexp support. However, I'm wondering if there's a way to unzip it automatically and zip it again. I'm sure someone has done this, I can't be the laziest guy in the room! Ok, maybe. ;-) Well, I must be *really* lazy then. I use a combination of archive folders for incoming list-mail via procmail filtering, and then use the compressed folders patch to save off important info from mails into compressed folders for the list. So I can search through them later... I'm trying to remember where I got the compressed folders patch from though Ah, seemed to have deleted the reference! Well, maybe someone else on the list will remember.. -Doug -- *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* Douglas L. Potts Spectral Systems, Inc. Url: http://www.bigfoot.com/~pottsdl "But you can't expect to wield supreme executive power just 'cause some watery tart threw a sword at you!" -Dennis, "Monty Python and the Holy Grail" *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
Re: compressed folders
Using a large mallet, Michael P. Soulier whacked out: Now, if I need to search the gzipped copy, I can unzip it and use mutt's excellent regexp support. However, I'm wondering if there's a way to unzip it Use Roland Rosenfeld's gzipped folders patch. You can get prebuilt rpms at http://mutt.linuxatwork.at --suresh -- Suresh Ramasubramanian + Wallopus Malletus Indigenensis mallet @ cluestick.org + Lumber Cartel of India, tinlcI EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin
Re: compressed folders
On Thu, Jan 18, 2001 at 07:21:24PM +0530, Suresh Ramasubramanian wrote: Using a large mallet, Michael P. Soulier whacked out: Now, if I need to search the gzipped copy, I can unzip it and use mutt's excellent regexp support. However, I'm wondering if there's a way to unzip it Use Roland Rosenfeld's gzipped folders patch. You can get prebuilt rpms at http://mutt.linuxatwork.at I'll look for it. I'll have to convert the rpms to a civilized .deb file though. ;-) Mike -- Michael P. Soulier [EMAIL PROTECTED] "...the word HACK is used as a verb to indicate a massive amount of nerd-like effort." -Harley Hahn, A Student's Guide to UNIX PGP Public Key: http://24.43.42.96/email.phtml PGP signature
Re: compressed folders
On Thu, Jan 18, 2001 at 08:21:17AM -0500, Michael P. Soulier wrote: Hey guys. My apologies if this is in the docs, you can just point me to it. Currently, I save every message at work that I've ever sent. This makes the outbox big quickly, so I copy the outbox occasionally and start with a new one, gziping the old one. Now, if I need to search the gzipped copy, I can unzip it and use mutt's excellent regexp support. However, I'm wondering if there's a way to unzip it automatically and zip it again. I'm sure someone has done this, I can't be the laziest guy in the room! Ok, maybe. ;-) yup, someone already made a patch for it... one sec, I'll search for it... http://www.spinnaker.de/mutt/compressed/ there is it. :) it also supports gpg, so not only are my older folders compressed, they are encrypted as well. :) -- Dan Boger System Administrator Brainbench linux MVP http://www.brainbench.com PGP signature
Re: support for compressed folders in 1.2?
I'm using procmail with gziped boxes, with no problems with a patch and lockfiles : first, my .muttrc : cut- append-hook \\.gz$ "touch $HOME/.mutt_gzip.lock ; gzip -c %t %f ; rm -f $HOME/.mutt_gzip.lock" open-hook \\.gz$ "touch $HOME/.mutt_gzip.lock ; gzip -cd %f %t" close-hook \\.gz$ "gzip -c %t %f ; rm -f $HOME/.mutt_gzip.lock" /cut- .mutt_gzip.lock is my lockfile second, the patch : cut- diff -urN mutt-1.2/mx.c mutt-1.1.12/mx.c --- mutt-1.2/mx.c Wed May 10 10:44:09 2000 +++ mutt-1.1.12/mx.cTue May 2 17:16:08 2000 @@ -915,6 +915,15 @@ else if (!ctx-changed ctx-deleted == 0) { mutt_message _("Mailbox is unchanged."); +#ifdef USE_COMPRESSED +if (ctx-compressinfo) { + char * home = getenv("HOME"); + char fichlock[256]; + strcpy(fichlock,home); + strcat(fichlock,"/.mutt_gzip.lock"); + unlink(fichlock); +} +#endif mx_fastclose_mailbox (ctx); return 0; } /cut- third, my .procmailrc : cut- :0w# Anything from Antoine Martin * ^From.*martina.* | proczip Antoine.gz /cut- finally, the script proczip : cut- #!/bin/sh if [ -f ${HOME}/.mutt_gzip.lock ] ;then \ cat $DEFAULT ; \ else\ /usr/local/gnu/bin/gzip -fcq9 ${MAILDIR}/$1 ; \ fi /cut- Now, I'll explain how it works : When I open a gzipped mailbox with mutt, I create a lockfile. When procmail want to deliver a mail, it will put it in the compressed mailbox ONLY if this mailbox is not used by mutt. If the mailbox is used, the mail will be delivered in the $DEFAULT mbox, which should NOT be compressed, of course. Any idea to make this better ? Antoine On Sat, May 20, 2000 at 04:25:29PM +0200, Roland Rosenfeld wrote: On Sat, 20 May 2000, Zhendong wrote: Then what about the supporting for compressed mail folders in procmail when using mutt? I use procmail to deliver mails to different mail folders. After I've changed the mutt folders to gz format, procmail still delivers mails as uncompressed format, they can not work well together. It's possible to append mails to gzipped folders by something like | gzip folder in your .procmailrc. BUT DON'T DO THIS, if you do not want to loose mail! IIRC, there is no mechanism to merge changes in the compressed folder into the temporary uncompressed folder, so if you have a compressed folder open for reading, while a new mail arrives and is appended to this compressed folder, it will never been shown, but simply overwritten, when leaving the compressed folder with mutt. I suggest to use compressed folders only for archive folders but not for incoming folders. Tscho Roland -- * [EMAIL PROTECTED] * http://www.spinnaker.de/ *
Re: support for compressed folders in 1.2?
Zhendong: folders. After I've changed the mutt folders to gz format, procmail still delivers mails as uncompressed format, they can not work well together. then run the mails through gzip. the line "| gzip folder" will append compressed data to the folder. this has nothing to do with mutt. furthermore, the attitude behind the statement "...they can not work well together" drives me up the wall. do you really silently expect any program to foresee every users needs and integrate all possible solutions? this is the opposite of unix thinking, where a number of independant little programs to their speciality bound into a framework by a smart and small operating system, which operates the same way. your statement reveals micro$oft thinking: give the users one big babel tower, and if they can't get their tasks done with it, it cannot be done at all! gzip does not even have to uncompress the target file to append new data, it handles compressed data streams well. -- clemens [EMAIL PROTECTED] do D4685B884894C483
Re: support for compressed folders in 1.2?
clemensF proclaimed on mutt-users that: the opposite of unix thinking, where a number of independant little programs to their speciality bound into a framework by a smart and small operating system, which operates the same way. your statement reveals micro$oft thinking: give the users one big babel tower, and if they can't get their tasks done with it, it cannot be done at all! heresy Sounds a lot like emacs thinking to me :) g,dr -- Suresh Ramasubramanian | sureshr at staff.juno.com An idea is not responsible for the people who believe in it.
Re: support for compressed folders in 1.2?
Yuzhendo Zhendong (perhaps one and the same) -- ...and then [EMAIL PROTECTED] said... % Can we use Procmail to play with the compressed mail folders? Since I % found that even when mutt can deal with compressed folders, procmail % will not deliver mails in compressed format. So there will some % problems. ...and then Zhendong said... % % Then what about the supporting for compressed mail folders in procmail % when using mutt? I use procmail to deliver mails to different mail % folders. After I've changed the mutt folders to gz format, procmail % still delivers mails as uncompressed format, they can not work well % together. I'll leave the explanation from our friend clemens alone and also leave all of the credit for the rant :-) Yes, you can use procmail with compressed folders by compressing your incoming mail (| gzip -c) before it writes to the folder ( box.gz). Be sure that you do sufficient locking (no, I still haven't really figured out procmmail locking and when I should specifiy a lock and when not and ...) to guarantee that only one stream at a time is appended to your mailbox; mixing two at once is bad even if the file doesn't get wiped. Before messing with all of that, though, I'd ask "why on earth are you delivering to a compressed folder??" because it's just one more step to handle. In order for mutt to read the compressed folder it's going to have to uncompress it to a temp file first, and you certainly don't want to have to mess with that every time you go to read mail. Why not deliver to an uncompressed mailbox (of some sort -- mbox, maildir, MH) as usual, read your mail as usual, and then archive (perhaps with good old $move though you may have to do some tweaking to tell it how to move from box to box.gz) to a compressed folder? The mail is still available in case you need to go back in time, but the stuff you're likely to use regularly is *easy* to use. Just my twenty millibucks; YMMV. HTH HAND! :-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! The "new millennium" starts at the beginning of 2001. There was no year 0. Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh* PGP signature
Re: support for compressed folders in 1.2?
Hi clemensF, David T-G Thank you for pointing me out :) David T-G wrote: I'll leave the explanation from our friend clemens alone and also leave all of the credit for the rant :-) Yes, you can use procmail with compressed folders by compressing your incoming mail (| gzip -c) before it writes to the folder ( box.gz). Be sure that you do sufficient locking (no, I still haven't really figured out procmmail locking and when I should specifiy a lock and when not and ...) to guarantee that only one stream at a time is appended to your mailbox; mixing two at once is bad even if the file doesn't get wiped. Before messing with all of that, though, I'd ask "why on earth are you delivering to a compressed folder??" because it's just one more step to handle. In order for mutt to read the compressed folder it's going to have to uncompress it to a temp file first, and you certainly don't want to have to mess with that every time you go to read mail. Why not deliver to an uncompressed mailbox (of some sort -- mbox, maildir, MH) as usual, read your mail as usual, and then archive (perhaps with good old $move though you may have to do some tweaking to tell it how to move from box to box.gz) to a compressed folder? The mail is still available in case you need to go back in time, but the stuff you're likely to use regularly is *easy* to use. Just my twenty millibucks; YMMV. HTH HAND! :-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! The "new millennium" starts at the beginning of 2001. There was no year 0. Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*
Re: support for compressed folders in 1.2?
On Sat, 20 May 2000, Zhendong wrote: Then what about the supporting for compressed mail folders in procmail when using mutt? I use procmail to deliver mails to different mail folders. After I've changed the mutt folders to gz format, procmail still delivers mails as uncompressed format, they can not work well together. It's possible to append mails to gzipped folders by something like | gzip folder in your .procmailrc. BUT DON'T DO THIS, if you do not want to loose mail! IIRC, there is no mechanism to merge changes in the compressed folder into the temporary uncompressed folder, so if you have a compressed folder open for reading, while a new mail arrives and is appended to this compressed folder, it will never been shown, but simply overwritten, when leaving the compressed folder with mutt. I suggest to use compressed folders only for archive folders but not for incoming folders. Tscho Roland -- * [EMAIL PROTECTED] * http://www.spinnaker.de/ *
Re: support for compressed folders in 1.2?
Roland Rosenfeld: | gzip folder BUT DON'T DO THIS, if you do not want to loose mail! IIRC, there is no mechanism to merge changes in the compressed folder into the temporary uncompressed folder, so if you have a compressed folder open for reading, while a new mail arrives and is appended to this compressed folder, it will never been shown, but simply overwritten, when leaving the compressed folder with mutt. I suggest to use compressed folders only for archive folders but not for incoming folders. an exception might be allowed if the folder is protected by a lock. but when looking at the details, updating a compressed folder while it's uncompressed temporary image is open for reading will not damage anything. but when the folder isn't locked and =updated= by the viewer when mail is appended at the same time, things might well go wrong. -- clemens [EMAIL PROTECTED]
Re: support for compressed folders in 1.2?
Suresh Ramasubramanian: heresy Sounds a lot like emacs thinking to me :) g,dr you, youDANGEROUS PERSON!
Re: support for compressed folders in 1.2?
It works for compressed mutt mail folders. Then what about the supporting for compressed mail folders in procmail when using mutt? I use procmail to deliver mails to different mail folders. After I've changed the mutt folders to gz format, procmail still delivers mails as uncompressed format, they can not work well together. thanks. zd === From: Lars Hecking Subject: Re: support for compressed folders in 1.2? Date: Thu, 18 May 2000 08:59:24 -0700 I'm making the move from 0.95.5i to 1.2 to get all of the useful changes therein. However, I'd been using Alain Penders' support for compressed folders in 0.95.5i, and now can't live without it. :) I tried just patching the existing diffs into 1.2, but of course that failed. Before I go through and port this stuff over to 1.2, does anybody know if this has already been done? Thanks much! http://www.spinnaker.de/mutt/#compressed
support for compressed folders in 1.2?
Folks- I'm making the move from 0.95.5i to 1.2 to get all of the useful changes therein. However, I'd been using Alain Penders' support for compressed folders in 0.95.5i, and now can't live without it. :) I tried just patching the existing diffs into 1.2, but of course that failed. Before I go through and port this stuff over to 1.2, does anybody know if this has already been done? Thanks much! eric
Re: support for compressed folders in 1.2?
heh. nevermind. found it on spinnaker. pls ignore... eric On Thu, May 18, 2000 at 09:37:19AM -0400, Eric Osborne wrote: Folks- I'm making the move from 0.95.5i to 1.2 to get all of the useful changes therein. However, I'd been using Alain Penders' support for compressed folders in 0.95.5i, and now can't live without it. :) I tried just patching the existing diffs into 1.2, but of course that failed. Before I go through and port this stuff over to 1.2, does anybody know if this has already been done? Thanks much! eric
Re: support for compressed folders in 1.2?
I'm making the move from 0.95.5i to 1.2 to get all of the useful changes therein. However, I'd been using Alain Penders' support for compressed folders in 0.95.5i, and now can't live without it. :) I tried just patching the existing diffs into 1.2, but of course that failed. Before I go through and port this stuff over to 1.2, does anybody know if this has already been done? Thanks much! http://www.spinnaker.de/mutt/#compressed
Re: support for compressed folders in 1.2?
Eric -- ...and then Eric Osborne said... % Folks- % % I'm making the move from 0.95.5i to 1.2 to get all of the useful % changes therein. However, I'd been using Alain Penders' support for % compressed folders in 0.95.5i, and now can't live without it. :) I can imagine! That's pretty old, though. % % I tried just patching the existing diffs into 1.2, but of course % that failed. Before I go through and port this stuff over to 1.2, % does anybody know if this has already been done? Thanks much! See http://www.rhein.de/~roland/mutt/ for the rr.compressed patch. Have fun :-) % % eric :-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! The "new millennium" starts at the beginning of 2001. There was no year 0. Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh* PGP signature
Re: any chance of getting compressed folders in rhl muttpackage?
I'd like to use this patch, but how would I apply the patch to the source code? - Original Message - From: José Romildo Malaquias [EMAIL PROTECTED] Date: Wednesday, April 12, 2000 3:06 am Subject: any chance of getting compressed folders in rhl mutt package? There is around a patch for mutt that add support for compression (gzip and bzip2) folders to mutt. It allows me to keep my email archives from discussion lists compressed, freeing disk space. It would be nice to have the mutt package released by RedHat with this patch applied. What does the rh developers thinks? Any chance? Also why not offer a muttrc with some colour configuration? The compression patch can be found at http://www.spinnaker.de/mutt/ Romildo -- Prof. José Romildo Malaquias [EMAIL PROTECTED] Departamento de Computação Universidade Federal de Ouro Preto Brasil
Re: any chance of getting compressed folders in rhl mutt package?
On 12-Apr-2000, Jason Helfman wrote: I'd like to use this patch, but how would I apply the patch to the source code? tar xvfz mutt...tar.gz cd mutt... zcat /path/to/patch.compressed...gz | patch -p1 Ronny
Re: any chance of getting compressed folders in rhl mutt package?
The mutt rpms at http://mutt.linuxatwork.at/ come in a compressed-folders patch flavor - grab one with "cfp" in the name. This is also the place to watch for the mutt-1.2 rpms, which will appear within a day or two of the source release. Alec -- Alec Habig, Boston University Particle Astrophysics Group [EMAIL PROTECTED] http://hep.bu.edu/~habig/
Re: any chance of getting compressed folders in rhl mutt package?
the error is that it isn't in gzip format, when i tried to download it, .gz extension was removed, added it of course wouldn't make a differencedoes anyone have the patch, i looked on the mutt/contrib site..no go On Wed, Apr 12, 2000 at 08:24:29AM -0500, Ronny Haryanto muttered: | On 12-Apr-2000, Jason Helfman wrote: | I'd like to use this patch, but how would I apply the patch to the | source code? | | tar xvfz mutt...tar.gz | cd mutt... | zcat /path/to/patch.compressed...gz | patch -p1 | | Ronny -- /helfman "At any given moment, you may find the ticket to the circus that has always beenin your possession." Fingerprint: 2F76 2856 776A 3E07 9F3E 452A 17D9 9B28 D75E 0A36 GnuPG http://www.gnupg.org Get Private! 1024D/D75E0A36
Re: any chance of getting compressed folders in rhl mutt package?
forget it, i gzipped it and patched it, thanks for the help.. On Wed, Apr 12, 2000 at 10:34:58AM -0500, Jason Helfman muttered: | the error is that it isn't in gzip format, when i tried to download it, | .gz extension was removed, added it of course wouldn't make a | differencedoes anyone have the patch, i looked on the mutt/contrib | site..no go | | On Wed, Apr 12, 2000 at 08:24:29AM -0500, Ronny Haryanto muttered: | | On 12-Apr-2000, Jason Helfman wrote: | | I'd like to use this patch, but how would I apply the patch to the | | source code? | | | | tar xvfz mutt...tar.gz | | cd mutt... | | zcat /path/to/patch.compressed...gz | patch -p1 | | | | Ronny | | -- | /helfman | | "At any given moment, you may find the ticket to the circus that has always beenin |your possession." | Fingerprint: 2F76 2856 776A 3E07 9F3E 452A 17D9 9B28 D75E 0A36 | GnuPG http://www.gnupg.org Get Private! 1024D/D75E0A36 -- /helfman "At any given moment, you may find the ticket to the circus that has always beenin your possession." Fingerprint: 2F76 2856 776A 3E07 9F3E 452A 17D9 9B28 D75E 0A36 GnuPG http://www.gnupg.org Get Private! 1024D/D75E0A36
Re: Flag N with compressed folders
~/.procmailrc: :0 * ^TO_:.*mutt-users. |gzip -c $s ~/Mail/mutt-users.gz Until now I never had problems with loosing mail. So I didnt need any "lock". BTW: Should I lock? What? Why? (As long as I'm the only person on my computer..) Just add the second colon at the beginning of the recipe. If I understand the procmail man page correctly, it will then use ~/Mail/mutt-users.gz.$LOCKEXT. You being the only user on the computer doesn't matter: you could have several mail messages coming in at the same time, and a number of concurrent procmail processes trying to appand to the mailbox file at the same time. Anyway..Is this right now a problem I can fix somehow? Well I dont really need the patch for saving space on my HD. - I just only like the idea. :)
Re: Flag N with compressed folders
On Fri, 24 Mar 2000, Gero Reichard wrote: :0 * ^TO_:.*mutt-users. |gzip -c $s ~/Mail/mutt-users.gz Until now I never had problems with loosing mail. So I didnt need any "lock". BTW: Should I lock? What? Why? (As long as I'm the only person on my computer..) Above you have a command to append to mutt-users.gz. IMHO you should lock this folder before writing to it, because otherwise a second process (either mutt or a second procmail instance) could write to this file at the same time, which may cause trouble. Anyway..Is this right now a problem I can fix somehow? I would try this procmail rule: :0: * ^Sender: owner-mutt-users@mutt\.org |gzip -c $s ~/Mail/mutt-users.gz If I understand procmailrc(5), the extra ':' should use the name after '', append $LOCKEXT and use this as the lockfile. Tscho Roland -- * [EMAIL PROTECTED] * http://www.spinnaker.de/ *
Flag N with compressed folders
Hi all. Like Eric Thiele already posted, I also have problems with the N-Flag by using 'mutt -y'. But I do only have this problems with compressed folders. Every other folder - uncompressed - shows the flag. Does anybody know, where and how to fix this? Just in case, I post parts of my ~/.procmailrc. ~/.procmailrc: :0 * ^TO_:.*mutt-users. |gzip -c $s ~/Mail/mutt-users.gz :0 * ^X-Envelope-To:.*owner-debian-user-de. |$HOME/bin/debian-footer-kill.pl |gzip -c $s ~/Mail/debian-user-de.gz Thanks in advance. -- It's a damn poor mind that can only think of one way to spell a word. -- Andrew Jackson
Re: Flag N with compressed folders
On Thu, 23 Mar 2000, Gero Reichard wrote: ~/.procmailrc: :0 * ^TO_:.*mutt-users. |gzip -c $s ~/Mail/mutt-users.gz I suggest to use compressed folders only for archive folders and not for incoming mail. Otherwise you risk to lose mail. In your above example you don't do any locking, you it's possible that multiple procmail instances write to the file at the same time. And don't forget, that it is possible that you read your mail while new mail arrives. This isn't supported by the compressed folders patch... Tscho Roland -- * [EMAIL PROTECTED] * http://www.spinnaker.de/ *
Re: Flag N with compressed folders
On Thu, 23 Mar 2000, Gero Reichard wrote: ~/.procmailrc: :0 * ^TO_:.*mutt-users. |gzip -c $s ~/Mail/mutt-users.gz I suggest to use compressed folders only for archive folders and not for incoming mail. Otherwise you risk to lose mail. In your above Hmmm...I can't find anything about your suggest in your (quiet short) documenmtation about this patch. ;) example you don't do any locking, you it's possible that multiple procmail instances write to the file at the same time. And don't forget, that it is possible that you read your mail while new mail arrives. This isn't supported by the compressed folders patch... Until now I never had problems with loosing mail. So I didnt need any "lock". BTW: Should I lock? What? Why? (As long as I'm the only person on my computer..) Anyway..Is this right now a problem I can fix somehow? Well I dont really need the patch for saving space on my HD. - I just only like the idea. :) Tscho Ditto. :) -- Positive, adj.: Mistaken at the top of one's voice. -- Ambrose Bierce, "The Devil's Dictionary"
Compile errors: mutt1.0pre3 with compressed folders patch
Hi, this is the first time ever I try to compile mutt. My system is Debian 2.1 (Linux 2.0.36). I followed these steps: - cp and untar/unzip mutt-1.0pre3i.tar.gz to the /tmp directory - cp and gunzip patch-1.0pre3.rr.compressed.2 in the mutt-1.0pre3 dir - apply the patch: patch -p0 patch-1.0pre3.rr.compressed.2 - configure (not sure if the config options are right). The ones I have with 0.95.6i (.deb binary installation) are: System: Linux 2.0.36 [using slang 10202] Opciones especificadas al compilar: -DOMAIN -HOMESPOOL +USE_SETGID +USE_DOTLOCK -USE_FCNTL -USE_FLOCK +USE_IMAP +USE_POP +HAVE_REGCOMP -USE_GNU_REGEX +HAVE_COLOR +HAVE_PGP5 +HAVE_PGP2 +HAVE_GPG -BUFFY_SIZE -EXACT_ADDRESS +ENABLE_NLS SENDMAIL="/usr/sbin/sendmail" MAILPATH="/var/spool/mail" SHAREDIR="/usr/share/mutt" SYSCONFDIR="/etc" ISPELL="/usr/bin/ispell" _PGPPATH="/usr/bin/pgp" _PGPV2PATH="/usr/bin/pgp" _PGPV3PATH="/usr/bin/pgp" and the ones I give now are: /tmp/mutt-1.0pre3# ./configure --with-sharedir="/usr/share/mutt" --with-slang --with-mailpath="/var/spool/mail" --with-homespool --enable-pop --with-regex --enable-locales-fix --enable-exact-address --with-charmaps="/usr/share/i18n/charmaps" --enable-PGP2 --enable-PGP5 --enable-GPG --enable-compressed - run make ... where I see some error about po needing compress.c ... in fact I see no compress.c anywhere. -- Horacio LC_mutt=es_ES mailto:[EMAIL PROTECTED]http://carlotha.ciberia.es/mutt/ ~ Spain ~ Spanje ~ Spanien
[Compressed-Folders] file descriptor leaking fixed
There were four file descriptor leaks in the old versions of the compressed folders patch. The attached patch fixes this problem. The patch can be applied after most versions of the compressed folders patch it should work with 0.95.*, 0.96.* and 1.0pre*. Ciao Roland -- * [EMAIL PROTECTED] * http://www.spinnaker.de/ * PGP: 1024/DD08DD6D 2D E7 CC DE D5 8D 78 BE 3C A0 A4 F1 4B 09 CE AF --- compress.c.org Fri Sep 24 09:42:23 1999 +++ compress.c Wed Sep 29 10:06:53 1999 @@ -213,6 +213,7 @@ mutt_system(echo_cmd); rc = mutt_system (cmd); mx_unlock_file (ctx-realpath, fileno (fp), 1); + fclose (fp); if (rc) { @@ -332,6 +333,7 @@ } mx_unlock_file (ctx-realpath, fileno (fp), 1); + fclose (fp); safe_free ((void **)cmd); @@ -403,10 +405,12 @@ ctx-path); safe_free ((void **)cmd); mx_unlock_file (ctx-realpath, fileno (fp), 1); +fclose (fp); return (-1); } mx_unlock_file (ctx-realpath, fileno (fp), 1); + fclose (fp); remove_file (ctx); restore_path (ctx); safe_free ((void **)cmd); PGP signature
compressed folders + IMAP ?
I've become addicted to compressed folders (bzip2'd folders even), and would like to migrate my mail over to IMAP as well, but from what I've seen it's not possible to do compressed folders over IMAP. Has anybody gotten this to work? Is it even possible to do within the IMAP protocol? TIA .adam -- Adam Lazur - Computer Engineering Undergrad - Lehigh University icq# 3354423 - http://www.lehigh.edu/~ajl4 "Imagination is more important than knowledge" -Albert Einstien
Re: compressed folders + IMAP ?
On Sun, 30 May 1999, Adam Lazur wrote: I've become addicted to compressed folders (bzip2'd folders even), and would like to migrate my mail over to IMAP as well, but from what I've seen it's not possible to do compressed folders over IMAP. Has anybody gotten this to work? Is it even possible to do within the IMAP protocol? You ask this question in the wrong mailing list, because this is not a problem of the mail reader but the imap server. The imap server has to parse the mailfolder and offers the mailreader a list of mails, so the mailreader can order every single article. If you want to access a compressed folder via imap, the imap server needs to supply compressed folders support, so it can uncompress the folder and interact with the mailreader as with normal folders. I don't know whether there are imap servers supporting compressed folders. If this is the case you may have to make sure, that the compressed folders support in mutt is switched off, otherwise this could result in problems (didn't check this). Ciao Roland -- * [EMAIL PROTECTED] * http://www.spinnaker.de/ * PGP: 1024/DD08DD6D 2D E7 CC DE D5 8D 78 BE 3C A0 A4 F1 4B 09 CE AF
Re: Procmail and compressed folders
Hi! On Mon, May 24, 1999 at 10:05:30AM +0930, Stewart Wright wrote (I hope this is what you were looking for. It's also in the procmailex man page.) Args, thanks, I was blind. file. I want this file included in my 'mailboxes' variable - but mutt doesn't seem to recognize compressed folders as having new mail... Yes, xbuffy doesn't recognize compressed folders, too. I wonder why. I thought mutt checks the timestamp not the contents of the folder. Shade and sweet water! Stephan -- | Stephan SeitzE-Mail: [EMAIL PROTECTED] | | WWW: http://fsing.fs.uni-sb.de/~stse/| | PGP Public Keys: http://fsing.fs.uni-sb.de/~stse/pgp.html |
Procmail and compressed folders
Hi! mutt works fine with compressed folder but I like to compress the mailinglist-folders which are sorted by procmail. Do someone use procmail with compressed folders? Shade and sweet water! Stephan -- | Stephan SeitzE-Mail: [EMAIL PROTECTED] | | WWW: http://fsing.fs.uni-sb.de/~stse/| | PGP Public Keys: http://fsing.fs.uni-sb.de/~stse/pgp.html |
Compressed folders
My apologies, I know this subject was treated a while ago, but I lost the mail which had this reference. I mean a pointer to a URL on info about compressed mail folders with Mutt; could anyone refresh my mind, please? TIA Horacio -- Claves - GnuPG/PGP - Keys : http://www.rediris.es/cert/keyserver o/or Envía un mensaje vacío a [EMAIL PROTECTED] con la línea de asunto: Send a blank message to [EMAIL PROTECTED] with the subject line: Tipo de Clave/Key Type Asunto:/Subject: DSA/ElGamal fetch dsa/elgamal DSS/Diffie-Hellman fetch dh/dss RSA fetch rsa
Re: Compressed folders
On Tue, Apr 06, 1999 at 12:28:26AM +0200, [EMAIL PROTECTED] wrote: My apologies, I know this subject was treated a while ago, but I lost the mail which had this reference. I mean a pointer to a URL on info about compressed mail folders with Mutt; could anyone refresh my mind, please? The original site is http://www.spinnaker.de/mutt/ it is also available from my patch-page at http://sec.42.org/mutt/ HTH CU, Sec -- This article doesn't really cover many specifics, other than to point out that these pieces of equipment which have been labeled completely obsolete, still have value and function, and not only to the hacker. -- hir4-5.txt