summaryrefslogtreecommitdiffstats
path: root/comm/mail/locales/filter.py
blob: eb0bfcc6be218fcaf645e5c025a033aa3df8e191 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.


def test(mod, path, entity=None):
    # ignore anything but Thunderbird
    if mod not in (
        "netwerk",
        "dom",
        "toolkit",
        "security/manager",
        "devtools/shared",
        "devtools/client",
        "mail",
        "chat",
        "extensions/spellcheck",
        "mail/branding/thunderbird",
    ):
        return "ignore"

    # ignore dictionaries
    if mod == "extensions/spellcheck":
        return "ignore"

    return "error"