"Fossies" - the Fresh Open Source Software Archive

Member "courier-1.2.2/libs/maildir/maildirwatch.1" (5 Nov 2022, 3435 Bytes) of package /linux/misc/courier-1.2.2.tar.bz2:


Caution: As a special service "Fossies" has tried to format the requested manual source page into HTML format but links to other man pages may be missing or even erroneous. Alternatively you can here view or download the uninterpreted manual source code. A member file download can also be achieved by clicking within a package contents listing on the according byte size field. See also the last Fossies "Diffs" side-by-side code changes report for "maildirwatch.1": 1.1.10_vs_1.1.11.

MAILDIRWATCH

NAME
SYNOPSIS
DESCRIPTION
EXIT CODE
SEE ALSO
AUTHOR
NOTES

NAME

maildirwatch − wait for changes to a maildir

SYNOPSIS

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

DESCRIPTION

maildirwatch repeatedly invokes the command, with any optional arguments, an external command, as follows:

• The first time the command gets executed is immediately after maildirwatch starts.

• Subsequent invocatons of command occur whenever there may be some kind of a change to the contents of the maildir.

maildirwatch does not determine what, if anything, changed in the maildir. maildirwatch might occasionally raise a false alarm and run the command even though nothing changed, but that's rare. It's also possible that by the time command actually runs, then whatever was changed in the maildir is no longer changed; it became what it was before it was changed (a mystery that will remain unsolved forever). It's up to the command to intelligently figure out if it needs to do something about whatever it finds in the maildir.

maildirwatch is a rudimentary mechanism for writing shell scripts that deal with newly−delivered mail, in some form or fashion.

EXIT CODE

A non−zero exit code indicates that the specified maildir does not exist or is corrupted.

Otherwise maildirwatch runs until the command exits with a non−zero exit code. maildirwatch prints command's exit code on standard output, and terminates with an exit code of 0.

SEE ALSO

maildirmake(1) [1] .

AUTHOR

Sam Varshavchik

Author

NOTES

1.

maildirmake(1)

[set $man.base.url.for.relative.links]/maildirmake.html