Welcome to the mailbox.org user forum!
 

Do you provide an API where I can add new email spam-filters

3626383 shared this question 10 months ago
Need Answer

I am considering in buying your email service and using it with my owndomain. I like to use catch-all addresses but also control them byadding spam-filters using an API with a program.Do you provide an API where I can add new email spam-filtersprogramatically?My use case is that I want to provide a random-new email address likefoobar.12.2018@domain.com when shopping in november and then to throwall emails arriving after december 2018 to the spam folder.

Comments (3)

photo
1

Hi,

thank you for your interest in mailbox.org

At this time, we do not provide an API for our spam filters.

However, you could use a Sieve script for this task, as we do provide ManageSieve access.

photo
1

I tried doing this with manageSieve, but you do not provide

any access to the "variables" extension, to do this I would first need to save a part of the "to" address into a variable and do a datetime comparison. The following example is not possible to run with the sieve script at this site:


require ["variables", "envelope", "fileinto", "subaddress"];if envelope :is :user "to" "sales" { if envelope :matches :detail "to" "*" { /* Save name in ${name} in all lowercase except for the first letter. * Joe, joe, jOe thus all become 'Joe'. */ set :lower :upperfirst "name" "${1}"; } if string :is "${name}" "" { /* Default case if no detail is specified */ fileinto "sales"; } else { /* For sales+joe@ this will become users/Joe */ fileinto "users/${name}"; }}

photo
1

Hi,

please refer to http://sieve.info/ for further tutorials.


We have just checked on the server and can confirm that it supports variables, as the respective plug-in is installed correctly.