The Email program encountered a fatal error and will terminate now. "Could not create templates resourceId:6".
From the follwing debug log it looks like the templates folder accidentaly got a "trash" SpecialCollectionAttribute, so a subsequent try to create the templates folder fails.
kontact-5705 (0x49a61f8) 122 LIST 0 INF (RESOURCE akonadi_maildir_resource_4 ENABLED TRUE) (STATISTICS true) kontact-5705 (0x49a61f8) * 4 0 (NAME "Local Folders" MIMETYPE (message/rfc822 inode/directory) REMOTEID "C:\\Users\\kolab\\AppData\\Roaming\\.kontact\\.local\\share/local-mail" REMOTEREVISION "" RESOURCE "akonadi_maildir_resource_4" VIRTUAL 0 MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT false INTERVAL -1 CACHETIMEOUT 1 SYNCONDEMAND true LOCALPARTS (ENVELOPE)) ENABLED TRUE DISPLAY DEFAULT SYNC DEFAULT INDEX DEFAULT AccessRights "C" SpecialCollectionAttribute "local-mail" ENTITYDISPLAY "(\"Local Folders\" \"folder\" \"\" ())") kontact-5705 (0x49a61f8) * 5 4 (NAME "drafts" MIMETYPE (message/rfc822 inode/directory) REMOTEID "drafts" REMOTEREVISION "" RESOURCE "akonadi_maildir_resource_4" VIRTUAL 0 MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT 1 SYNCONDEMAND true LOCALPARTS (ENVELOPE)) ENABLED TRUE DISPLAY DEFAULT SYNC DEFAULT INDEX DEFAULT SpecialCollectionAttribute "drafts" ENTITYDISPLAY "(\"drafts\" \"document-properties\" \"\" ())") kontact-5705 (0x49a61f8) * 6 4 (NAME "inbox" MIMETYPE (message/rfc822 inode/directory) REMOTEID "inbox" REMOTEREVISION "" RESOURCE "akonadi_maildir_resource_4" VIRTUAL 0 MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT 1 SYNCONDEMAND true LOCALPARTS (ENVELOPE)) ENABLED TRUE DISPLAY DEFAULT SYNC DEFAULT INDEX DEFAULT SpecialCollectionAttribute "inbox" ENTITYDISPLAY "(\"inbox\" \"mail-folder-inbox\" \"\" ())") kontact-5705 (0x49a61f8) * 7 4 (NAME "outbox" MIMETYPE (message/rfc822 inode/directory) REMOTEID "outbox" REMOTEREVISION "1457373451610" RESOURCE "akonadi_maildir_resource_4" VIRTUAL 0 MESSAGES 1 UNSEEN 1 SIZE 1279 CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT 1 SYNCONDEMAND true LOCALPARTS (ENVELOPE)) ENABLED TRUE DISPLAY DEFAULT SYNC DEFAULT INDEX DEFAULT SpecialCollectionAttribute "outbox" ENTITYDISPLAY "(\"outbox\" \"mail-folder-outbox\" \"\" ())") kontact-5705 (0x49a61f8) * 8 4 (NAME "sent-mail" MIMETYPE (message/rfc822 inode/directory) REMOTEID "sent-mail" REMOTEREVISION "" RESOURCE "akonadi_maildir_resource_4" VIRTUAL 0 MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT 1 SYNCONDEMAND true LOCALPARTS (ENVELOPE)) ENABLED TRUE DISPLAY DEFAULT SYNC DEFAULT INDEX DEFAULT SpecialCollectionAttribute "sent-mail" ENTITYDISPLAY "(\"sent-mail\" \"mail-folder-sent\" \"\" ())") kontact-5705 (0x49a61f8) * 9 4 (NAME "templates" MIMETYPE (message/rfc822 inode/directory) REMOTEID "templates" REMOTEREVISION "" RESOURCE "akonadi_maildir_resource_4" VIRTUAL 0 MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT 1 SYNCONDEMAND true LOCALPARTS (ENVELOPE)) ENABLED TRUE DISPLAY DEFAULT SYNC DEFAULT INDEX DEFAULT SpecialCollectionAttribute "trash" ENTITYDISPLAY "(\"templates\" \"user-trash\" \"\" ())") kontact-5705 (0x49a61f8) * 10 4 (NAME "trash" MIMETYPE (message/rfc822 inode/directory) REMOTEID "trash" REMOTEREVISION "1457373451639" RESOURCE "akonadi_maildir_resource_4" VIRTUAL 0 MESSAGES 1 UNSEEN 0 SIZE 2870 CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT 1 SYNCONDEMAND true LOCALPARTS (ENVELOPE)) ENABLED TRUE DISPLAY DEFAULT SYNC DEFAULT INDEX DEFAULT SpecialCollectionAttribute "trash" ENTITYDISPLAY "(\"trash\" \"user-trash\" \"\" ())") kontact-5705 (0x49a61f8) 122 OK List completed kontact-5705 (0x49a61f8) 123 LIST 0 INF (RESOURCE akonadi_maildir_resource_4 DISPLAY TRUE) (STATISTICS true) kontact-5705 (0x49a61f8) * 4 0 (NAME "Local Folders" MIMETYPE (message/rfc822 inode/directory) REMOTEID "C:\\Users\\kolab\\AppData\\Roaming\\.kontact\\.local\\share/local-mail" REMOTEREVISION "" RESOURCE "akonadi_maildir_resource_4" VIRTUAL 0 MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT false INTERVAL -1 CACHETIMEOUT 1 SYNCONDEMAND true LOCALPARTS (ENVELOPE)) ENABLED TRUE DISPLAY DEFAULT SYNC DEFAULT INDEX DEFAULT AccessRights "C" SpecialCollectionAttribute "local-mail" ENTITYDISPLAY "(\"Local Folders\" \"folder\" \"\" ())") kontact-5705 (0x49a61f8) * 5 4 (NAME "drafts" MIMETYPE (message/rfc822 inode/directory) REMOTEID "drafts" REMOTEREVISION "" RESOURCE "akonadi_maildir_resource_4" VIRTUAL 0 MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT 1 SYNCONDEMAND true LOCALPARTS (ENVELOPE)) ENABLED TRUE DISPLAY DEFAULT SYNC DEFAULT INDEX DEFAULT SpecialCollectionAttribute "drafts" ENTITYDISPLAY "(\"drafts\" \"document-properties\" \"\" ())") kontact-5705 (0x49a61f8) * 6 4 (NAME "inbox" MIMETYPE (message/rfc822 inode/directory) REMOTEID "inbox" REMOTEREVISION "" RESOURCE "akonadi_maildir_resource_4" VIRTUAL 0 MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT 1 SYNCONDEMAND true LOCALPARTS (ENVELOPE)) ENABLED TRUE DISPLAY DEFAULT SYNC DEFAULT INDEX DEFAULT SpecialCollectionAttribute "inbox" ENTITYDISPLAY "(\"inbox\" \"mail-folder-inbox\" \"\" ())") kontact-5705 (0x49a61f8) * 7 4 (NAME "outbox" MIMETYPE (message/rfc822 inode/directory) REMOTEID "outbox" REMOTEREVISION "1457373451610" RESOURCE "akonadi_maildir_resource_4" VIRTUAL 0 MESSAGES 1 UNSEEN 1 SIZE 1279 CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT 1 SYNCONDEMAND true LOCALPARTS (ENVELOPE)) ENABLED TRUE DISPLAY DEFAULT SYNC DEFAULT INDEX DEFAULT SpecialCollectionAttribute "outbox" ENTITYDISPLAY "(\"outbox\" \"mail-folder-outbox\" \"\" ())") kontact-5705 (0x49a61f8) * 8 4 (NAME "sent-mail" MIMETYPE (message/rfc822 inode/directory) REMOTEID "sent-mail" REMOTEREVISION "" RESOURCE "akonadi_maildir_resource_4" VIRTUAL 0 MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT 1 SYNCONDEMAND true LOCALPARTS (ENVELOPE)) ENABLED TRUE DISPLAY DEFAULT SYNC DEFAULT INDEX DEFAULT SpecialCollectionAttribute "sent-mail" ENTITYDISPLAY "(\"sent-mail\" \"mail-folder-sent\" \"\" ())") kontact-5705 (0x49a61f8) * 9 4 (NAME "templates" MIMETYPE (message/rfc822 inode/directory) REMOTEID "templates" REMOTEREVISION "" RESOURCE "akonadi_maildir_resource_4" VIRTUAL 0 MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT 1 SYNCONDEMAND true LOCALPARTS (ENVELOPE)) ENABLED TRUE DISPLAY DEFAULT SYNC DEFAULT INDEX DEFAULT SpecialCollectionAttribute "trash" ENTITYDISPLAY "(\"templates\" \"user-trash\" \"\" ())") kontact-5705 (0x49a61f8) * 10 4 (NAME "trash" MIMETYPE (message/rfc822 inode/directory) REMOTEID "trash" REMOTEREVISION "1457373451639" RESOURCE "akonadi_maildir_resource_4" VIRTUAL 0 MESSAGES 1 UNSEEN 0 SIZE 2870 CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT 1 SYNCONDEMAND true LOCALPARTS (ENVELOPE)) ENABLED TRUE DISPLAY DEFAULT SYNC DEFAULT INDEX DEFAULT SpecialCollectionAttribute "trash" ENTITYDISPLAY "(\"trash\" \"user-trash\" \"\" ())") kontact-5705 (0x49a61f8) 123 OK List completed kontact-5705 (0x49a61f8) 124 CREATE "templates" 4 ( REMOTEID "" REMOTEREVISION "" VIRTUAL 0 ENABLED TRUE DISPLAY DEFAULT SYNC DEFAULT INDEX DEFAULT SpecialCollectionAttribute "templates" ENTITYDISPLAY "(\"templates\" \"document-new\" \"\" ())" CACHEPOLICY (INHERIT true)) kontact-5705 (0x49a61f8) 124 NO Could not create collection templates resourceId: 6