procmail
[Top] [All Lists]

Re: pack all incoming mails

2001-06-01 09:14:45
Lukasz wants every message stored in an individual compressed file.  Martin
suggested,

|   :0
|   {
|     :fw
|     | gzip -c
| 
|     :0
|     mymail
|   }

Well, the outer unconditional braces don't really do anything, and the
filtering recipe needs a 0 if it has no conditions.

Anyhow, two other concerns: first, procmail may try to add a new 'From '
line and a new trailing blank line (neither of which is in its original
form after the gzipping) when it saves; and second, procmail will select
a name for the file that doesn't end in .gz (if the gzipping succeeds).

 :0fw
 | gzip -c
 
 :0a
 { TRAP='mv $LASTFOLDER $LASTFOLDER.gz' } # yes, strong quotes

 :0 # a pre-existing directory, as Martin explained
 mymail

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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