Clarify logging for empty UID emails
authorAndre Heinecke <aheinecke@intevation.de>
Mon, 9 Jul 2018 14:24:32 +0000 (16:24 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Mon, 9 Jul 2018 14:24:32 +0000 (16:24 +0200)
* src/mail.cpp (get_uid_for_sender): Check that email is
not empty.

src/mail.cpp

index cb0c9e3..6850c69 100644 (file)
@@ -1888,7 +1888,7 @@ get_uid_for_sender (const Key &k, const char *sender)
 
   for (const auto uid: k.userIDs())
     {
-      if (!uid.email())
+      if (!uid.email() || !*(uid.email()))
         {
           log_error ("%s:%s: skipping uid without email.",
                      SRCNAME, __func__);