![]() | :: | Software | :: | qtools |
| condtomaildir dir progwhere dir is a Maildir-format directory and prog is one or more arguments specifying a program to run for each message.
For each email message it processes, condtomaildir runs prog with the message on standard input. If prog exits 0, condtomaildir writes the email message to dir, and then exits 99, so that further commands in .qmail are ignored. If prog exits 111, condtomaildir exits 111, so delivery is retried later. If prog exits anything else, or does not exist, condtomaildir exits 0, so the rest of .qmail is processed.
If it encounters a permanent error in handling a message, condtomaildir exits 100. If it encounters a temporary error in handling a message, condtomaildir exits 111.
If condtomaildir encounters a permanent error attempting to run prog, it exits 100. If condtomaildir encounters a temporary error in attempting to run prog, it exits 111.