diff --git a/imp/lib/Basic/Listinfo.php b/imp/lib/Basic/Listinfo.php index ff787e22796..a2393c6bfa0 100644 --- a/imp/lib/Basic/Listinfo.php +++ b/imp/lib/Basic/Listinfo.php @@ -104,7 +104,17 @@ protected function _parseListHeaders($id, $data) $parser = $injector->getInstance('Horde_ListHeaders'); $text_filter = $injector->getInstance('Horde_Core_Factory_TextFilter'); - foreach ($parser->parse($id, $data) as $val) { + $parsed = $parser->parse($id, $data); + + if ($parsed instanceof Horde_ListHeaders_Id) { + $out = $parsed->id; + if ($parsed->label) { + $out .= ' -- ' . $parsed->label . ''; + } + return $out; + } + + foreach ($parsed as $val) { /* RFC 2369 [2] states that we should only show the *FIRST* URL * that appears in a header that we can adequately handle. */ if (stripos($val->url, 'mailto:') === 0) {