(self, **kwargs)
Initialize a SpamAssassin object.
Initialize a SpamAssassin object.
Initialize a SpamAssassin object .
def __init__(self, **kwargs):
        """Initialize a SpamAssassin object."""
        for k in self._required_kwargs:
            if k not in kwargs:
                raise TypeError("Missed required keyword argument: {}".format(
                                k))

        for k in self._kwargs:
            setattr(self, k, None)

        for k in kwargs:
            if k not in self._kwargs:
                raise TypeError("Unknown keyword argument: {}".format(k))
            setattr(self, k, kwargs[k])

        # pylint: disable=access-member-before-definition
        if self.logger is None:
            self.logger = logging.getLogger(__name__)
            self.logger.addHandler(logging.StreamHandler())

        # what we use to set flags on the original spam in imapbox
        self.spamflagscmd = "+FLAGS.SILENT"
def __init__ ( self , * * kwargs ) : for k in self . _required_kwargs : if k not in kwargs : raise TypeError ( "Missed required keyword argument: {}" . format ( k ) ) for k in self . _kwargs : setattr ( self , k , None ) for k in kwargs : if k not in self . _kwargs : raise TypeError ( "Unknown keyword argument: {}" . format ( k ) ) setattr ( self , k , kwargs [ k ] ) # pylint: disable=access-member-before-definition if self . logger is None : self . logger = logging . getLogger ( __name__ ) self . logger . addHandler ( logging . StreamHandler ( ) ) # what we use to set flags on the original spam in imapbox self . spamflagscmd = "+FLAGS.SILENT"