Re: Mail delivery and GZIP patch

2000-06-13 Thread Dirk Ruediger

Hi Nils!

 The problem isnt mutt, since mutt handles the .gz folders perfectly .. the problem 
is my mail delivery .. how do I tell procmail to add the mail in .gz format to the 
other mails ?

use in ~/.procmailrc as a recipe:

|gzip -c  mailboxfolder.gz

This appends the mail to a gzipped mailbox. But backup your mailbox before
testing!
And remeber: It's not appreciated!

Ciao for now, Dirk
--
Dirk Ruediger, Rostock, Germany
 
One man tells a falsehood, a hundred repeat it as true.



Re: Mail delivery and GZIP patch

2000-06-10 Thread John Poltorak

On Sat, Jun 10, 2000 at 12:02:09PM +0200, Nils Vogels wrote:
 Hi all!

 I have a simple question to ask: For obvious reasons I have gzipped some mailinglist 
folders, but I kinda ran into a problem now ..

 The problem isnt mutt, since mutt handles the .gz folders perfectly .. the problem 
is my mail delivery .. how do I tell procmail to add the mail in .gz format to the 
other mails ?

Maybe ask on the procmail list

 Grtz,

 Nils.

 --
 -BEGIN GEEK CODE BLOCK-
 Version: 3.12
 Comment: Take a look at http://www.geekcode.com for more info on geek code
 GCS/CC d--- s++: a-? C+++ UL(US)$ P+++ L++ !EE? W+ N+ o+ K? w---
 O- M-- V-- PS PE++ Y++ PGP++ t+ 5++ X+ !R tv- b DI+ D- G+ e+++ h+ r y+*+++*
 --END GEEK CODE BLOCK--
--
John




Re: Mail delivery and GZIP patch

2000-06-10 Thread Mikko Hänninen

Nils Vogels [EMAIL PROTECTED] wrote on Sat, 10 Jun 2000:
 The problem isnt mutt, since mutt handles the .gz folders perfectly ..
 the problem is my mail delivery .. how do I tell procmail to add the
 mail in .gz format to the other mails ?

First off, I would tell you not to deliver mail to gzipped mailboxes.
If you want to keep your archived mail in gzipped folders, I'd keep
those separate from the incoming folders, and then you can move all
email to the archive folder with Mutt once you've read it.  You can
even do "set move=yes" and set $record in folder-hooks to get
folder-specific archive folders, and automatic archiving of read
messages.

If you still insist on doing delivery from procmail into a gzipped
folder, here's how:   | gzip -c  folder.gz
You can just append gzipped data at the end of previously gzipped data,
and it will work.  However, you *do* need to take care of some
precautions to make sure the folder is locked somehow.  You may want to
write a shell script for gzip delivery that takes care of locking before
it writes to the folder, and then use that shell script to deliver from
procmail.  (Or maybe you could use procmail's ":lockfile" method on the
rule specification line, I don't know.)


Regards,
Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy  scifi, the Corrs /
All I ask is a chance to prove that money can't make me happy.



Re: Mail delivery and GZIP patch

2000-06-10 Thread David T-G

Nils --

I never saw the original of this go by, so ...

...and then John Poltorak said...
% On Sat, Jun 10, 2000 at 12:02:09PM +0200, Nils Vogels wrote:
% 
%  I have a simple question to ask: For obvious reasons I have gzipped some 
mailinglist folders, but I kinda ran into a problem now ..

Yay for you -- but you really shouldn't be gzipping active delivery
folders.


% 
%  The problem isnt mutt, since mutt handles the .gz folders perfectly .. the problem 
is my mail delivery .. how do I tell procmail to add the mail in .gz format to the 
other mails ?

You have to run the email through a compress program, such as gzip (in
much the same way that you pipe through formail to mush it around), and
then append the output to your folder.  The key here is locking; it's
entirely possible that you'll have two procmail processes trying to
append to the same file at once, and the best that that could be is bad.


% 
% Maybe ask on the procmail list

That's a good idea, too:-)


% 
%  Grtz,
% 
%  Nils.
% 
%  --
%  -BEGIN GEEK CODE BLOCK-
%  Version: 3.12
%  Comment: Take a look at http://www.geekcode.com for more info on geek code
%  GCS/CC d--- s++: a-? C+++ UL(US)$ P+++ L++ !EE? W+ N+ o+ K? w---
%  O- M-- V-- PS PE++ Y++ PGP++ t+ 5++ X+ !R tv- b DI+ D- G+ e+++ h+ r y+*+++*
%  --END GEEK CODE BLOCK--

-BEGIN GEEK CODE BLOCK-
Version: 3.1
GCS/CM/IT !d-? s:- a C++$ UBLVHS+++$ P++$ L$ !E--- W++$ 
N++(+++)$ o+++$ K w(--) !O- !M-(--) V-(--) !PS+++(+) PE++(+) Y+ PGP++ t+ 
!5(+) !X !R !tv b+++$ DI$ !D- G e++ h r+++ y*
--END GEEK CODE BLOCK--


:-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