Skip to content

Commit

Permalink
Also include .msg files.
Browse files Browse the repository at this point in the history
Signed-off-by: alex-z <[email protected]>
  • Loading branch information
allexzander committed Aug 29, 2023
1 parent f348b46 commit 4b81d33
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/libsync/discovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4b81d33

Please sign in to comment.