email_keyword_matcher/__init__.py
def _get_keyword_response(
            self,
            message: email.message.EmailMessage
    ) -> str:
        """
        Return a match if there is one.

        Note: MODIFIES message fetched to be seen.
        """
        payload = self._get_payload(message)
        pattern = "|".join(self.keywords)
        match = re.match(pattern, payload, flags=re.I)
        if match:
            return match.group()
        else:
            return ''

        Return a match if there is one.

        Note: MODIFIES message fetched to be seen.
        
Return a match if there is one.
Note: MODIFIES message fetched to be seen.
Return a match if there is one . Note : MODIFIES message fetched to be seen .
def _get_keyword_response(
            self,
            message: email.message.EmailMessage
    ) -> str:
        payload = self._get_payload(message)
        pattern = "|".join(self.keywords)
        match = re.match(pattern, payload, flags=re.I)
        if match:
            return match.group()
        else:
            return ''
def _get_keyword_response ( self , message : email . message . EmailMessage ) -> str : payload = self . _get_payload ( message ) pattern = "|" . join ( self . keywords ) match = re . match ( pattern , payload , flags = re . I ) if match : return match . group ( ) else : return ''
Return a match if there is one.
Return a match if there is one .
"""
        Return a match if there is one.

        Note: MODIFIES message fetched to be seen.
        """
self
message
email.message.EmailMessage