smd-server(1)
π 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 π--excludeglobβ exclude paths that matchglob--override-dbdbfβ usedbfas the db-file instead--get-mddiff-cmdlineβ print the command line used formddiffand 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, thendbfis removed just before exiting--dump-stdintgtβ dump standard input intotgtand exit
π NOTES π
smd-serveris a low level utility. You should use higher level tools likesmd-pull(1)andsmd-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
- ubuntu jammy: syncmaildir 1.3.0-1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms