joeyates / imap-backup

Backup and Migrate IMAP Email Accounts
MIT License
1.33k stars 74 forks source link

undefined method `uidvalidity' #175

Closed julpec closed 9 months ago

julpec commented 9 months ago

When migrating, I have this error reported :

append error: undefined method `uidvalidity'

I did what @maty974 did in #140 renaming the ruby library file and there is no error reported.

joeyates commented 9 months ago

Hi @julpec

Thanks for opening this issue.

Please run the following commands and send me the output:

ruby -v
command -v imap-backup
bundle show
bundle show net-imap
julpec commented 9 months ago
# ruby -v
ruby 2.7.4p191 (2021-07-07 revision a21a3b7d23) [x86_64-linux-gnu]
# bundle show
-bash: bundle : command not found
# command -v imap-backup
/usr/local/bin/imap-backup
# imap-backup -v
imap-backup 12.1.0
joeyates commented 9 months ago

Ah, sorry, you aren't using Bundler, so you won't have bundle.

Could you show me the output of this:

gem list

There should be an entry for net-imap, probably net-imap (0.3.7)

julpec commented 9 months ago

In my gem list I have :

net-imap (0.3.7)

Here is the complete output :

benchmark (default: 0.1.0)
bigdecimal (default: 2.0.0)
bundler (default: 2.1.4)
cgi (default: 0.1.0)
csv (default: 3.1.2)
date (default: 3.0.0)
dbm (default: 1.1.0)
delegate (default: 0.1.0)
did_you_mean (default: 1.4.0)
etc (default: 1.1.0)
fcntl (default: 1.0.0)
fiddle (default: 1.0.0)
fileutils (default: 1.4.1)
forwardable (default: 1.3.1)
gdbm (default: 2.1.0)
getoptlong (default: 0.1.0)
highline (2.1.0)
imap-backup (12.1.0, 11.1.0)
io-console (default: 0.5.6)
ipaddr (default: 1.2.2)
irb (default: 1.2.6)
json (default: 2.3.0)
logger (default: 1.4.2)
mail (2.7.1)
matrix (default: 0.2.0)
mini_mime (1.1.5)
minitest (5.13.0)
mutex_m (default: 0.1.0)
net-imap (0.3.7)
net-pop (default: 0.1.0)
net-protocol (0.2.1)
net-smtp (default: 0.1.0)
net-telnet (0.1.1)
observer (default: 0.1.0)
open3 (default: 0.1.0)
openssl (default: 2.1.2)
os (1.1.4)
ostruct (default: 0.2.0)
power_assert (1.1.7)
prime (default: 0.1.1)
pstore (default: 0.1.0)
psych (default: 3.1.0)
racc (default: 1.4.16)
rake (13.0.3)
rdoc (default: 6.2.1.1)
readline (default: 0.0.2)
readline-ext (default: 0.1.0)
reline (default: 0.1.5)
rexml (default: 3.2.3.1)
rss (default: 0.2.8)
rubygems-update (3.2.5)
sdbm (default: 1.0.0)
singleton (default: 0.1.0)
stringio (default: 0.1.0)
strscan (default: 1.0.3)
test-unit (3.3.9)
thor (1.2.2)
thunderbird (0.2.1)
timeout (default: 0.1.0)
tracer (default: 0.1.0)
uri (default: 0.10.0)
webrick (default: 1.6.1)
xmlrpc (0.3.0)
yaml (default: 0.1.0)
zlib (default: 1.1.0)
joeyates commented 9 months ago

Thanks @julpec

Please send me the full output you're getting when you run migrate.

joeyates commented 9 months ago

By the way, a quick fix for your problem would be to update Ruby — you're using version 2.7.4, which is quite old. Is that possible in your case?

joeyates commented 9 months ago

@julpec Any updates on this?

julpec commented 9 months ago

I was able to migrate without any errors. I can't test again as I no longer have access to the old mailboxes. Btw, thank you for this utility and for the support.