mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
28 lines
816 B
Diff
28 lines
816 B
Diff
|
|
diff --git a/mailnews/local/src/nsMsgLocalStoreUtils.cpp b/mailnews/local/src/nsMsgLocalStoreUtils.cpp
|
|
--- a/mailnews/local/src/nsMsgLocalStoreUtils.cpp
|
|
+++ b/mailnews/local/src/nsMsgLocalStoreUtils.cpp
|
|
@@ -23,16 +23,19 @@ nsMsgLocalStoreUtils::AddDirectorySepara
|
|
path->GetLeafName(leafName);
|
|
leafName.AppendLiteral(FOLDER_SUFFIX);
|
|
return path->SetLeafName(leafName);
|
|
}
|
|
|
|
bool
|
|
nsMsgLocalStoreUtils::nsShouldIgnoreFile(nsAString& name)
|
|
{
|
|
+ if (name.IsEmpty())
|
|
+ return true;
|
|
+
|
|
char16_t firstChar = name.First();
|
|
if (firstChar == '.' || firstChar == '#' ||
|
|
name.CharAt(name.Length() - 1) == '~')
|
|
return true;
|
|
|
|
if (name.LowerCaseEqualsLiteral("msgfilterrules.dat") ||
|
|
name.LowerCaseEqualsLiteral("rules.dat") ||
|
|
name.LowerCaseEqualsLiteral("filterlog.html") ||
|
|
|
|
|
|
|
|
|