X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=contrib%2Fnmbug%2Fnmbug-status;h=9a334cccf39064aa4c26c358af7493b4f1a9be8e;hp=f37ee84bb301895288ba6c68237b713ffb384dd2;hb=6b47e2223d1d21cde34d2f53ede2209f932e7c09;hpb=3ba01608d7a14ecd98e371be5bacc062d67e5b7b diff --git a/contrib/nmbug/nmbug-status b/contrib/nmbug/nmbug-status index f37ee84b..9a334ccc 100755 --- a/contrib/nmbug/nmbug-status +++ b/contrib/nmbug/nmbug-status @@ -90,7 +90,9 @@ def print_view(title, query, comment): val = str.join(' ', val.split(None)[1:4]) val = str(datetime.datetime.strptime(val, '%d %b %Y').date()) elif header == 'from': - val = rfc822.parseaddr(val)[0] + (val, addr) = rfc822.parseaddr(val) + if val == '': + val = addr.split('@')[0] if last[header] == val: out[header] = ''