GAE Inbound Email to non-default Module

99 views
Skip to first unread message

Phil Hodey

unread,
Dec 8, 2015, 10:21:30 AM12/8/15
to Google App Engine
I want to use the inbound email facility in GAE but need to have a different module handle the incoming mail.

I can setup inbound mail on the default module but I cannot see how to handle the inbound mail from a different module, is this possible?

Chad Vincent

unread,
Dec 8, 2015, 3:43:22 PM12/8/15
to Google App Engine
Not super familiar with modules, but what about using the default module to store the mail and kick a task/URL on the handler module with the data?

Nick (Cloud Platform Support)

unread,
Dec 8, 2015, 7:00:17 PM12/8/15
to Google App Engine
The docs explain that the handlers run in the default module. You should indeed use these handlers to kick off tasks or requests to the other modules.

PK

unread,
Dec 8, 2015, 7:17:54 PM12/8/15
to google-a...@googlegroups.com
I have been doing what Nick suggests but have run into the following.

A use case I have run into is receiving e-mails with big attachments when my default module has 128MB instances. the big attachments cause the instances to crash. I cannot afford bigger instances and after all messages with big attachments is not the common case. And even then, how big is big enough?

I have filed this asking something that I think is very reasonable: big attachments to be delivered as a handle in GCS instead of inline, then what Nick suggests would work nicely. 

Please star it if you see the value of such an improvement.

(It is sad that my request has not even been reviewed after 18 months….)

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/a352d0a0-13bd-4c8e-ba27-c9ccf5f9900e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Phil Hodey

unread,
Dec 9, 2015, 4:19:29 AM12/9/15
to Google App Engine
Thanks. I restructured my modules to put the mail handlers on the default module. It would certainly be a useful feature to allow the incoming mail handler to be on the non-default module.

Alex Martelli

unread,
Dec 9, 2015, 1:07:25 PM12/9/15
to google-a...@googlegroups.com
Indeed, looks like an excellent FR -- could you please enter it at https://code.google.com/p/googleappengine/issues/list?can=2&q=Type%3DFeature ? (PK's FR about implicit use of GCS is also good, but I can see the technical difficulties with that one in receiving emails, risking a DOS attack by filling up an app's GCS by just sending it large mails -- OTOH I see no technical difficulties with dispatching all email reception to a non-default module, just as can be done for cron jobs and task queues, so this FR might enjoy a faster reaction time -- fingers crossed).

Thanks,

Alex


On Wed, Dec 9, 2015 at 1:19 AM, Phil Hodey <phil....@hcstech.co.uk> wrote:
Thanks. I restructured my modules to put the mail handlers on the default module. It would certainly be a useful feature to allow the incoming mail handler to be on the non-default module.
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.

PK

unread,
Dec 9, 2015, 2:15:41 PM12/9/15
to google-a...@googlegroups.com
Hi Alex,

one should be able to set quotas in the GCS bucket where attachments will be temporarily stored. Therefore, I am not sure I see the DOS implications and why they are any worse than today’s situation.

It is not really simple but this is where GCP & GAE can show leadership and help improve their position in the next Gartner magic quadrant… Sending us to SendGrid for our e-mail needs, will not…



For more options, visit https://groups.google.com/d/optout.

Marcel Manz

unread,
Dec 9, 2015, 5:03:12 PM12/9/15
to Google App Engine
Unfortunately not much leadership to show. What you are looking for is fully supported on AWS by storing / filtering inbound email directly to S3 buckets etc etc.

I won't copy the link, but you can read their blogpost of 28 SEP 2015.

I'm not affiliated with AWS - just a happy customer using the best of both worlds.
Marcel

PK

unread,
Dec 10, 2015, 12:08:44 PM12/10/15
to google-a...@googlegroups.com
Well the leadership angle has been lost but now it is becoming a checkbox item, so from “GCP should do it” becomes “GCP will have to do it”. I will update the issue tracker with the link to the announcement. 


--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages