| | |
| | | // move selected messages to the specified mailbox |
| | | this.move_messages = function(mbox) |
| | | { |
| | | // exit if no mailbox specified or if selection is empty |
| | | var selection = this.message_list.get_selection(); |
| | | if (!mbox || !(selection.length || this.env.uid) || mbox==this.env.mailbox) |
| | | // exit if current or no mailbox specified or if selection is empty |
| | | if (!mbox || !this.env.uid || mbox==this.env.mailbox) |
| | | { |
| | | if (!this.message_list || !this.message_list.get_selection().length) |
| | | return; |
| | | } |
| | | |
| | | var a_uids = new Array(); |
| | | |
| | |
| | | this.delete_messages = function() |
| | | { |
| | | // exit if no mailbox specified or if selection is empty |
| | | var selection = this.message_list.get_selection(); |
| | | if (!(selection.length || this.env.uid)) |
| | | if (!this.env.uid) |
| | | { |
| | | if (!this.message_list || !this.message_list.get_selection().length) |
| | | return; |
| | | } |
| | | |
| | | // if there is a trash mailbox defined and we're not currently in it: |
| | | if (this.env.trash_mailbox && String(this.env.mailbox).toLowerCase()!=String(this.env.trash_mailbox).toLowerCase()) |