apache / openwhisk

Apache OpenWhisk is an open source serverless cloud platform
https://openwhisk.apache.org/
Apache License 2.0
6.5k stars 1.16k forks source link

email notification package #392

Closed csantanapr closed 7 years ago

csantanapr commented 8 years ago

From @sjfink : We could use SendGrid -- though there have been some concerns about dropped messages and spam filters.

We need an action to send outgoing emails and a feed to receive incoming emails as triggers.

mbehrendt commented 8 years ago

i'd suggest to prioritize the event source higher than the action

browezilla commented 8 years ago

This was previously assigned to Sebastian Aschoff for his Master's thesis. I chatted with him, and since we are ready to start on it now, we will pull it over and start working on it. If Andreas feels that it is critical for Sebastian's thesis, then Sebastian will take if over from us. (the same for issue 391 - Twilio). Please note that both require legal clearance before we can release them into the wild.

tareqmamari commented 8 years ago

Hi Andreas assigned a task to me and Sebastian to implement IMAP for incoming emails. I have created a service provider for that, it is now available , to use it :

sjfink commented 8 years ago

i'd suggest to prioritize the event source higher than the action

why? sending emails is a very useful facility.

mbehrendt commented 8 years ago

a precanned action is essentially 'just' a code sample (of which there a many available here, for simple copy & paste: https://sendgrid.com/docs/Integrate/Code_Examples/index.html) . however, having an email-based feed implemented is non-trivial value-add to openwhisk. it's good to have an action, but i just don't see the priority as being as high.

browezilla commented 8 years ago

https://sendgrid.com/docs/API_Reference/Webhooks/event.html

browezilla commented 8 years ago

We have legal clearance to create the package/action, but not to externalize it yet. We must expose the need for the customer to have an ID of their own.

csantanapr commented 8 years ago

@browezilla let's clarify what does "but not to externalize", I think we are OK here since how packages are not going to be install by default, user will be the one to install the package in openwhisk.

Installing the senGrid package in a comercial offering of openwhisk like bluemix, it's up to that company (i.e. IBM) to make the decision if they want to install the package in their production openwhisk for their customers.

For now the developer doing this work, I suggest follows the same pattern as openwhisk/wsk-pkg-pushnotifications and make it public here in opensource. We can create a new repo (i.e. openwhisk/openwhisk-package-email)

We just need to like business as usual that any code or 3rd party libraries are compatible with the main openwhisk one Apache 2.0 (https://github.com/openwhisk/openwhisk/blob/master/LICENSE.txt) License

markusthoemmes commented 7 years ago

@csantanapr move to catalog?

markusthoemmes commented 7 years ago

Issue moved to openwhisk/openwhisk-catalog #200 via ZenHub