Subject: | "Use of uninitialized value" warning breaks use of IMAPClient->thread() |
When I call IMAPClient->thread(), my program (using strict and warnings)
exits due to the following warning:
Use of uninitialized value $thread_parser in numeric eq (==) at
/usr/share/perl5/Mail/IMAPClient.pm line 2700.
The line in question is:
return if $thread_parser == 0;
Changing it to this fixes the bug:
return if defined($thread_parser) and $thread_parser == 0;