1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-02 13:14:39 +00:00

Reduced logging

This commit is contained in:
M66B 2021-12-29 22:04:04 +01:00
parent c4ed08f245
commit 194d954c52

View file

@ -1989,11 +1989,15 @@ class Core {
if (TextUtils.isEmpty(keyword))
throw new IllegalArgumentException("keyword missing");
if (folder.read_only)
throw new IllegalArgumentException(folder.name + " read-only");
if (folder.read_only) {
Log.w(folder.name + " read-only");
return;
}
if (!ifolder.getPermanentFlags().contains(Flags.Flag.USER))
throw new IllegalArgumentException(folder.name + " has no keywords");
if (!ifolder.getPermanentFlags().contains(Flags.Flag.USER)) {
Log.w(folder.name + " has no keywords");
return;
}
Message[] imessages = ifolder.search(new MessageIDTerm(msgid));
if (imessages == null || imessages.length == 0)