Some mail server will send a email with blank bcc parameter, to avoid the
error, you can patch gae sdk function.
--
不学无术



On Fri, Oct 29, 2010 at 15:47, Kevin Burke <[email protected]> wrote:

> Hi Sodso, The error is occuring on an incoming message; I am parsing
> the incoming messages and storing them in the database. Every line in
> the stack trace is from a GAE file, not my own file, which is named
> gae.py.
>
> On Oct 28, 9:18 pm, sodso <[email protected]> wrote:
> > i think you might be sending the bcc parameter with a blanks value
> > for eg - send_mail(...,bcc=Blanks_value,...)
> >
> > hence the above error
> >
> > cheers !
> >
> > On Oct 28, 4:07 am, Kevin Burke <[email protected]> wrote:
> >
> >
> >
> >
> >
> >
> >
> > > I'm writing an app that processes incoming email, so to test it out
> > > I've been forwarding my incoming email to it. I got the following
> > > error message the other day:
> >
> > > Empty email address for bcc.
> > > 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/python_runtime/python_lib/versions/1/google/appengine/
> > > api/mail.py", line 557, in __init__
> > >     self.update_from_mime_message(mime_message)
> > >   File "/base/python_runtime/python_lib/versions/1/google/appengine/
> > > api/mail.py", line 1093, in update_from_mime_message
> > >     super(InboundEmailMessage,
> > > self).update_from_mime_message(mime_message)
> > >   File "/base/python_runtime/python_lib/versions/1/google/appengine/
> > > api/mail.py", line 1014, in update_from_mime_message
> > >     self.bcc = bcc[0]
> > >   File "/base/python_runtime/python_lib/versions/1/google/appengine/
> > > api/mail.py", line 979, in __setattr__
> > >     check_email_valid(value, attr)
> > >   File "/base/python_runtime/python_lib/versions/1/google/appengine/
> > > api/mail.py", line 167, in check_email_valid
> > >     raise InvalidEmailError(reason)
> > > InvalidEmailError: Empty email address for bcc.
> >
> > > What can I do about this error? My program didn't even get a chance to
> > > execute and the code threw an error. How does GAE handle BCC email
> > > addresses? I thought those were supposed to be hidden. Thanks for your
> > > help,
> > > Kevin
>
> --
> 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]<google-appengine%[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.

Reply via email to