1.1 --- a/imiptools/content.py Wed Dec 10 18:45:47 2014 +0100
1.2 +++ b/imiptools/content.py Wed Dec 10 21:41:56 2014 +0100
1.3 @@ -127,7 +127,7 @@
1.4
1.5 def get_uri(value):
1.6 value = value.lower()
1.7 - return value.startswith("mailto:") and value or "mailto:%s" % value
1.8 + return ":" in value and value or "mailto:%s" % value
1.9
1.10 def uri_dict(d):
1.11 return dict([(get_uri(key), value) for key, value in d.items()])
1.12 @@ -455,7 +455,7 @@
1.13 identities.append(value)
1.14 sent_by = attr.get("SENT-BY")
1.15 if sent_by:
1.16 - identities.append(sent_by)
1.17 + identities.append(get_uri(sent_by))
1.18
1.19 return self.filter_by_senders(identities)
1.20