Commit 3e10da9d authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Maildir: don't add to mChangedFiles if RID is empty

parent 90200f58
......@@ -301,8 +301,6 @@ void MaildirResource::itemAdded(const Akonadi::Item &item, const Akonadi::Collec
stopMaildirScan(dir);
const QString rid = dir.addEntry(mail->encodedContent());
mChangedFiles.insert(rid);
mChangedCleanerTimer->start(CLEANER_TIMEOUT);
if (rid.isEmpty()) {
restartMaildirScan(dir);
......@@ -310,6 +308,9 @@ void MaildirResource::itemAdded(const Akonadi::Item &item, const Akonadi::Collec
return;
}
mChangedFiles.insert(rid);
mChangedCleanerTimer->start(CLEANER_TIMEOUT);
restartMaildirScan(dir);
Item i(item);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment