[Dovecot] Can't use string ("0") as a HASH ref while "strict refs" in use at /usr/local/sbin/courier-dovecot-migrate.pl line 300.
Hello,
I need to migrate from courier-imap to dovecot. I'm trying to use courier-dovecot-migrate.pl to migrate the users' maildirs but I'm getting these messages:
# courier-dovecot-migrate.pl --to-dovecot --recursive mydomain.com Testing conversion to Dovecot format Finding maildirs under mydomain.com mydomain.com/contact/./Maildir: No imap/pop3 uidlist files mydomain.com/someone/./Maildir/courierpop3dsizelist: Broken header: /1 9
Can't use string ("0") as a HASH ref while "strict refs" in use at /usr/local/sbin/courier-dovecot-migrate.pl line 300.
The courierpop3dsizelist files have contents like this one:
/1 9 1181869523.M278844P24357V000000000000080CI006E803B_0.email,S=1216:2, 1241 8
and it seems that the script is failing with all the maildirs with courierpop3dsizelist. I use courier-imap 4.6.0, access using pop3 causes no problems.
Any hint on what's wrong is appreciated, thanks.
Salut, Rodolfo.
On Mon, 2009-10-19 at 09:48 -0500, Rodolfo González González wrote:
mydomain.com/someone/./Maildir/courierpop3dsizelist: Broken header: /1 9
I guess this is the "1" version that I hadn't seen before.
Can't use string ("0") as a HASH ref while "strict refs" in use at /usr/local/sbin/courier-dovecot-migrate.pl line 300.
And error handling didn't work too well either.
Fixed both in newer version of http://dovecot.org/tools/courier-dovecot-migrate.pl
Timo Sirainen escribió:
On Mon, 2009-10-19 at 09:48 -0500, Rodolfo González González wrote:
mydomain.com/someone/./Maildir/courierpop3dsizelist: Broken header: /1 9
I guess this is the "1" version that I hadn't seen before.
Can't use string ("0") as a HASH ref while "strict refs" in use at /usr/local/sbin/courier-dovecot-migrate.pl line 300.
And error handling didn't work too well either.
Fixed both in newer version of http://dovecot.org/tools/courier-dovecot-migrate.pl
Thanks for the fast answer. I tried it and got:
Bareword "filename_map" not allowed while "strict subs" in use at /usr/local/sbin/courier-dovecot-migrate.pl line 185. Execution of /usr/local/sbin/courier-dovecot-migrate.pl aborted due to compilation errors.
Using: This is perl, v5.10.0 built for i686-linux
Salut.
On Mon, 2009-10-19 at 12:32 -0500, Rodolfo González González wrote:
Fixed both in newer version of http://dovecot.org/tools/courier-dovecot-migrate.pl
Thanks for the fast answer. I tried it and got:
Bareword "filename_map" not allowed while "strict subs" in use at /usr/local/sbin/courier-dovecot-migrate.pl line 185.
Sorry, I was (and am) too lazy to actually test it :) How about now?
participants (2)
-
Rodolfo González González
-
Timo Sirainen