Files @ 3853e37db97c
Branch filter:

Location: kallithea/rhodecode/lib/rcmail/exceptions.py

Marcin Kuzminski
fixes issue #531, when extracting user email, we check it against the database,
and return user default email. Also if no email is present check the username
for matching targets.


class InvalidMessage(RuntimeError):
    """
    Raised if message is missing vital headers, such
    as recipients or sender address.
    """


class BadHeaders(RuntimeError):
    """
    Raised if message contains newlines in headers.
    """