Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webhook notification #178

Open
mazhigali opened this issue Mar 21, 2017 · 14 comments
Open

webhook notification #178

mazhigali opened this issue Mar 21, 2017 · 14 comments
Labels
enhancement suggest an improvement new module set requires a new module set

Comments

@mazhigali
Copy link

Can you add webhook notification while new email comes?
I would like to use telegram notifications.
Thank you for excellent application and great job

@jasonmunro jasonmunro self-assigned this Mar 21, 2017
@jasonmunro jasonmunro added the enhancement suggest an improvement label Mar 21, 2017
@jasonmunro
Copy link
Member

Thank you for your kind words!
Interesting idea for a module set. Just to clarify, when new messages are detected we would do some sort of authenticated POST to a webhook for a system like Telegram? I presume this is the API we would want to leverage for that: https://core.telegram.org/bots ?

@mazhigali
Copy link
Author

Yes you are right. I'm using this script https://github.com/rakshazi/telegram-notify. But I think within the module sypth you can come up with a more functional solution. For example, in the message to send the body of the letter and header, And also be able to remove the email from the telegrams like this @GmailBot

@jasonmunro jasonmunro added the new module set requires a new module set label Sep 25, 2018
@marclaporte
Copy link
Member

For the record:
https://en.wikipedia.org/wiki/Webhook

FYI, we just added Webhooks to Tiki Wiki CMS Groupware:
https://gitlab.com/tikiwiki/tiki/-/merge_requests/1649/

@marclaporte
Copy link
Member

Extending this feature request: I would like notifications for emails that fit a specific criteria. So we could add this to https://github.com/cypht-org/cypht/tree/master/modules/saved_searches

@marclaporte
Copy link
Member

Another topic: How does this run when we are not currently using Cypht?

Cypht doesn't know IMAP passwords unless user is logged in: https://www.cypht.org/security.html

Todo: Explore http://sieve.info/ to see if there is a standard way of doing this (I would be pleasantly surprised)

One option is to add a Cypht CLI script which handles this. But how can we do this without compromising security?

@marclaporte
Copy link
Member

@mazhigali We will soon have something ready for testing: #1056

@airbornelamb
Copy link

@marclaporte this is very exciting. Will this work only for telegram or generic webhooks as well?

Generic webhooks would allow Zapier/Make.com usage so that people can shoot the notifications off to other places as they desire. Opens up some powerful use cases.

@marclaporte
Copy link
Member

@airbornelamb Thank you for the kind words.

I agree. Can you describe a realistic use case so @Shadow243 can handle it?

@airbornelamb
Copy link

For sure, the biggest use case in front of me would be to send the notification off to Make.com using their generic webhook catch in real-time or near real-time from the message being received. Let me describe in more JTBD...

I am an email power user that has Google workspace accounts at a few companies. Many of them are lower traffic but still demand an urgent response (Within 15 mins ideally). These accounts have been configured in Cypht via Oauth. As a power user, who is frequently on my mobile device, I would like Cypht to send a webhook payload upon receiving an email with the following data: sender, recipient, email subject, email body. I will then utilize Make/Zapier to receive this payload and pass to an alerting service, such as Pushover to alert my phone. This allows me to read incoming emails on mobile without signing into all the accounts or setting up any apps. I can then go to the desktop to respond to important ones.

My most important feature would be real-time alerting of incoming mail.

@Shadow243
Copy link
Member

For sure, the biggest use case in front of me would be to send the notification off to Make.com using their generic webhook catch in real-time or near real-time from the message being received. Let me describe in more JTBD...

I am an email power user that has Google workspace accounts at a few companies. Many of them are lower traffic but still demand an urgent response (Within 15 mins ideally). These accounts have been configured in Cypht via Oauth. As a power user, who is frequently on my mobile device, I would like Cypht to send a webhook payload upon receiving an email with the following data: sender, recipient, email subject, email body. I will then utilize Make/Zapier to receive this payload and pass to an alerting service, such as Pushover to alert my phone. This allows me to read incoming emails on mobile without signing into all the accounts or setting up any apps. I can then go to the desktop to respond to important ones.

My most important feature would be real-time alerting of incoming mail.

Interesting, I'm gonna try it https://www.make.com/en/api-documentation

@marclaporte
Copy link
Member

@airbornelamb Do your servers support https://en.wikipedia.org/wiki/IMAP_IDLE ?

@airbornelamb
Copy link

@airbornelamb Do your servers support https://en.wikipedia.org/wiki/IMAP_IDLE ?

I'm using Google Workspace over Oauth (following the Cypht guide).. so not sure if it uses IDLE

@marclaporte
Copy link
Member

not sure if it uses IDLE

Ok, we will add an easy way to check: #1148

@airbornelamb
Copy link

Can beta test whenever you get to that point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement suggest an improvement new module set requires a new module set
Projects
None yet
Development

No branches or pull requests

5 participants