From 4b81d33201250ef453fbbe2f04bd885b0091f749 Mon Sep 17 00:00:00 2001 From: alex-z Date: Tue, 29 Aug 2023 17:19:06 +0200 Subject: [PATCH] Also include .msg files. Signed-off-by: alex-z --- src/libsync/discovery.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index 68b620535a952..1945ea0fd3ead 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -1183,8 +1183,12 @@ void ProcessDirectoryJob::processFileAnalyzeLocalInfo( } } - if ((item->_instruction == CSYNC_INSTRUCTION_NONE) - && dbEntry._lastAccessTime != item->_lastAccessTime) + if ((!item->isDirectory() && item->_instruction == CSYNC_INSTRUCTION_NONE) + && dbEntry._lastAccessTime != item->_lastAccessTime + && (item->_file.endsWith(QStringLiteral(".doc")) + || item->_file.endsWith(QStringLiteral(".docx")) + || item->_file.endsWith(QStringLiteral(".msg")) + || item->_file.endsWith(QStringLiteral(".odt")))) { item->_instruction = CSYNC_INSTRUCTION_UPDATE_METADATA; item->_direction = SyncFileItem::Down;