about summary refs log tree commit homepage
path: root/lib/PublicInbox/Address.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/Address.pm')
-rw-r--r--lib/PublicInbox/Address.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/Address.pm b/lib/PublicInbox/Address.pm
index 8b3daf50..772adedb 100644
--- a/lib/PublicInbox/Address.pm
+++ b/lib/PublicInbox/Address.pm
@@ -18,7 +18,8 @@ sub from_name {
                 $name =~ s/\@.*//;
         }
         $name =~ tr/\r\n\t/ /;
-        $name =~ s/\A\s*//;
+        $name =~ s/\A['"\s]*//;
+        $name =~ s/['"\s]*\z//;
         $name;
 }