Open poldy79 opened 2 years ago
It seems that --google-takeout-box-as-base-folder
fixes my problem.
But I think that imap.namespace() could give the hint automatically.
Hetzner returns ('OK', [b'(("INBOX." ".")) NIL NIL'])
, where (("INBOX." ".")) describes the private Namespace.
Mailcow returns ('OK', [b'(("" "/")) (("Shared/" "/")) NIL'])
where (("" "/")) describes the private Namespace
With this information the "Base-Folder ("INBOX" or "") could be deducted, as well as the folder_separator.
Sorry for the delay in responding to this. I'm on holiday this week, will try and get back to this next week.
With this information the "Base-Folder ("INBOX" or "") could be deducted, as well as the folder_separator.
This would be a great feature. Maybe it could even be a more generic to automatically default the --folder-separator
argument.
On a mailcow mail setup, folders are located parallel to INBOX:
on a Hetzner Mailserver (Level 9 Webhosting) all folders are below INBOX
On the latter, creation of folders and append fails (using --google-takeout) with
I am not sure if this is already covered by imap-upload.py and I have overseen something or if this is not yet supported. If I prefix the path for imap.create_folder and imap.append with "INBOX" everything works fine.
I could provide a solution, might be a switch --everything-below-inbox ? What do you think?