procmail
[Top] [All Lists]

Re: pack all incoming mails

2001-06-01 06:54:06
Just deliver to a directory rather than a file.

  :0
  mymail

where 'mymail' is the name of a directory.

Take a look at the procmailrc man page and find the parts where it talks
about delivering to directories and how each mail is placed in its own,
guaranteed to be uniquely named, file.

But how compress it ???

There are examples of how to compress stuff in the procmailex man page.
The man pages are wonderful things and well worth reading.

This is a variation on it (untested):

  :0
  {
    :fw
    | gzip -c

    :0
    mymail
  }

The filter compresses the mail, then the compressed mail is written to
a file in mymail.
Again 'mymail' is a pre-existing directory!

Please direct follow-ups to the list in future, rather than to me
personally.  Other people may find the information useful.  Thanks.

Hope that helps,
Martin
-- 
Martin McCarthy                 /</                  PGP key available
    `Procmail Companion'        \>\  http://www.ancient-scotland.co.uk
     Addison Wesley             /</    http://www.ehabitat.demon.co.uk
_______________________________________________
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>