if from = "" <user@domain.com>
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 14 Aug 2000 17:31:58 +0000 (17:31 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 14 Aug 2000 17:31:58 +0000 (17:31 +0000)
it now displays the address.  Previously it was blank.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@710 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_general.php

index 6e1b80a4376e30eea080be1ac3c9c15e5fe8983a..c390e13a7b3b1905e8e5463133f26de551e1cca4 100755 (executable)
     ******************************************************************************/
    function sqimap_find_displayable_name ($string) {
       $string = " ".trim($string);
+      $orig_string = $string;
       if (strpos($string, "<") && strpos($string, ">")) {
          if (strpos($string, "<") == 1) {
             $string = sqimap_find_email($string);
             $string = substr($string, 0, strpos($string, "<"));
             $string = ereg_replace ("\"", "", $string);   
          }   
+
+         if (trim($string) == "") {
+            $string = sqimap_find_email($orig_string);
+         }
       }
       return $string; 
    }