condredirect(1)           User Commands           condredirect(1)



NAME
     condredirect - perhaps redirect mail to another address

SYNOPSIS
     in .qmail: |condredirect newaddress program [ arg ...  ]

DESCRIPTION
     condredirect feeds each new mail message to program with the
     given arguments.  If program exits 0, condredirect  forwards
     the  mail  message to newaddress, and then exits 99, so fur-
     ther commands in .qmail are ignored.

     If program exits 111, condredirect exits  111,  so  delivery
     will be retried later.

     If  program  exits  anything  else (or does not exist), con-
     dredirect exits 0, so the rest of .qmail will  be  processed
     as usual.

     Note  that  it  is not safe for program to fork a child that
     reads the message in the background.

SEE ALSO
     dot-qmail(5), qmail-command(8), qmail-queue(8)































SunOS 5.5                 Last change:                          1