1MAILDIRWATCH(1)             Double Precision, Inc.             MAILDIRWATCH(1)
2
3
4

NAME

6       maildirwatch - wait for changes to a maildir
7

SYNOPSIS

9       maildirwatch {maildir} {command} [argument...]
10

DESCRIPTION

12       maildirwatch repeatedly invokes the command, with any optional
13       arguments, an external command, as follows:
14
15       •   The first time the command gets executed is immediately after
16           maildirwatch starts.
17
18       •   Subsequent invocatons of command occur whenever there may be some
19           kind of a change to the contents of the maildir.
20
21           maildirwatch does not determine what, if anything, changed in the
22           maildir.  maildirwatch might occasionally raise a false alarm and
23           run the command even though nothing changed, but that's rare. It's
24           also possible that by the time command actually runs, then whatever
25           was changed in the maildir is no longer changed; it became what it
26           was before it was changed (a mystery that will remain unsolved
27           forever). It's up to the command to intelligently figure out if it
28           needs to do something about whatever it finds in the maildir.
29
30       maildirwatch is a rudimentary mechanism for writing shell scripts that
31       deal with newly-delivered mail, in some form or fashion.
32

EXIT CODE

34       A non-zero exit code indicates that the specified maildir does not
35       exist or is corrupted.
36
37       Otherwise maildirwatch runs until the command exits with a non-zero
38       exit code.  maildirwatch prints command's exit code on standard output,
39       and terminates with an exit code of 0.
40

SEE ALSO

42       maildirmake(1)[1].
43

AUTHOR

45       Sam Varshavchik
46           Author
47

NOTES

49        1. maildirmake(1)
50           [set $man.base.url.for.relative.links]/maildirmake.html
51
52
53
54Courier Mail Server               02/18/2021                   MAILDIRWATCH(1)
Impressum