mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 16:43:26 +02:00
Prevent deleting inbox
This commit is contained in:
@@ -82,7 +82,7 @@ class CharsetHelper {
|
||||
"UTF-8".equals(detected))
|
||||
Log.w("compact_enc_det result=" + detected);
|
||||
else
|
||||
// ISO-2022-JP, ISO-8859-2, windows-1250, windows-1257
|
||||
// ISO-2022-JP, ISO-8859-2, windows-1250, windows-1252, windows-1257
|
||||
Log.e("compact_enc_det result=" + detected);
|
||||
|
||||
return Charset.forName(detected);
|
||||
|
||||
@@ -1088,6 +1088,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||
throw ex1;
|
||||
}
|
||||
} catch (FolderNotFoundException ex) {
|
||||
if ("INBOX".equalsIgnoreCase(folder.name))
|
||||
throw ex;
|
||||
Log.w(folder.name, ex);
|
||||
db.folder().deleteFolder(folder.id);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user