Just discovered UAPI Functions - Email::store_filter for mass-adding email filters. Thankful that this exists!
Unfortunately my first test had a problem. I'm creating a filter that basically whitelists an email by check the header_from for this email and delivering it to the inbox of this account. Here's my URL test (anonymized a bit):
The return in the browser was:
the save line of the resulting filter was:
This is the destination folder twice. If I go into the online interface and simply select INBOX and save it. Then when I look at the resulting filter it shows:
So, for some reason the destination folder is getting doubled. It seems like this would be the ideal solution but this is a significant issue.
Also, I'm just a normal customer at this hosting company. I don't have any system-level access other than SSH into my own account with cagefs so I can't change their cPanel installation.
Anybody else run into this or have an idea of what I can/should do?
Thanks!
Unfortunately my first test had a problem. I'm creating a filter that basically whitelists an email by check the header_from for this email and delivering it to the inbox of this account. Here's my URL test (anonymized a bit):
Code:
https://myhostingcompany.com:2083/cpsess3485885060/execute/Email/store_filter?filtername=abc123%40gmail.com&account=account123%40mydomain.com&action1=save&dest1=%24home%2Fmail%2Fmydomain.com%2Faccount123%2F&part1=%24header_from%3A&match1=contains&val1=abc123%40gmail.com
Code:
{"metadata":{},"data":{"account":"[email protected]"},"errors":null,"warnings":null,"messages":null,"status":1}
Code:
save "$home/mail/mydomain.com/account123/$home/mail/mydomain.com/account123/" 660
Code:
save "$home/mail/mydomain.com/account123/" 660
Also, I'm just a normal customer at this hosting company. I don't have any system-level access other than SSH into my own account with cagefs so I can't change their cPanel installation.
Anybody else run into this or have an idea of what I can/should do?
Thanks!