Prevent deleting inbox

pull/187/head
M66B 4 years ago
parent 392d28a2f6
commit e97fb55969

@ -82,7 +82,7 @@ class CharsetHelper {
"UTF-8".equals(detected)) "UTF-8".equals(detected))
Log.w("compact_enc_det result=" + detected); Log.w("compact_enc_det result=" + detected);
else 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); Log.e("compact_enc_det result=" + detected);
return Charset.forName(detected); return Charset.forName(detected);

@ -1088,6 +1088,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
throw ex1; throw ex1;
} }
} catch (FolderNotFoundException ex) { } catch (FolderNotFoundException ex) {
if ("INBOX".equalsIgnoreCase(folder.name))
throw ex;
Log.w(folder.name, ex); Log.w(folder.name, ex);
db.folder().deleteFolder(folder.id); db.folder().deleteFolder(folder.id);
continue; continue;

Loading…
Cancel
Save