aboutsummaryrefslogtreecommitdiffstats
path: root/src/messaging/maildir/maildirFolder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/messaging/maildir/maildirFolder.cpp')
-rw-r--r--src/messaging/maildir/maildirFolder.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/messaging/maildir/maildirFolder.cpp b/src/messaging/maildir/maildirFolder.cpp
index 0edb0f4c..c3b7e71c 100644
--- a/src/messaging/maildir/maildirFolder.cpp
+++ b/src/messaging/maildir/maildirFolder.cpp
@@ -282,7 +282,9 @@ void maildirFolder::scanFolder()
while (nit->hasMoreElements())
{
utility::auto_ptr <utility::file> file = nit->nextElement();
- newMessageFilenames.push_back(file->getFullPath().getLastComponent());
+
+ if (maildirUtils::isMessageFile(*file))
+ newMessageFilenames.push_back(file->getFullPath().getLastComponent());
}
delete (nit); // Free directory
@@ -294,7 +296,9 @@ void maildirFolder::scanFolder()
while (cit->hasMoreElements())
{
utility::auto_ptr <utility::file> file = cit->nextElement();
- curMessageFilenames.push_back(file->getFullPath().getLastComponent());
+
+ if (maildirUtils::isMessageFile(*file))
+ curMessageFilenames.push_back(file->getFullPath().getLastComponent());
}
delete (cit); // Free directory