procmail
[Top] [All Lists]

Re: File size check + notification

2002-04-01 05:34:24
I want to forward sender and subject of a mail to another mail address. That
is very simple.
But I want procmail only to do this if my mailbox is empty.

You can test if a file is *not* size zero from a shell with:
  test -s file

so you can make a recipe test if a file is size zero by adding a
condition like:

  * ! ? test -s mymailbox

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>