Rodolfo González González
2009-Oct-19 14:48 UTC
[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. -------------- next part -------------- A non-text attachment was scrubbed... Name: rgonzalez.vcf Type: text/x-vcard Size: 419 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20091019/c5f42b91/attachment-0002.vcf>
Timo Sirainen
2009-Oct-19 17:05 UTC
[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.
On Mon, 2009-10-19 at 09:48 -0500, Rodolfo Gonz?lez Gonz?lez wrote:> mydomain.com/someone/./Maildir/courierpop3dsizelist: Broken header: /1 9I 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20091019/6baea1a9/attachment-0002.bin>
Rodolfo González González
2009-Oct-19 17:32 UTC
[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.
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.plThanks 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.