|
|
@ -409,6 +409,10 @@ class Core {
|
|
|
|
onPurgeFolder(context, jargs, folder, (IMAPFolder) ifolder);
|
|
|
|
onPurgeFolder(context, jargs, folder, (IMAPFolder) ifolder);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case EntityOperation.EXPUNGE:
|
|
|
|
|
|
|
|
onExpungeFolder(context, jargs, folder, (IMAPFolder) ifolder);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case EntityOperation.RULE:
|
|
|
|
case EntityOperation.RULE:
|
|
|
|
onRule(context, jargs, message);
|
|
|
|
onRule(context, jargs, message);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -1999,6 +2003,11 @@ class Core {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static void onExpungeFolder(Context context, JSONArray jargs, EntityFolder folder, IMAPFolder ifolder) throws MessagingException {
|
|
|
|
|
|
|
|
Log.i(folder.name + " expunge");
|
|
|
|
|
|
|
|
ifolder.expunge();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private static void onPurgeFolder(Context context, EntityFolder folder) {
|
|
|
|
private static void onPurgeFolder(Context context, EntityFolder folder) {
|
|
|
|
// POP3
|
|
|
|
// POP3
|
|
|
|
DB db = DB.getInstance(context);
|
|
|
|
DB db = DB.getInstance(context);
|
|
|
|