mailflash.py
def has_bad_headers(self, default_from=None):
        """Checks for bad headers i.e. newlines in subject, sender or recipients.
        """

        sender = self.sender or default_from
        reply_to = self.reply_to or ''
        for val in [self.subject, sender, reply_to] + self.recipients:
            for c in '\r\n':
                if c in val:
                    return True
        return False
def has_bad_headers(self, default_from=None):
        sender = self.sender or default_from
        reply_to = self.reply_to or ''
        for val in [self.subject, sender, reply_to] + self.recipients:
            for c in '\r\n':
                if c in val:
                    return True
        return False
def has_bad_headers ( self , default_from = None ) : sender = self . sender or default_from reply_to = self . reply_to or '' for val in [ self . subject , sender , reply_to ] + self . recipients : for c in '\r\n' : if c in val : return True return False
Checks for bad headers i.e. newlines in subject, sender or recipients.
Checks for bad headers i . e . newlines in subject sender or recipients .