mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 09:02:45 +08:00
Only set flag \Deleted when Trash is set to "do not use"
This commit is contained in:
parent
50e30dbb6e
commit
b70860c903
2 changed files with 10 additions and 3 deletions
|
@ -404,8 +404,11 @@ export class MailMessageList extends AbstractViewRight {
|
|||
|
||||
// User setting hideDeleted || immediatelyMoveToTrash ??
|
||||
deleteCommand() {
|
||||
// moveMessagesToFolderType(FolderType.Trash);
|
||||
if (UNUSED_OPTION_VALUE === FolderUserStore.trashFolder() || '' === FolderUserStore.trashFolder()) {
|
||||
/**
|
||||
* When FolderUserStore.trashFolder is set to "Do not use",
|
||||
* flag as \Deleted for removal by later EXPUNGE
|
||||
*/
|
||||
if (UNUSED_OPTION_VALUE === FolderUserStore.trashFolder()) {
|
||||
listAction(
|
||||
FolderUserStore.currentFolderFullName(),
|
||||
MessageSetAction.SetDeleted,
|
||||
|
|
|
@ -105,7 +105,11 @@ export class MailMessageView extends AbstractViewRight {
|
|||
createCommand(() => setAction(action), this.messageVisible),
|
||||
createCommandDeleteHelper = () =>
|
||||
createCommand(() => {
|
||||
if (UNUSED_OPTION_VALUE === FolderUserStore.trashFolder() || '' === FolderUserStore.trashFolder()) {
|
||||
/**
|
||||
* When FolderUserStore.trashFolder is set to "Do not use",
|
||||
* flag as \Deleted for removal by later EXPUNGE
|
||||
*/
|
||||
if (UNUSED_OPTION_VALUE === FolderUserStore.trashFolder()) {
|
||||
setAction(MessageSetAction.SetDeleted);
|
||||
} else {
|
||||
const message = currentMessage();
|
||||
|
|
Loading…
Reference in a new issue