Exemplo n.º 1
0
    def handle(self, *args, **kwargs):
        logger.info("Processing a received message")
        # Make sure to read binary data.
        if six.PY3:
            self.input_file = self.input_file.detach()
        input_data = self.input_file.read()

        process(input_data)

        logger.info("Completed processing a received message")
Exemplo n.º 2
0
 def process_mail(self):
     process(force_bytes(self.message.as_string(), 'utf-8'))