MAILSYNC(1)

πŸ“¦
version 5.2.7 Β· 2 versions
, in debian bookworm, ubuntu jammy, ubuntu noble, ubuntu questing

✨ 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 whether mailsync is 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 🫢

  • -f file β€” 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 -m too, so you get the full spread πŸ’…
  • -s β€” says what would be done without doing it. it's the dress rehearsal πŸŽ€ and it turns on -n as 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 πŸ› οΈ
  • -t mid_type β€” use mailsync with a specified message-id algorithm. right now your choices are md5 and msgid (which is the default 🌱).
    • msgid uses the Message-ID in the mail header to identify a message.
    • md5 calculates 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