Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/a/f/afew-HEAD/afew/filters/SentMailsFilter.py   afew(Download)
    def handle_message(self, message):
        if self.sent_tag:
            self.add_tags(message, self.sent_tag)
        if self.to_transforms:
            for header in ('To', 'Cc', 'Bcc'):
                email = self.__get_bare_email(message.get_header(header))
                for tag in self.__pick_tags(email):
                    self.add_tags(message, tag)

src/a/f/afew-HEAD/afew/filters/KillThreadsFilter.py   afew(Download)
    def handle_message(self, message):
        query = self.database.get_messages('thread:"%s" AND tag:killed' % message.get_thread_id())
 
        if len(list(query)):
            self.add_tags(message, 'killed')

src/a/f/afew-HEAD/afew/filters/ClassifyingFilter.py   afew(Download)
 
        if category != self.classifier.reference_category:
            self.add_tags(message, category)
 

src/a/f/afew-HEAD/afew/filters/HeaderMatchingFilter.py   afew(Download)
                        tag.format(**match.groupdict()).lower())
                    self.remove_tags(message, *map(sub, self._tags_to_remove))
                    self.add_tags(message, *map(sub, self._tags_to_add))
 

src/a/f/afew-HEAD/afew/filters/FolderNameFilter.py   afew(Download)
            transformed_folders = self.__transform_folders(clean_folders)
 
            self.add_tags(message, *transformed_folders)