Пример #1
0
 def send(self, torcpts, ccrcpts):
     mime_headers = {
         'X-Trac-Build-ID': self.queueid,
         'X-Trac-Build-URL': self.build_link(),
         'To': NotifyEmail.get_smtp_address(self, ''.join(torcpts)),
     }
     NotifyEmail.send(self, torcpts, ccrcpts, mime_headers)
Пример #2
0
 def get_smtp_address(self, addr):
     """Overrides `get_smtp_address` in order to prevent CCing users
     other than the user whose password is being reset.
     """
     if addr == self._username:
         return NotifyEmail.get_smtp_address(self, addr)
     else:
         return None
Пример #3
0
 def get_smtp_address(self, addr):
     """Overrides `get_smtp_address` in order to prevent CCing users
     other than the user whose password is being reset.
     """
     if addr == self._username:
         return NotifyEmail.get_smtp_address(self, addr)
     else:
         return None
 def get_smtp_address(self, addr):
     """Overrides `get_smtp_address` in order to prevent CCing users
     other than those in the account_changes_notify_addresses option.
     """
     if addr in self._recipients:
         return NotifyEmail.get_smtp_address(self, addr)
     else:
         return
Пример #5
0
 def get_smtp_address(self, addr):
     """Overrides `get_smtp_address` in order to prevent CCing users
     other than those in the account_changes_notify_addresses option.
     """
     if addr in self._recipients:
         return NotifyEmail.get_smtp_address(self, addr)
     else:
         return