LEI-REFRESH-MAIL-SYNC(1)

πŸ’Œ LEI-REFRESH-MAIL-SYNC(1) πŸ’Œ

ok so bestie, welcome to the public-inbox user manual β€” this page is lei-refresh-mail-sync, and honestly? it's giving "quiet little cleanup crew that saves your whole archive" energy. 🧹✨


✨ NAME ✨

lei-refresh-mail-sync β€” refresh sync info with Maildir, IMAP πŸ¦‹


🌸 SYNOPSIS 🌸

lei refresh-mail-sync --all[=<remote|local>]

lei refresh-mail-sync MFOLDER [MFOLDER...]

πŸŽ€ DESCRIPTION πŸŽ€

okay so picture this: lei refresh-mail-sync is literally here to keep old messages that got indexed with lei-index(1) retrievable when Maildir flags change a filename. like, flags move around, filenames mutate, and your index is over there like 😭 β€” this command fixes that vibe. it also prunes invalid entries for messages that no longer exist in a Maildir. bye bye ghosts πŸ‘»

it's also useful for making sure lei-export-kw(1) can propagate keyword (flag) changes to Maildirs and IMAP folders. so like, your flag changes actually make it out into the world. πŸ’…

and the best part? it only needs read-only access to Maildirs and IMAP folders β€” it will not attempt to write to them at all. not even a little bit. no cap. 🫢


πŸ’… OPTIONS πŸ’…

  • --all β€” refresh all local Maildirs and remote IMAP folders. the whole collection. go off, king πŸ‘‘
  • --all=local β€” refresh all local Maildirs only, bestie 🏠
  • --all=remote β€” refresh all remote IMAP folders only, bestie ☁️

πŸ“¬ CONTACT πŸ“¬

feedback welcome via plain-text mail to <mailto:meta@public-inbox.org> πŸ’–

the mail archives are hosted at <https://public-inbox.org/meta/> and <http://4uok3hntl7oi7b4uf4rtfwefqeexfzil2w6kgk2jn5z2f764irre7byd.onion/meta/> β€” yes, that onion address is real, type it exactly, iykyk πŸ§…βœ¨


copyright all contributors <mailto:meta@public-inbox.org> 🫢

license: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt> β€” read it, love it, respect it πŸ’œ


πŸ”Ž SEE ALSO πŸ”Ž

lei-index(1), lei-export-kw(1), lei-ls-mail-sync(1) 🌈


aaaaand that's the page!! πŸ’– this little writeup came from public-inbox.git, dated 1993-10-02 β€” iconic date, honestly. stay refreshed, bestie, and may all your filenames stay retrievable πŸŽ€πŸ’…πŸ”₯

πŸ“¦ where this page comes from