Overview
OAuth based External Mail sources Exchange Online and Google Mail currently have default timeout value to control how long each mail operation may take. With larger mail content this limit can be exceeded when download operation takes longer and the mail is not fetched to M-Files. In these cases, the following error can be found from Windows Event logs:
..Downloading a message failed.
Downloading message: xx.. timed out (0x8004016F).
Solution
Starting from M-Files August 22' release the value for download timeout can be increased in the Advanced Vault settings of M-Files Admin tool:
- Expand the desired vault
- Select its Configurations item
- Expand Advanced Vault Settings
- Expand Configuration
- Go to Connections to External Sources > Mail Sources Common > Timeout for downloads
- Change the maximum number of seconds before download operation is cancelled
For older releases the "Mail Service Timeout" setting can be used that controls the timeout for the whole mail processing operation.
- Expand the desired vault
- Select its Configurations item
- Expand Advanced Vault Settings
- Expand Configuration
- Go to Connections to External Sources > Mail Sources Common > Mail Service Timeout
- Change the maximum number of seconds before mail fetching operation is cancelled
