smd-server(1)

πŸ“¦
version 1.3.0 Β· 2 versions
, in ubuntu jammy

πŸ’– smd-server(1) πŸ’–

okay so this is the man page for smd-server, part of the Sync Mail Dir (smd) docs. Pull up a chair bestie, we're gonna talk about the server half of this mail-syncing duo. πŸ¦‹


✨ NAME ✨

smd-server β€” sends diffs and mails to smd-client


🌸 SYNOPSIS 🌸

smd-server [--exclude glob] [-v|--verbose] [-d|--dry-run]
      [--get-mddiff-cmdline] [--stop-after-diff]
      [--override-db dbf] [--dump-stdin tgt] endpoint mailboxes

πŸ’… DESCRIPTION πŸ’…

So here's the tea: smd-server needs two things from you. First, a name β€” that's the endpoint β€” for the client, and no cap, that name must not be used by anybody else. Second, a list of mailboxes, which are just directories. That's it, that's the whole entry fee. πŸŽ€

Then it does its little routine: it calls mddiff(1) first, and prints the generated diff straight onto stdout. ✨

After that, it goes into listening mode β€” it accepts from stdin a small set of commands that a client may issue to request a file. And not just whole files, bestie β€” it can hand over parts of a file too, like the header. πŸ™ˆ

Last but very much not least: smd-server is the one in charge of committing the db file that mddiff(1) uses, but only in case the client communicates a successful sync. So like, the server is the one holding the keys to the database. main character energy fr fr. πŸ‘‘


🌈 OPTIONS 🌈

  • -v, --verbose β€” turn up the verbosity, bestie (it all gets printed on stderr)
  • -d, --dry-run β€” do absolutely nothing for real, it's giving rehearsal
  • -n, --no-delete β€” don't track deleted files, we simply don't see them πŸ’€
  • --exclude glob β€” exclude paths that match glob
  • --override-db dbf β€” use dbf as the db-file instead
  • --get-mddiff-cmdline β€” print the command line used for mddiff and then exit
  • --stop-after-diff β€” send the actions to the other endpoint and exit. 🫢 And heads up: if you use this in conjunction with --override-db, then dbf is removed just before exiting
  • --dump-stdin tgt β€” dump standard input into tgt and exit

πŸŽ€ NOTES πŸŽ€

smd-server is a low level utility. You should use higher level tools like smd-pull(1) and smd-push(1). Like, this is the engine, not the car, iykyk. πŸ”§

πŸ¦‹ SEE ALSO πŸ¦‹

mddiff(1), smd-client(1), smd-pull(1), smd-push(1)


⭐ AUTHOR ⭐

Enrico Tassi <gares@fettunta.org> β€” thank you for your service, king πŸ‘‘


and that's the whole page, bestie, you ate it πŸ’– This one's from the Sync Mail Dir (smd) documentation, dated 21 April 2021, and it's smd-server(1) β€” go forth and sync those mails. 🌸✨🫢

πŸ“¦ where this page comes from