[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: getting procmail to pipe to a gzipped file



On Tue, May 08, 2001 at 02:50:37PM +1000, mdevin@ozemail.com.au wrote:
> On Tue, May 08, 2001 at 12:08:12AM -0400, Rob Mahurin wrote:
> > On Tue, May 08, 2001 at 01:25:37PM +1000, mdevin@ozemail.com.au wrote:
> > > On Mon, May 07, 2001 at 10:20:51PM -0400, Rob Mahurin wrote:
> > > > Try "| gzip -c >> testing.gz".
> > >
> > > That still seems to not work when I sent a mail with Subject: gzip
> > > And I know the condition works since if I remove the gzip pipe and just
> > > place a filename there then it does append to it OK.
> > 
> > Hmmm ... worked for me here, but I'm not sure what your definition of
> > "working" is.  When I used that syntax I got a file called
> > Mail/testing.gz, which gunzip transformed into a normal-looking mbox
> > file.  mutt, however, said (rightly) that the compressed file was not
> > a mailbox.
> Yeah, I get the file ~/mail/testing.gz but it is absolutely empty.
> Strange!
> > 
> > For what it's worth, I have procmail v3.13.1 1999/04/05 and Mutt 1.2.5i.
> 
> Hmmm, I have the same versions - from potato 2.2r3.  I don't understand
> why it doesn't work on my system :-(
Maybe it is something to do with my shell environment?  Because I tried
an example from 'man procmailex' and it doesn't seem to work for me
either.  Here is what I tried:
# testing of gzip pipe
MONTHFOLDER=`date +%y-%m`
:0 w:
* ^Subject:.*gzip
testing.$MONTHFOLDER

Now when I send an email with Subject: gzip, I end up with it in a file
called ~/mail/testing.  But with no 01-05 after the '.' like I thought
it would.

I have these variables set at the top of my .procmailrc
PATH=/usr/bin:/usr/local/bin
MAILDIR=$HOME/mail   # all mailboxes are in mail/
LOGFILE=/dev/null
SHELL=/bin/sh

I don't understand?

Mark.



Reply to: