stalwartlabs / smtp-server

Stalwart SMTP Server
https://stalw.art/smtp
GNU Affero General Public License v3.0
477 stars 24 forks source link

[enhancement]: action type #24

Open stappersg opened 11 months ago

stappersg commented 11 months ago

Which feature or improvement would you like to request?

Based on

INSERT INTO emails (name, address, type) VALUES ('john', 'sales@example.org', 'list')
INSERT INTO emails (name, address, type) VALUES ('jane', 'sales@example.org', 'list')

My wish is to have something like:

INSERT INTO emails (name, address, type)
 VALUES ('/path/to/script', 'sales-requests@lists.example.org', 'action')
INSERT INTO emails (name, address, type)
 VALUES ('/usr/local/bin/assistent', 'assistent@example.org', 'action')

So when there is an incoming email to assistent@example.org then is program /usr/local/bin/assistent started, it get the message body piped and processes it.

Is your feature request related to a problem?

Example use case is self subscribe and self unsubscribe to mailinglists.

Code of Conduct

mdecimus commented 11 months ago

You could do this with a pipe or a Sieve script.