def handle(self, *args, **kwargs):
        if six.PY3:
            self.input_file = self.input_file.detach()
        input_data = self.input_file.read()
        sent_to = self._get_to_address()

        dispatch.process(input_data, sent_to)
 def run_dispatch(self, sent_to_address=None):
     """
     Starts the dispatch process.
     """
     dispatch.process(
         force_bytes(self.message.as_string(), 'utf-8'),
         sent_to_address
     )
 def run_dispatch(self, package=None, keyword=None):
     """
     Starts the dispatch process.
     """
     dispatch.process(
         self.message,
         package=package or self.package_name,
         keyword=keyword,
     )