Hi,
You should file a bug with the mapreduce or pipeline project. The ~
in the domain portion of the address is no good. Also, the ~ in the
local portion doesn't play nice with some email services.
http://code.google.com/p/appengine-mapreduce/source/browse/trunk/python/src/mapreduce/lib/pipeline/pipeline.py#772
For now, you can likely fix your issue by using the new
get_application_id method to set the app_id on line 772 in
pipeline/pipeline.py.
Replace:
app_id = os.environ['APPLICATION_ID']
With:
from appengine.api import app_identity
app_id = app_identity.get_application_id()
http://code.google.com/appengine/docs/python/appidentity/functions.html
Robert
On Tue, Aug 16, 2011 at 16:09, Iron Mountain Foundry
<[email protected]> wrote:
> Hi Robert,
>
> Thanks for the link. I'd be happy to use my own email address as
> the sender, but the code in mapreduce/lib/pipeline/pipeline.py
> generates the sender as "s~my-app@s~my-
> app.appspotmail.com".
>
> line 810: sender = '%s@%s.appspotmail.com' % (app_id, app_id)
>
> I don't see a place to specify a different sender.
>
> So this sounds like two bugs to me, 1) to be able to specify a
> sender and 2) to accept the one generated by pipeline.py. Where do I
> report mapreduce/pipeline bugs?
>
> ~Brent
>
>
> On Aug 15, 10:06 pm, Robert Kluin <[email protected]> wrote:
>> Hey brent,
>> Make sure the address you're sending from is allowed:
>> http://code.google.com/appengine/docs/python/mail/overview.html#Sendi...
>>
>> There has also been an ongoing issue the past few days with
>> unauthorized sender errors. You might take a look at issue 5575 and
>> see if it is the same problem. In other threads there has been
>> discussion about this possibly being related to having a period ('.')
>> in the sender's email address.
>> http://code.google.com/p/googleappengine/issues/detail?id=5575
>>
>> Robert
>>
>> On Mon, Aug 15, 2011 at 11:17, Iron Mountain Foundry
>>
>>
>>
>>
>>
>>
>>
>> <[email protected]> wrote:
>> > This is strange. I'm experimenting with the Pipeline API (so I'm
>> > probably doing something wrong).
>>
>> > My pipeline created a fanout with multiple tasks, and each one
>> > terminated with this message:
>> > Pipeline ID "c8d2d7f5c70011e092a8d5ae72c9b590" in bad state for
>> > purpose "abort": "aborted"
>> > Is it saying that you can't abort an aborted pipeline? What would
>> > cause this?
>>
>> > Then, after all the tasks terminated with that same error message, the
>> > root task terminated with this message:
>>
>> > Could not send result email for root pipeline ID
>> > "43141870c70111e0aa7075abd61aedb3" from sender "s~my-app@s~my-
>> > app.appspotmail.com"
>> > Traceback (most recent call last):
>> > File "/base/data/home/apps/s~imf-relays/1.352559603769972221/
>> > pipeline/pipeline.py", line 809, in send_result_email
>> > self._send_mail(sender, subject, body, html=html)
>> > File "/base/python_runtime/python_lib/versions/1/google/appengine/
>> > api/mail.py", line 417, in send_mail_to_admins
>> > message = AdminEmailMessage(**kw)
>> > File "/base/python_runtime/python_lib/versions/1/google/appengine/
>> > api/mail.py", line 696, in __init__
>> > self.initialize(**kw)
>> > File "/base/python_runtime/python_lib/versions/1/google/appengine/
>> > api/mail.py", line 712, in initialize
>> > setattr(self, name, value)
>> > File "/base/python_runtime/python_lib/versions/1/google/appengine/
>> > api/mail.py", line 1219, in __setattr__
>> > super(AdminEmailMessage, self).__setattr__(attr, value)
>> > File "/base/python_runtime/python_lib/versions/1/google/appengine/
>> > api/mail.py", line 942, in __setattr__
>> > check_email_valid(value, attr)
>> > File "/base/python_runtime/python_lib/versions/1/google/appengine/
>> > api/mail.py", line 239, in check_email_valid
>> > raise InvalidEmailError(reason)
>> > InvalidEmailError: Invalid email address type for sender.
>>
>> > This must be a bug in the mail.py code. Why can't it send me an email
>> > with the results? Is it because of the s~ at the beginning of 'my-
>> > app'?
>>
>> > ~Brent
>>
>> > --
>> > 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
>> > athttp://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.
>
>
--
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.