Closed klando closed 5 months ago
Hi @klando
You didn't include the command :) But, from the backtrace it looks like you're doing a restore.
The server you're restoring to does not use /
as its "delimiter" - the separator between folder and subfolder names - it probably uses .
Unfortunately, imap-backup does not yet have an option for specifying the delimiter when running restore.
As a hacky workaround, you could use the restore
command, which accepts a --destination-delimiter
parameter - YMMV.
See this HOWTO.
To see which delimiter your provider uses, run the namespaces
command:
imap-backup remote namespaces me@example.com -c config/my-config.json
Name Prefix Delimiter
personal "" "."
other (Not defined)
shared (Not defined)
Here .
is the delimiter.
Hey @joeyates
Tks for your software, amazing.
About the restore
, I didn't see a --destination-delimiter
though...
As a workaround I have renamed and reorganized files here.
My use case is that I had to migrate accounts without any option to have both imap servers up at the same time, no inter-connection available.
I didn't explore all options of imap-backup but I came to the conclusion that it's not the design and it's better to mirror accounts to change delimiters and all (well let it do automatically).. So I'm arranging for a 2 steps migration via a third IMAP instead of having backup files...
btw I basically ended up doing exactly what's written in the howto...
Reopening as the --delimiter
flag needs to be added to restore
Apparently I hit a bug related to
WARN -- : Folder 'Archives/2010' does not exist on server
:gem/ruby/3.1.0/gems/net-imap-0.4.9.1/lib/net/imap.rb:2708:
inget_tagged_response': Invalid mailbox name: Name must not have '/' characters (0.001 + 0.060 + 0.059 secs). (Net::IMAP::NoResponseError)
On linux, with
gem install imap-backup --no-document --user-install
With a large folder tree (thought no more than 3 levels I think).
full trace: