MAILSYNC(1)
β¨ MAILSYNC(1) β¨
okay bestie, pull up a chair because this is the General Commands Manual page for mailsync and honestly? it's giving main character energy for your inbox π
πΈ NAME πΈ
mailsync β synchronize IMAP mailboxes π¦
π SYNOPSIS π
mailsync [options] channel
mailsync [options] store
mailsync [options] channel store
π DESCRIPTION π
so, mailsync is a command line tool that keeps collections of mailboxes in sync with each other. no cap. and those mailboxes can live on your local filesystem or on an IMAP server β wherever, honestly, it doesn't care π
you can invoke it in three different ways, and each one is a different vibe:
mailsync channelβ synchronizes two sets of mailboxes. quick taxonomy moment: in c-client taxonomy (c-client is the library mailsync relies on to actually implement mailbox access, iykyk), mailboxes are referred to as "stores". so yeah, stores. that's the word. β¨mailsync storeβ lists the contents of a store. and bestie, please run this one before you sync two stores, because it lets you check whethermailsyncis actually seeing what you think it's seeing. vibe check your mailboxes first, fr fr πmailsync channel storeβ lists what has changed in a store since the last sync. it's the "what did I miss" recap episode π
π«Ά OPTIONS π«Ά
-ffile β use an alternative config file. not feeling the default? pick your own π-nβ don't delete messages when synchronizing. your mail stays put, no casualties π-Dβ delete any empty mailboxes after synchronizing. it's the declutter arc β¨-mβ show from, subject, etc. of messages that are killed or moved when synchronizing. receipts for every message that gets moved or yeeted π-Mβ also show message-ids. heads up: this turns on-mtoo, so you get the full spread π-sβ says what would be done without doing it. it's the dress rehearsal π and it turns on-nas well.
β οΈ ATTENTION bestie, this one is serious: this will change the "Seen" flag of emails and will create new, empty mailboxes in order to be able to compare them. so it's "dry run" but it's not free. π
-vβ show IMAP chatter. all the server gossip, live π£οΈ-vbβ show warning about braindammaged message ids π (yes, that's the spelling, I don't make the rules)-vwβ show warnings β οΈ-vpβ show RFC 822 mail parsing errors π-hβ show help. the classic "help me" button π«Ά-dβ show debug info. and it has little sub-flavours:-diβ debug/log IMAP protocol telemetry π‘-dcβ debug config π οΈ
-tmid_type β usemailsyncwith a specified message-id algorithm. right now your choices aremd5andmsgid(which is the default π±).msgiduses theMessage-IDin the mail header to identify a message.md5calculates a MD5 hash from the"From","To","Subject","Date"and"Message-ID"headers and uses that as the message identifier.
π‘ pro tip from the page itself: if you use mail clients and servers that allow empty Message-IDs (f.ex. in mail drafts), then you should use the md5 algorithm. periodt.
π₯ SEE ALSO π₯
there is more documentation in /usr/share/doc/mailsync, and in /usr/share/doc/libc-clientxxxxxx/internal.txt π (yes, literally libc-clientxxxxxx, that's the path, don't come for me)
π AUTHOR π
originally written by Jaldhar H. Vyas <jaldhar@debian.org> for the Debian GNU/Linux system. Updates by T. Pospisek <tpo_deb@sourcepole.ch>. icons only π
and that's the whole page bestie!! π this version was dated October 26, 2012, and it's from the MAILSYNC(1) manual β so go forth, sync those stores, and remember: vibe check with mailsync store first. slay ππ¦β¨
π¦ where this page comes from
- debian bookworm: mailsync 5.2.7-3.1+b1 Β· GPL-2.0-or-later WITH OpenSSL exception
- ubuntu jammy: mailsync 5.2.7-3 Β· GPL-2.0-or-later WITH OpenSSL exception
- ubuntu noble: mailsync 5.2.7-3.2 Β· GPL-2.0-or-later WITH OpenSSL exception
- ubuntu questing: mailsync 5.2.7-3.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms