Author Topic: Invoke an API if email received  (Read 1094 times)

Offline chandu2016

  • Newbie
  • *
  • Posts: 1
Invoke an API if email received
« 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.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,783
    • SKaero - Custom Roundcube development
Re: Invoke an API if email received
« Reply #1 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.

Offline jozsefmorrissey

  • Newbie
  • *
  • Posts: 1
Re: Invoke an API if email received
« Reply #2 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(

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.