Subject: | internaldate() returns corrupt data if server does not include internaldate in reply |
The code:
my $datestr = $IMAP->internaldate($i)
or die "Could not internaldate: $@\n";
What the IMAPClient sends:
192 UID FETCH 23 INTERNALDATE
What the IMAPClient gets from the IMAP server:
* 23 FETCH (UID 23)
192 OK UID FETCH completed
Yeah, I suppose the server is in error there; I guess it is supposed to
include the internaldate. But it doesn't. The internaldate() method
returns garbage in this case. Please make it so that internaldate()
throws an error or returns undef. Either would be better than returning
'* 23 FETCH...'.
Thanks.