http://tools.ietf.org/html/rfc2047
On Aug 5, 2011, at 10:51 AM, Rishi Arora wrote:
> I have an inbound mail handler in my python GAE app, that logs the sender of
> the incoming email like this:
>
> class MyMailHandler(InboundMailHandler):
> def receive(self, message):
> . . .
> logging.info('email from [' + message.sender + '] ' +
> str(type(message.sender)))
>
>
> And for some of my received emails, I see something like this in the logs:
>
> email from ["=?utf-8?B?SmVubnkgU3RlZWxl?=" <[email protected]>] <type
> 'str'>
>
> Whats with the utf-8 stuff within the quotes? (note that I have changed the
> actual email address). Python reports "message.sender" as a str type, not
> unicode. Why am I not getting the name of the actual sender. In most emails
> I would see the following in the logs:
>
> email from ["Someone Somewhere" <[email protected]>] <type 'str'>
>
> Any clues?
>
>
> --
> 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.
--
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.