rgladwell / imap-upload

Python script for uploading a local mbox file to IMAP4 server.
Other
130 stars 30 forks source link

Mailbox name should probably be prefixed with: INBOX #55

Open marckagan opened 2 years ago

marckagan commented 2 years ago

I have tried a variety of different options to upload my Google Takeout mbox to my IMAP account. No matter what I do I get:

to [Opened,Category Updates] NG (b'Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX

Here is the command line I am using. Any suggestions would be greatly appreciated... python3 imap_upload.py --ssl --user=test@test.com --password='test' --host=imap.dreamhost.com --port=993 --error='All mail Including Spam and Trash_errors.mbox' --box='INBOX' --google-takeout --google-takeout-box-as-base-folder 'All mail Including Spam and Trash-002.mbox'

rgladwell commented 2 years ago

CC @adriangibanelbtactic

adriangibanelbtactic commented 2 years ago

I have tried a variety of different options to upload my Google Takeout mbox to my IMAP account. No matter what I do I get:

to [Opened,Category Updates] NG (b'Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX

Here is the command line I am using. Any suggestions would be greatly appreciated... python3 imap_upload.py --ssl --user=test@test.com --password='test' --host=imap.dreamhost.com --port=993 --error='All mail Including Spam and Trash_errors.mbox' --box='INBOX' --google-takeout --google-takeout-box-as-base-folder 'All mail Including Spam and Trash-002.mbox'

So far the command seems ok to me.

Maybe you should try to determine what is the folder separator for your imap server and then use the --folder-separator= parametre.

Otherwise use an imap client to explore your imap server and check if INBOX is actually your root folder in your imap folder. It is imap-upload (and not the imap server) which it's saying that the mailbox name should probably be prefixed with INBOX. It might be something else than INBOX after all.

miroslavpetrov commented 2 years ago

Same issue here. @marckagan Did you find a solution? I also try to migrate my emails from google workspace.

rgladwell commented 2 years ago

@miroslavpetrov did you try the advice suggested by @adriangibanelbtactic above?