Fix opening new compose message with to address
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 19 Oct 2010 19:00:59 +0000 (13:00 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 19 Oct 2010 19:01:10 +0000 (13:01 -0600)
imp/js/dimpcore.js

index 2b54bcc..419313c 100644 (file)
@@ -271,6 +271,8 @@ var DimpCore = {
         if (type.startsWith('forward') || !args || !args.uids) {
             if (type.startsWith('forward')) {
                 params.uids = this.toRangeString(this.selectionToRange(args.uids));
+            } else if (args.to) {
+                params.to = args.to;
             }
             this.popupWindow(this.addURLParam(DIMP.conf.URI_COMPOSE, params), 'compose' + new Date().getTime());
         } else {