Don't flag as forwarded if no reply_type is returned
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 5 Jun 2009 20:40:41 +0000 (14:40 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 5 Jun 2009 21:15:28 +0000 (15:15 -0600)
imp/js/src/compose-dimp.js

index 5e29f86..4590d47 100644 (file)
@@ -236,7 +236,9 @@ var DimpCompose = {
             case 'send_message':
                 this.button_pressed = false;
                 if (DIMP.baseWindow) {
-                    DIMP.baseWindow.DimpBase.flag(d.reply_type == 'reply' ? '\\answered' : '$forwarded', true, { index: d.index, mailbox: d.reply_folder, noserver: true });
+                    if (d.reply_type) {
+                        DIMP.baseWindow.DimpBase.flag(d.reply_type == 'reply' ? '\\answered' : '$forwarded', true, { index: d.index, mailbox: d.reply_folder, noserver: true });
+                    }
 
                     if (d.folder) {
                         DIMP.baseWindow.DimpBase.createFolder(d.folder);