Subject: | Bug in separator function |
Distribution: Mail::IMAPClient version 2.2.9
Perl: 5.8.0
OS: Linux 2.4.20 (SuSE 8.2)
For imap servers where there is no namespace support (or at least the DBMail and Binc Imap servers) the 'separator' funciton seems to fail.
I attach a simple test case program.
The relevant output from the testcase is as follows:
$ ./imaptest
...
Read: 2 OK CAPABILITY completed
2 NO NAMESPACE not supported by localhost
2 NO NAMESPACE not supported by localhost at ./imaptest line 24
Sending: 3 LIST "" ""
Sent 14 bytes
Read: * LIST (\NoSelect) "/" ""
Read: 3 OK LIST completed
Use of uninitialized value in concatenation (.) or string at ./imaptest line 26.
Separator returned is ''
The fix I did for imapsync (which uses your library) was based on the parsing of the LIST command that you do in the 'folder' function.
However, I don't understand perl enough to offer a fix to your current separator method directly.
I hope all this helped.
Cheers,
Rasjid.
Message body not shown because it is not plain text.