[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [imapsync] Windows imapsync.exe 1.434 uninitialized variable error


From Gilles LAMIRAL <gilles dot lamiral at laposte dot net>
Subject Re: [imapsync] Windows imapsync.exe 1.434 uninitialized variable error
Date Tue, 24 May 2011 01:04:19 +0200

Hello David,

> I’m getting an error running imapsync.exe 1.434 on Windows XP against a
> large mailbox. The last message displayed in debug mode is a google
> calendar reminder. However, the error doesn’t occur when I move that
> message to a separate folder and use the –folder option. I have run
> imapsync.exe successfully against a different mailbox.
> The error is:
>
> use of uninitialized value $key in hash element at script/imapsync 4057
> modification of non-createable array value attempted, subscript -1 at
> script/imap sync line 4057

Good, you found an imapsync bug, it shouldn't break on any message. 
I suspect this message begins with blank characters,
it may not contain a good rfc 2822 header like:

Key1: Value1
Key2: Value2
Key3: Value3
   Value3 continues
   Value3 continues
Keys4: Value4
...

May be there is just a blank before "Key1: Value1". In that case
imapsync breaks like you've described it, I've just tested that.
The header may be like:

 Key1: Value1
Key2: Value2

Now fixed for next release 1.433 or superior, I added a regression
test about this issue. This first wrong line will be ignored.

The copy or move of this "bad" message might have fixed the issue
because the copy tool fix this first blank not wanted by rfc.

> Host1: Gmail
> Host2: Sun Java Messaging Server 6.2-8.04
> 
> I don’t see SunOne Messaging Server 6.2 in the supported IMAP servers list.

So do I put it on success or failure list?

Thanks for your feedback.

-- 
Au revoir,                             09 51 84 42 42
Gilles Lamiral. France, Baulon (35580) 06 20 79 76 06