Sync multiple folders into Inbox
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 4.2k
- Forks
- 531
- PR merge metrics
- No merged PRs in 30d
Description
Hello and thank you for the wonderful tool!
I am helping to migrate few big mailboxes from Google Workspace to mxroute email provider and trying to figure out how to confidently sync source emails marked as "Important, Starred, All Mail" labels in Gmail over into Inbox mainly so that users are not confused where to find there emails. What would you recommend?
So far I tried:
With option below I found that some emails got missing on destination, perhap f1f2 option is not designed for "many to one" syncs or should not be used with --delete2 ?
imapsync --host1 "$h1" --user1 "$u1" --password1 "$p1" --gmail1 \
--host2 "$h2" --user2 "$u2" --password2 "$p2" \
--f1f2 "[Gmail]/All Mail"="Inbox" \
--f1f2 "[Gmail]/Important"="Inbox" \
--f1f2 "[Gmail]/Starred"="Inbox" \
--addheader \
--delete2
This option for some reason totally ignores my request to map "Starred" to "Inbox", it still maps [[Gmail]/Starred] -> [Starred] no matter what regex/syntax I try (limited by my regex skill of course and understanding of https://imapsync.lamiral.info/FAQ.d/FAQ.Folders_Mapping.txt) !
--host1 "$h1" --user1 "$u1" --password1 "$p1" --gmail1 \
--host2 "$h2" --user2 "$u2" --password2 "$p2" \
--pidfile "" \
--folderfirst "[Gmail]/Notes" \
--folderfirst "[Gmail]/miscellaneous" \
--regextrans2 "s,Starred,Inbox," \
--regextrans2 "s,All Mail,Inbox," \
--regextrans2 "s,Important,Inbox," \
--f1f2 "[Gmail]Bin"="Trash" \
--addheader \
--delete2 \
--dry --justfolders
Perhaps you can recommend the option that will work?
I use imapsync 2.229 on debian as that's the one on github and I am not too sure if there is a need/way to install latest one.
Thank you in advance!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the two imapsync command examples and the linked FAQ.Folders_Mapping.txt, focusing on --f1f2, --regextrans2, and --delete2 behavior for Gmail folders. Reproduce the reported Starred-to-Inbox mapping and determine whether multiple source folders can sync into Inbox without missing messages; document the confirmed command or failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100