X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=maps%2Fbin%2Fmapsutil.pl;h=fba892bb7677f13dfb9fa14e90a1571ad5cb41db;hb=7ddf095f187ca60d9a70fb83b2bc3c2b6d91f088;hp=15488fd063d449aa57abaead69d951c96d36d3f1;hpb=88c9cb9f6ed80dd31981b083593b1746695083b9;p=clearscm.git diff --git a/maps/bin/mapsutil.pl b/maps/bin/mapsutil.pl index 15488fd..fba892b 100755 --- a/maps/bin/mapsutil.pl +++ b/maps/bin/mapsutil.pl @@ -374,10 +374,11 @@ $~ = "USERLIST"; } # ShowUsers sub ShowEmail() { + my @fields = qw(userid timestamp sender subject); my ($err, $msg) = $MAPS::db->find( 'email', "userid='$userid'", - qw(userid timestamp sender subject), + \@fields, ); my ($timestamp, $sender, $subject); @@ -391,9 +392,9 @@ $~ = "EMAIL"; while (my $rec = $MAPS::db->getnext) { last unless $rec->{userid}; - $timestamp = $rec->{timestamp}; - $sender = $rec->{sender}; - $subject = $rec->{subject}; + $timestamp = $rec->{timestamp} || ''; + $sender = $rec->{sender} || ''; + $subject = $rec->{subject} || ''; write(); } # while