smd-translate(1)
π« smd-translate(1) β the glow-up for your mailbox names π«
okay bestie, welcome to smd-translate, part of the Sync Mail Dir (smd) documentation set π. She's a little utility with main character energy whose whole job is translating mailbox names according to predefined patterns. yeah. that's it. that's the gig. and she EATS every time π
β¨ NAME β¨
smd-translate β translates mailbox names according to predefined patterns π¦
πΈ SYNOPSIS πΈ
smd-translate [-m mode] [-d direction] endpoint mailbox
π DESCRIPTION π
so smd-translate translates mailbox names according to predefined patterns. periodt. β¨
she's literally designed to be used in the configuration file of smd-push(1) and smd-pull(1) β that's her whole purpose, her calling, her moment π
if you want the longer discussion on translators (and honestly, who doesn't), go refer to smd-config(5) π
the supported modes follow, bestie. take notes π
π oimap-dovecot
this mode is designed to make the transition of offlineimap users to smd simpler π« it assumes remote mailboxes are named like in the following:
Maildir/cur
Maildir/.sub.folder/new
the corresponding local mailboxes are named like in the following:
Mail/cur
Mail/sub.folder/new
see what she did there?? the dot folder thing gets un-dotted. iconic. no cap. π
π«§ nodots
this mode simply gets rid of all dots. all of them. gone. bye. π it assumes remote mailboxes are named like in the following:
Maildir/cur
Maildir/.sub.folder/new
the corresponding local mailboxes are named like in the following:
Mail/cur
Mail/sub/folder/new
the way that .sub.folder becomes sub/folder?? that's the whole vibe. slay π
π move
this mode just replaces the root of the mailbox, i.e. substitutes MAILBOX_LOCAL for MAILBOX_REMOTE and viceversa π lowkey the simplest one and highkey still doing the most for you π«Ά
π οΈ USAGE IN CONFIGURATION FILE π οΈ
assuming the MAILBOX_LOCAL configuration variable is set to Mail and the MAILBOX_REMOTE is set to Maildir, one can use the following configuration file snippet in ~/.smd/config.endpoint:
TRANSLATOR_RL="smd-translate -m oimap-dovecot -d RL endpoint"
TRANSLATOR_LR="smd-translate -m oimap-dovecot -d LR endpoint"
to test your setup use the smd-check-conf(1) utility π§ like fr fr, go test it, don't just assume it works bestie π
π OPTIONS π
-mmode β one of the supported modes listed above π (yes,oimap-dovecot,nodots,moveβ those ones, you got this)-ddirection β one ofRLorLRπendpointβ is the suffix for the name of the configuration file to use πmailboxβ the mailbox name to translate βοΈ
π FILES π
~/.smd/config.*
π SEE ALSO π
smd-push(1), smd-pull(1), smd-config(5), smd-check-conf(1) π
π AUTHOR π
Enrico Tassi <gares@fettunta.org> π«Ά
okay that's the whole page bestie, you're officially fluent in mailbox-name translation π β¨
Sync Mail Dir (smd) documentation, last touched 21 April 2021 πΈ β go translate some mailboxes, you absolute legend ππ¦π
π¦ 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