(Context context, JSONArray jargs, EntityFolder folder, IMAPFolder ifolder)
| 3148 | } |
| 3149 | |
| 3150 | private static void onSubscribeFolder(Context context, JSONArray jargs, EntityFolder folder, IMAPFolder ifolder) |
| 3151 | throws JSONException, MessagingException { |
| 3152 | boolean subscribe = jargs.getBoolean(0); |
| 3153 | ifolder.setSubscribed(subscribe); |
| 3154 | |
| 3155 | DB db = DB.getInstance(context); |
| 3156 | db.folder().setFolderSubscribed(folder.id, subscribe); |
| 3157 | |
| 3158 | Log.i(folder.name + " subscribed=" + subscribe); |
| 3159 | } |
| 3160 | |
| 3161 | private static void onPurgeFolder(Context context, JSONArray jargs, EntityAccount account, EntityFolder folder, IMAPFolder ifolder) throws MessagingException { |
| 3162 | // Delete all messages from folder |
no test coverage detected