mswatch(1)

πŸ“¦ version 2018-11, in nixos 26.05, nixpkgs unstable

πŸ’– 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.
  • SIGINT and SIGTERM β€” 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 default inter_delay setting for mailboxes).
  • inter_delay time mailboxes ... β€” default: inter_delay. Minimum time between two synchronizations or failed attempts for the list mailboxes.
  • 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 to 0.
  • ignore mailboxes ... β€” optional. Do not initiate explicit synchronizations for these mailboxes. mswatch will 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 to arguments ... when program is run.
  • mailbox_prefix prefix separator β€” optional. Prefix these strings to mailbox names passed to sync; useful when using mbsync for sync, as the mbsync channel. If present, prefix is always prefixed to mailbox names. When synchronizing a particular mailbox, separator is inserted between prefix and the mailbox name (separator is not inserted when synchronizing all mailboxes). Examples: Given prefix = "mydomain" and separator = ":" and that the mailbox "INBOX" is to be synchronized, "mydomain:INBOX" is passed to sync. Given prefix = "mydomain" and separator = ":" and that all mailboxes are to be synchronized, "mydomain" is passed to sync.
  • store name { watch program arguments ... } β€” required (two stores). A mailstore to watch. Call it name when reporting status information to the user. watch sets the program and arguments to run the mailstore watcher. watch_maildirs(1) is a Maildir mailstore watcher.

πŸ—‚οΈ FILES πŸ—‚οΈ

  • ~/.mswatchrc β€” default configuration file.

πŸ”— SEE ALSO πŸ”—

πŸ‘‘ 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