9.9.9 Mailtrigger - VisualCron - Forum

Community forum

thomas
2022-09-06T08:41:49Z
Hi

I just ran new version through all the tests we have before an upgrade. It passes all tests except one. When we have a mailtrigger that saves the mail to the fileserver, it behave differently now.

image.png

When it saves the mail, it creates an additional folder I haven't seen before:

image.png

And below this is the attachments folder:

image.png

The attachments folder is empty, so it didn't save anything

image.png


Michael Fjellström
2022-09-16T07:34:38Z
Originally Posted by: thomas 

Hi

I just ran new version through all the tests we have before an upgrade. It passes all tests except one. When we have a mailtrigger that saves the mail to the fileserver, it behave differently now.

image.png

When it saves the mail, it creates an additional folder I haven't seen before:

image.png

And below this is the attachments folder:

image.png

The attachments folder is empty, so it didn't save anything

image.png




Hi Thomas,

This is due to the maildomain/server, some rare ones will create very long mail IDs, but that's not the common case. However, you can temporary workaround this by enabling zetalongpaths (should be guides on google) / disable the 256 win character limitation. We are however fixing this in our next beta build.
thomas
2022-09-16T08:02:14Z
Hi

It is great that you are fixing this! I will test as soon as I see it in the beta release notes
Me Ma
2022-09-16T10:00:47Z
Hi Thomas,

could you maybe share some details how you got this work.
We tested the 9.9.9.10 Beta and we are able to setup an EWS connection with Oauth and the Testmail works.
However if we choose the connection for the Mail trigger it will fail.

We are using the URL outlook.office365.com:993 with TLS activated. Do you use the same or something different?
thomas
2022-09-16T11:03:36Z
Hi

Does this mean you can send emails with the connection? So the smtp part work but imap fails, is that correct? Which api permissions have you gven in azure portal?

If you send a pic of your connection and api permissions, I can have a look at it later today.
thomas
2022-09-16T13:37:56Z
I use the same settings in the connection as you. It s probable the permissions in azure that are the problem. I don't remember the specifics right now, will have to check later
Michael Fjellström
2022-09-16T14:38:48Z
Originally Posted by: thomas 

I use the same settings in the connection as you. It s probable the permissions in azure that are the problem. I don't remember the specifics right now, will have to check later



Thomas,

And everyone who has any sort of mailtrigger issue - could you please download our latest beta build and see if it works better there? The issue is related to zetalongpaths (workaround is to enable that, it's easy to google how)

Please keep us updated here in the thread on if it works for you in that version or not

https://www.visualcron.c...aspx?g=Posts&t=10689 
thomas
2022-09-17T06:56:48Z
Hi

Mailtrigger worked fine now. Thanks! This was in version 9.9.10 to be clear. I stumbled into som other issues, but I will put those in other threads.

Thomas
Me Ma
2022-09-19T09:42:32Z
Hi,

thank you very much.
Yes the SMTP part works but Imap fails.
Support told us "full_access_as_app" is the only needed one.

Somehow the attachment upload is not working so here are the settings:

API:
Microsoft Graph EWS.AccessAsUser.All
Microsoft Graph openid
Microsoft Graph profile
Microsoft Graph offline_access
Office 365 Exchange Online full_access_as_app
Office 365 Exchange Online Mail.Read
Office 365 Exchange Online Mail.Send
Office 365 Exchange Online IMAP.AccessAsApp

Connection:
Adress: outlook.office365.com
Port: 993
Auth-Type: OAuth
Application ID: *
Client Secret: *
Email: visuacrontest@domain.de
Redirect URL: http://localhost:999
Tenant ID: *
Tenant Name: domain.de
Tenant Primary Domain: domain.de

The error message is: "Connection to "visualcrontest" failed when connection in Trigger "Email Trigger. Monitoring folder "default" . Save email (Always) in "Path" Save Attachment (Always)," of Job "Test Visual Cron"

Also I still wonder if it possible to have one App Connection and set different mailboxes in each mail trigger, so you don't have to create a connection / app for every mail address you use.

To be clear we are using the latest beta 9.9.10 but this thread seems still the correct one.

regards
Bastian
thomas
2022-09-19T12:17:11Z
Hi

I would guess you can use one Azure app for multiple adresses. The app is not linked to any particular address, so I cannot see why it wouldn't work. Perhaps having multiple connections using the same redirect url could cause trouble? Support will have to answer this one.

I also have the same trouble as you adding images now. I used to be able to just copy and paste an image, but it fails now.


Regarding you connection problems. We only have the Office 365 Exchange Online full_access_as_app in azure, so it should be sufficient. Appart from that it is hard to say. Try this:

1) Check that you have the same redirect url in azure and vc.

2) Make sure that under redirect url's in azure, you have checked the 'ID tokens' checkbox

3) Instead of using default inbox in the trigger, try selecting a specific inbox.


Me Ma
2022-09-20T15:48:41Z
Hi Thomas,

thank you very much, the ID Token Checkbox was the missing piece.
Not sure where I missed this information and why support couldn't´t tell me.
There is still an error with renaming the downloaded file but this is another problem and maybe just a syntax error.
So finally I can also say mail trigger does work with 9.9.10.

regards and have nice week
Bastian
Scroll to Top