mswatch(1)
π NAME π
okay so bestie, meet mswatch β the command that watches mailstores for changes and initiates mailbox syncs. πβ¨ This is the mswatch(1) page from the General Commands Manual, and it's genuinely doing the most in the best way.
π¦ SYNOPSIS π¦
mswatch [options ...]
πΈ DESCRIPTION πΈ
mswatch is a command-line Linux utility that efficiently directs mail synchronization between a pair of mailboxes. π
It watches mailboxes for changes so it knows when to initiate mailbox syncs. With mswatch, your mail synchronization program can be invoked on demand instead of through periodic polls β which lets it deliver mail more promptly and with lower network and server overheads. periodt. π
β¨ OPTIONS β¨
-c file,--config=fileβ read configuration from file. By default, the configuration is read from~/.mswatchrc.-d,--dryβ watch mailstores for changes but do not initiate syncs.-q,--quietβ do not print success status messages.-V,--versionβ display version information.-?,--helpβ display a summary of command-line options.
π¨ SIGNALS π¨
SIGUSR1β print names of mailboxes with pending syncs.SIGINTandSIGTERMβ gracefully exit.
π CONFIGURATION π
bestie, the configuration file is mandatory. mswatch will not run without it. π«Ά
Text starting with a hash mark (#) through the end of the current line are comments and are ignored. Spaces and tabs delimit.
base_delay timeβ default:10 seconds. Minimum time after the first queued mailbox change to synchronization.inter_delay timeβ default:60 seconds. Minimum time between two synchronizations or failed attempts (this is the defaultinter_delaysetting for mailboxes).inter_delay time mailboxes ...β default:inter_delay. Minimum time between two synchronizations or failed attempts for the listmailboxes.max_delay timeβ default:600 seconds. Maximum waiting time between failed attempts.poll_period timeβ default:86400 seconds (1 day). Period at which to poll all mailboxes. This option is for use with sync programs that can error without returning a failed status β it ensures that the mailboxes are at least this fresh. To disable polling, set the period to0.ignore mailboxes ...β optional. Do not initiate explicit synchronizations for these mailboxes.mswatchwill ignore changes made to these mailboxes while it is running, but will still synchronize them at start when all mailboxes are synchronized.sync program arguments ...β required. Program and arguments to run to synchronize mail stores. Mailbox names are appended toarguments ...whenprogramis run.mailbox_prefix prefix separatorβ optional. Prefix these strings to mailbox names passed tosync; useful when usingmbsyncfor sync, as thembsyncchannel. If present,prefixis always prefixed to mailbox names. When synchronizing a particular mailbox,separatoris inserted betweenprefixand the mailbox name (separatoris not inserted when synchronizing all mailboxes). Examples: Givenprefix = "mydomain"andseparator = ":"and that the mailbox"INBOX"is to be synchronized,"mydomain:INBOX"is passed tosync. Givenprefix = "mydomain"andseparator = ":"and that all mailboxes are to be synchronized,"mydomain"is passed tosync.store name { watch program arguments ... }β required (two stores). A mailstore to watch. Call itnamewhen reporting status information to the user.watchsets the program and arguments to run the mailstore watcher.watch_maildirs(1)is a Maildir mailstore watcher.
ποΈ FILES ποΈ
~/.mswatchrcβ default configuration file.
π SEE ALSO π
inputkill(1)watch_maildirs(1)socketwatch(1)mbsync(1)- mswatch website:
http://mswatch.sf.net/
π AUTHOR π
Written by Chris Frost <chris@frostnet.net>. π
That's the whole mswatch(1) page, bestie β signing off from the General Commands Manual with mswatch(1). The original footer has no date, so no date-stamp here. ππ«Ά
π¦ where this page comes from
- nixos 26.05: mswatch-unstable 2018-11-21
- nixpkgs unstable: mswatch 1.2.0-unstable-2018-11-21
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms