Skip to content

Commit

Permalink
Fix #76
Browse files Browse the repository at this point in the history
  • Loading branch information
tonioo committed May 18, 2017
1 parent 8eaa12a commit ab41760
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modoboa_webmail/lib/imapemail.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,10 @@ def fetch_headers(self, raw_addresses=False):
if not hdrvalue:
continue
if hdr[1]:
if contacts_plugin_installed and label in headers_with_address:
if not raw_addresses:
hdrvalue = self._insert_contact_links(hdrvalue)
if label in headers_with_address:
if contacts_plugin_installed:
if not raw_addresses:
hdrvalue = self._insert_contact_links(hdrvalue)
hdrvalue = ", ".join(hdrvalue)
self.headers += [{"name": label, "value": hdrvalue}]
label = re.sub("-", "_", label)
Expand Down

0 comments on commit ab41760

Please sign in to comment.