summaryrefslogtreecommitdiffstats
path: root/wallace/module_invitationpolicy.py
diff options
context:
space:
mode:
authorLiutauras Adomaitis <adomaitis@kolabsys.com>2018-06-04 16:44:03 +0300
committerLiutauras Adomaitis <adomaitis@kolabsys.com>2018-06-15 14:06:12 +0300
commit5ec8788dd436b342f160ad3dfcca634e68e65112 (patch)
tree5922210d7c6dda9675802dce616e7a48bd0bac25 /wallace/module_invitationpolicy.py
parent46f61ab9984e23332477d39edbf303291e04d2ca (diff)
downloadpykolab-5ec8788dd436b342f160ad3dfcca634e68e65112.tar.gz
nother attempt to add more logging and fix wallace messages not being delivered and staying in spool directory
Summary: Adding more logs that should show why _sendmail function does not start a "while" delivery loop and unliking file does not happen. Also some code polishing. Test Plan: none Reviewers: machniak, vanmeeuwen Reviewed By: machniak Subscribers: petersen Differential Revision: https://git.kolab.org/D599
Diffstat (limited to 'wallace/module_invitationpolicy.py')
-rw-r--r--wallace/module_invitationpolicy.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/wallace/module_invitationpolicy.py b/wallace/module_invitationpolicy.py
index 602326d..a2a37fe 100644
--- a/wallace/module_invitationpolicy.py
+++ b/wallace/module_invitationpolicy.py
@@ -1283,8 +1283,8 @@ def send_update_notification(object, receiving_user, old=None, reply=True, sende
msg['From'] = Header(utils.str2unicode('%s' % orgname) if orgname else '')
msg['From'].append("<%s>" % orgemail)
- success = modules._sendmail(orgemail, receiving_user['mail'], msg.as_string())
- log.debug(_("Sent update notification to %r: %r") % (receiving_user['mail'], success), level=8)
+ result = modules._sendmail(orgemail, receiving_user['mail'], msg.as_string())
+ log.debug(_("Sent update notification to %r: %r") % (receiving_user['mail'], result), level=8)
def send_cancel_notification(object, receiving_user, deleted=False, sender=None, comment=None):
"""
@@ -1344,8 +1344,8 @@ def send_cancel_notification(object, receiving_user, deleted=False, sender=None,
msg['From'] = Header(utils.str2unicode('%s' % orgname) if orgname else '')
msg['From'].append("<%s>" % orgemail)
- success = modules._sendmail(orgemail, receiving_user['mail'], msg.as_string())
- log.debug(_("Sent cancel notification to %r: %r") % (receiving_user['mail'], success), level=8)
+ result = modules._sendmail(orgemail, receiving_user['mail'], msg.as_string())
+ log.debug(_("Sent cancel notification to %r: %r") % (receiving_user['mail'], result), level=8)
def is_auto_reply(user, sender_email, type):
accept_available = False