Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: chandu2016 on December 06, 2020, 05:40:56 AM

Title: Invoke an API if email received
Post by: chandu2016 on December 06, 2020, 05:40:56 AM
Hello Forum,

I am new to roundcube and this forum too!
Please pardon any silly queries.

I am using roundcube webmail.
I want to invoke an API if an email is received from specific Sender OR Subject.
I am note sure how to do this.

Please guide.
Title: Re: Invoke an API if email received
Post by: SKaero on December 06, 2020, 02:54:25 PM
Roundcube wouldn't be the correct place do try and implement something like that since Roundcube is a webmail client it only runs while a user is accessing the web mail client and not running in the background to detect new mail delivery.
Title: Re: Invoke an API if email received
Post by: jozsefmorrissey on June 04, 2022, 09:45:14 AM
I know this is an old post but I am invoking an external api whenever I receive an email using Push Notifications(https://doc.dovecot.org/configuration_manual/push_notification/).

I configured the OX(Open-Xchange) notifications.
Two things to be aware of:
        You have to manually enable notifications for a user command found in the Metadata section.
        The call will be of method PUT

Im currently trying to figure out how to receive attachments and the full message text but this should get you started.