| | |
| | | |
| | | // enable mail commands |
| | | this.enable_command('list', 'checkmail', 'compose', 'add-contact', 'search', 'reset-search', true); |
| | | |
| | | if (this.env.search_text != null && document.getElementById('quicksearchbox') != null) |
| | | document.getElementById('quicksearchbox').value = this.env.search_text; |
| | | |
| | | if (this.env.action=='show' || this.env.action=='preview') |
| | | { |
| | |
| | | case 'list': |
| | | if (this.task=='mail') |
| | | { |
| | | if (this.env.search_request<0 || (this.env.search_request && props != this.env.mailbox)) |
| | | if (this.env.search_request<0 || (props != '' && (this.env.search_request && props != this.env.mailbox))) |
| | | this.reset_qsearch(); |
| | | |
| | | this.list_mailbox(props); |
| | |
| | | if (safe) |
| | | add_url = '&_safe=1'; |
| | | |
| | | // also send search request to get the right messages |
| | | if (this.env.search_request) |
| | | add_url += '&_search='+this.env.search_request; |
| | | |
| | | if (id) |
| | | { |
| | | var url = '&_action='+action+'&_uid='+id+'&_mbox='+urlencode(this.env.mailbox)+add_url; |