Subject: | Mail::Transport::IMAP4::getFlags passes undef to flagsToLabels |
As reported in RT#31195, Mail::IMAPClient::flags() returns explicit
undef even when called in list context. Thus, with no flags, getFlags()
calls $self->flagsToLabels( SET => undef ).
getFlags() should explicitly guard against that return value from flags().