|
|
@ -3042,6 +3042,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
folder = db.folder().getFolder(message.folder);
|
|
|
|
folder = db.folder().getFolder(message.folder);
|
|
|
|
if (folder == null)
|
|
|
|
if (folder == null)
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
|
|
|
|
if (folder.read_only)
|
|
|
|
|
|
|
|
result.read_only = true;
|
|
|
|
folders.put(folder.id, folder);
|
|
|
|
folders.put(folder.id, folder);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -3213,6 +3215,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
popupMenu.getMenu().add(Menu.NONE, R.string.title_raw_send, order++, R.string.title_raw_send)
|
|
|
|
popupMenu.getMenu().add(Menu.NONE, R.string.title_raw_send, order++, R.string.title_raw_send)
|
|
|
|
.setIcon(R.drawable.twotone_attachment_24);
|
|
|
|
.setIcon(R.drawable.twotone_attachment_24);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!result.read_only) {
|
|
|
|
if (result.hasInbox && !result.isInbox) // not is inbox
|
|
|
|
if (result.hasInbox && !result.isInbox) // not is inbox
|
|
|
|
popupMenu.getMenu().add(Menu.FIRST, R.string.title_folder_inbox, order++, R.string.title_folder_inbox)
|
|
|
|
popupMenu.getMenu().add(Menu.FIRST, R.string.title_folder_inbox, order++, R.string.title_folder_inbox)
|
|
|
|
.setIcon(R.drawable.twotone_move_to_inbox_24);
|
|
|
|
.setIcon(R.drawable.twotone_move_to_inbox_24);
|
|
|
@ -3250,6 +3253,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
if (result.copyto != null)
|
|
|
|
if (result.copyto != null)
|
|
|
|
popupMenu.getMenu().add(Menu.FIRST, R.string.title_copy_to, order++, R.string.title_copy_to)
|
|
|
|
popupMenu.getMenu().add(Menu.FIRST, R.string.title_copy_to, order++, R.string.title_copy_to)
|
|
|
|
.setIcon(R.drawable.twotone_file_copy_24);
|
|
|
|
.setIcon(R.drawable.twotone_file_copy_24);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
popupMenu.insertIcons(context);
|
|
|
|
popupMenu.insertIcons(context);
|
|
|
|
|
|
|
|
|
|
|
@ -8824,6 +8828,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
boolean hasImap;
|
|
|
|
boolean hasImap;
|
|
|
|
boolean hasPop;
|
|
|
|
boolean hasPop;
|
|
|
|
Boolean leave_deleted;
|
|
|
|
Boolean leave_deleted;
|
|
|
|
|
|
|
|
boolean read_only;
|
|
|
|
List<Long> folders;
|
|
|
|
List<Long> folders;
|
|
|
|
List<EntityAccount> accounts;
|
|
|
|
List<EntityAccount> accounts;
|
|
|
|
EntityAccount copyto;
|
|
|
|
EntityAccount copyto;
|
|
|
|