procmail
[Top] [All Lists]

PIPE in a envvar?

1997-04-10 12:35:00

I wanted to change my $DEFAULT to gzipping (since I no longer actually read
mail under UNIX on the system, I don't need it to be in folder format).

I'm wondering, without boffing myself, whether I can set up an envvar in
.procmailrc like so:

$DEFAULT=| gzip -9fc>>$MAILDIR/mbox.gz

(yes, gzip is in the defined path).

Then, at the bottom of my recipes, still be able to invoke it like so:

:0 c
* LASTFOLDER ?? ^^^^
! forward_address

:0 Ac: $TEMP/Default$LOCKEXT
$DEFAULT

(yes, I'm aware I shouldn't need to explicitly declare the lockfile - I
just feel better that way).

Should this work properly?  If not, what is the best way to go about doing
this?

<Prev in Thread] Current Thread [Next in Thread>