GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MAILDIRWATCH(1) Double Precision, Inc. MAILDIRWATCH(1)

maildirwatch - wait for changes to a maildir

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

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.

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.

maildirmake(1)[1].

Sam Varshavchik
Author

1.
maildirmake(1)
[set $man.base.url.for.relative.links]/maildirmake.html
02/18/2021 Courier Mail Server

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.