codes:

        Plain = MailMsg.bodies( 'text/plain' )
        for ct, ctt in Plain:
            logging.info( "Plain ct:%s" % repr( ct ))
            logging.info( "Plain ctt:%s" % repr( ctt ))
            logging.info( u"Plain dec:%s" % repr( ctt.decode() ))

========
infos:

#
09-26 06:20AM 30.622

Received a message from: =?GB2312?B?wM/M0g==?=
<[email protected]>subject:  RCI Cyberjournal

#
I 09-26 06:20AM 30.622

Plain ct:'text/plain'

#
I 09-26 06:20AM 30.622

Plain ctt:<EncodedPayload payload=#6861831161926210656 charset=gb2312
encoding=8bit>

#
E 09-26 06:20AM 30.623

Unknown decoding 8bit.
Traceback (most recent call last):
  File "/base/python_runtime/python_lib/versions/1/google/appengine/
ext/webapp/__init__.py", line 513, in __call__
    handler.post(*groups)
  File "/base/python_runtime/python_lib/versions/1/google/appengine/
ext/webapp/mail_handlers.py", line 58, in post
    self.receive(mail.InboundEmailMessage(self.request.body))
  File "/base/data/home/apps/1wqshen/bbs1.345075669104539279/
IncomeEmail.py", line 19, in receive
    logging.info( u"Plain dec:%s" % repr( ctt.decode() ))
  File "/base/python_runtime/python_lib/versions/1/google/appengine/
api/mail.py", line 449, in decode
    raise UnknownEncodingError('Unknown decoding %s.' % self.encoding)
UnknownEncodingError: Unknown decoding 8bit.

#
I 09-26 06:20AM 30.647

This request caused a new process to be started for your application,
and thus caused your application code to be loaded for the first time.
This request may thus take longer and use more CPU than a typical
request for your application.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to