Disable hacky patch for issue #4 because breaks code
This commit is contained in:
parent
29c752e572
commit
77577a67da
|
@ -161,19 +161,21 @@ class Orchestra(object):
|
||||||
|
|
||||||
# PATCH to include Pangea addresses not shown by orchestra
|
# PATCH to include Pangea addresses not shown by orchestra
|
||||||
# described on issue #4
|
# described on issue #4
|
||||||
raw_mailboxes = self.retrieve_mailbox_list()
|
# TODO(@slamora) disabled hacky patch because breaks another funtionalities
|
||||||
for mailbox in raw_mailboxes:
|
# XXX Fix it on orchestra instead of here???
|
||||||
if mailbox['addresses'] == []:
|
# raw_mailboxes = self.retrieve_mailbox_list()
|
||||||
address_data = {
|
# for mailbox in raw_mailboxes:
|
||||||
'names': [mailbox['name']],
|
# if mailbox['addresses'] == []:
|
||||||
'forward': '',
|
# address_data = {
|
||||||
'domain': {
|
# 'names': [mailbox['name']],
|
||||||
'name': 'pangea.org.',
|
# 'forward': '',
|
||||||
},
|
# 'domain': {
|
||||||
'mailboxes': [mailbox],
|
# 'name': 'pangea.org.',
|
||||||
}
|
# },
|
||||||
pangea_address = MailService.new_from_json(address_data)
|
# 'mailboxes': [mailbox],
|
||||||
addresses.append(pangea_address)
|
# }
|
||||||
|
# pangea_address = MailService.new_from_json(address_data)
|
||||||
|
# addresses.append(pangea_address)
|
||||||
|
|
||||||
return addresses
|
return addresses
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue