Malcolm Posted October 23, 2023 Share Posted October 23, 2023 Can anyone assist with the Rule Expression syntax for toAddress I have the following: toAddress='email@domain.com' but the rule doesn't work. Link to comment Share on other sites More sharing options...
James Ainsworth Posted October 23, 2023 Share Posted October 23, 2023 Does the incoming email have more than one recipient listed in the To field? If that is the case, you are better off using a "like". An example would be toAddress LIKE '%email@domain.com%' Link to comment Share on other sites More sharing options...
Gerry Posted October 23, 2023 Share Posted October 23, 2023 @Malcolm As @James Ainsworth says above, consider using the LIKE keyword. You can read more about this here: https://docs.hornbill.com/esp-config/email/using-email-routing-rules#rule-expression-syntax As a reminder, a quick search on https://docs.hornbill.com/ for "Email Rules" will instantly find you the above information and quite a lot of other related useful information too - its worth a look. Gerry Link to comment Share on other sites More sharing options...
Malcolm Posted October 24, 2023 Author Share Posted October 24, 2023 @Gerry @James Ainsworth thanks for that, very useful. There is only one "To" address but I changed the syntax to LIKE anyway, but still not working. Not sure if there is something wrong in my config, though its the same I use for other rules (but my only one using ToAddress). The only other thing that is different is that I have multiple mailboxes, and this particular rule is expected to affect just one of the mailboxes. Do routing rules get applied to all mailboxes, or is there something extra I would need to do? My config below (and attached): Link to comment Share on other sites More sharing options...
Keith Stevenson Posted October 24, 2023 Share Posted October 24, 2023 @Malcolm Thanks for the post. From the logs it appears that it fails to log the call as more than 1 account has the same email address and therefore it cant decide which 1 to use. You should update the accounts with duplicate email to remove the ambugity 2023-10-24 08:01:49Z [INFO]:[SYSTEM]:[8012] Processing auto-e-mail-responder request ... Subject: Re: Test Automation Boom 2023-10-24 08:01:49Z [WARNING]:[COMMS]:[8012] Operation[apps/com.hornbill.servicemanager/arOperation::raiseNewRequest] /apps/com.hornbill.servicemanager/flowcode/fc_ar/raiseNewRequest.js(305): error X1001: Uncaught Found more than 1 account with the same email address. Kind Regards Hornbill Cloud Team Link to comment Share on other sites More sharing options...
Malcolm Posted October 24, 2023 Author Share Posted October 24, 2023 Hi @Keith Stevenson thanks for looking in to this. When you say more than one account with the same email address, i'm not sure what/where this is referenced. Are you able to offer some guidance? Link to comment Share on other sites More sharing options...
Keith Stevenson Posted October 24, 2023 Share Posted October 24, 2023 @Malcolm The check for which user to log the call against will look at the h_email field in the h_sys_accounts table (users).. In your instance the test email address (from ) you used (which was your own) is set against your own user and the admin account. These can be configured in the Platform Admin -> User section Kind Regards Hornbill Cloud Team Link to comment Share on other sites More sharing options...
Malcolm Posted October 24, 2023 Author Share Posted October 24, 2023 @Keith Stevenson oh the sending address. Makes sense, I'll give that a go. Link to comment Share on other sites More sharing options...
Malcolm Posted October 24, 2023 Author Share Posted October 24, 2023 @Keith Stevensonthanks thats sorted it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now