]> git.g-eek.se Git - interimap.git/commitdiff
Net::IMAP::InterIMAP: don't print undefined cache values in debug messages.
authorGuilhem Moulin <guilhem@fripost.org>
Wed, 9 Mar 2016 20:14:40 +0000 (21:14 +0100)
committerGuilhem Moulin <guilhem@fripost.org>
Wed, 9 Mar 2016 20:14:40 +0000 (21:14 +0100)
lib/Net/IMAP/InterIMAP.pm

index bad49da3e91b52276c5e282db1731aa4cd5dbf43..73f55e891bd2c43a328d9da4207303d11cee628e 100644 (file)
@@ -1027,7 +1027,7 @@ sub set_cache($$%) {
     }
 
     $self->logger("Update last clean state for $mailbox: ".
-                 '('.join(' ', map {"$_ $cache->{$_}"} keys %$cache).')')
+                 '('.join(' ', map {"$_ $cache->{$_}"} grep {defined $cache->{$_}} keys %$cache).')')
         if $self->{debug};
 }