Closed metanodotto closed 1 year ago
Hi @metanodotto
Please try the migrate command, which allows you to specify IMAP namespaces ('prefixes') when moving from one service to another.
hi @joeyates
The old imap is closed. All I have is a local backup done with your imap-backup.
the new one is not empty anymore because it has received mail in the past 4 days.
So I read in the help that migrate command (if I correctly understood) works with 2 active accounts (that I don't have) and that it stops with error if destination is not empty (my destination is not empty and I have to keep new mails).
could you help me?
Hi @metanodotto
First of all, both accounts don't need to be active - you only need the local backup (of the old account) plus an active destination account.
It is true that the migrate command requires that destination folders be empty.
As a workaround, you can change the names of your backups from the old server:
~/.imap-backup/me_email.com/
,Foo.imap
and Foo.mbox
,Foo-old.imap
and Foo-old.mbox
,This way you should end up with all your old emails in folders which don't otherwise exist on the new server, so you can manually move them wherever you like.
Let me know if that works!
@metanodotto Any progress on this?
I've backed up my email address "my@email.com" on the old imap server and I'd like to restore it to the new server.
As you wrote in readme I did this:
imap-backup restore my@email.com
It fails with this error:
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/net/imap.rb:1221:in
get_tagged_response': Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX.) (0.001 + 0.038 + 0.037 secs). (Net::IMAP::NoResponseError) from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/net/imap.rb:1275:inblock in send_command' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/monitor.rb:235:in
mon_synchronize' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/net/imap.rb:1257:insend_command' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/net/imap.rb:481:in
create' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/forwardable.rb:230:increate' from /opt/homebrew/Cellar/imap-backup/6.3.0/libexec/gems/imap-backup-6.3.0/lib/imap/backup/account/folder.rb:44:in
create' from /opt/homebrew/Cellar/imap-backup/6.3.0/libexec/gems/imap-backup-6.3.0/lib/imap/backup/uploader.rb:68:inrename_serialized_folder' from /opt/homebrew/Cellar/imap-backup/6.3.0/libexec/gems/imap-backup-6.3.0/lib/imap/backup/uploader.rb:13:in
run' from /opt/homebrew/Cellar/imap-backup/6.3.0/libexec/gems/imap-backup-6.3.0/lib/imap/backup/account/connection.rb:83:inblock in restore' from /opt/homebrew/Cellar/imap-backup/6.3.0/libexec/gems/imap-backup-6.3.0/lib/imap/backup/account/connection.rb:77:in
block in local_folders' from /opt/homebrew/Cellar/imap-backup/6.3.0/libexec/gems/imap-backup-6.3.0/lib/imap/backup/account/connection.rb:73:inglob' from /opt/homebrew/Cellar/imap-backup/6.3.0/libexec/gems/imap-backup-6.3.0/lib/imap/backup/account/connection.rb:73:in
glob' from /opt/homebrew/Cellar/imap-backup/6.3.0/libexec/gems/imap-backup-6.3.0/lib/imap/backup/account/connection.rb:73:inlocal_folders' from /opt/homebrew/Cellar/imap-backup/6.3.0/libexec/gems/imap-backup-6.3.0/lib/imap/backup/account/connection.rb:82:in
restore' from /opt/homebrew/Cellar/imap-backup/6.3.0/libexec/gems/imap-backup-6.3.0/lib/imap/backup/cli/restore.rb:20:inrun' from /opt/homebrew/Cellar/imap-backup/6.3.0/libexec/gems/imap-backup-6.3.0/lib/imap/backup/cli.rb:120:in
restore' from /opt/homebrew/Cellar/imap-backup/6.3.0/libexec/gems/thor-1.2.1/lib/thor/command.rb:27:inrun' from /opt/homebrew/Cellar/imap-backup/6.3.0/libexec/gems/thor-1.2.1/lib/thor/invocation.rb:127:in
invoke_command' from /opt/homebrew/Cellar/imap-backup/6.3.0/libexec/gems/thor-1.2.1/lib/thor.rb:392:indispatch' from /opt/homebrew/Cellar/imap-backup/6.3.0/libexec/gems/thor-1.2.1/lib/thor/base.rb:485:in
start' from /opt/homebrew/Cellar/imap-backup/6.3.0/libexec/gems/imap-backup-6.3.0/bin/imap-backup:14:inblock in <top (required)>' from /opt/homebrew/Cellar/imap-backup/6.3.0/libexec/gems/imap-backup-6.3.0/lib/imap/backup/logger.rb:29:in
sanitize_stderr' from /opt/homebrew/Cellar/imap-backup/6.3.0/libexec/gems/imap-backup-6.3.0/bin/imap-backup:13:in<top (required)>' from /opt/homebrew/Cellar/imap-backup/6.3.0/libexec/bin/imap-backup:23:in
load' from /opt/homebrew/Cellar/imap-backup/6.3.0/libexec/bin/imap-backup:23:in<main>'
any help would be apreciated