UI Path Knowledge Base Mail_Trigger_Sample does not work

I was trying to use sample from UI Path Knowledge Base ‘Mail_Trigger_Sample.xaml’ but could not make it working. I am using gmail.
I get message: IMAP Server has unexpectedly disconnected”.
When I run Steps the file stopped working at “Get IMAP mail messages Faulted”
I checked similar messages but they do not have working suggestions.
If somebody has another working solution please send a sample. Thanks

Mail_Trigger_Sample.xaml (19.7 KB)
Process_Email.xaml (6.0 KB)

UiPath%20Mail_Trigger_Sample%20Error

UiPath%20Mail_Trigger_Sample%20Error2