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)
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 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
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