zephyr_mirror: Remove an unnecessary username parsing.
(imported from commit 56c27a6cd923f13e23b70914f85dd73661e27651)
This commit is contained in:
parent
e0a71e7d6c
commit
f077cb81f0
|
@ -228,11 +228,10 @@ def process_notice(notice, log):
|
||||||
return
|
return
|
||||||
|
|
||||||
sender = notice.sender.lower().replace("athena.mit.edu", "mit.edu")
|
sender = notice.sender.lower().replace("athena.mit.edu", "mit.edu")
|
||||||
recipient = notice.recipient.lower().replace("athena.mit.edu", "mit.edu")
|
|
||||||
zephyr_class = notice.cls.lower()
|
zephyr_class = notice.cls.lower()
|
||||||
instance = notice.instance.lower()
|
instance = notice.instance.lower()
|
||||||
|
|
||||||
if (zephyr_class == "message" and recipient != ""):
|
if (zephyr_class == "message" and notice.recipient != ""):
|
||||||
is_personal = True
|
is_personal = True
|
||||||
if body.startswith("CC:"):
|
if body.startswith("CC:"):
|
||||||
is_huddle = True
|
is_huddle = True
|
||||||
|
@ -263,7 +262,7 @@ def process_notice(notice, log):
|
||||||
zeph = { 'type' : 'personal',
|
zeph = { 'type' : 'personal',
|
||||||
'time' : str(notice.time),
|
'time' : str(notice.time),
|
||||||
'sender' : sender,
|
'sender' : sender,
|
||||||
'recipient' : to_humbug_username(recipient),
|
'recipient' : to_humbug_username(notice.recipient),
|
||||||
'zsig' : zsig, # logged here but not used by app
|
'zsig' : zsig, # logged here but not used by app
|
||||||
'content' : body }
|
'content' : body }
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue