diff options
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js index 7162795fe..f0065acf5 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -223,6 +223,16 @@ function rcube_webmail() this.gui_objects.folderlist = this.gui_objects.mailboxlist; this.http_request('getunread', ''); } + + // ask user to send MDN + if (this.env.mdn_request && this.env.uid) + { + var mdnurl = '_uid='+this.env.uid+'&_mbox='+urlencode(this.env.mailbox); + if (confirm(this.get_label('mdnrequest'))) + this.http_post('sendmdn', mdnurl); + else + this.http_post('mark', mdnurl+'&_flag=mdnsent'); + } break; |