Changeset 85cfdc


Ignore:
Timestamp:
Nov 25, 2008, 5:50:19 PM (12 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
612fd5
Parents:
c8bcb4
Message:

if Sent folder is Inbox reply didn't worked. Fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/vI_smartIdentity.js

    rc8bcb4 r85cfdc  
    264264
    265265        vI_notificationBar.dump("## vI_smartIdentity: Reply()\n");
    266         if (hdr && (hdr.folder.flags & 0x0200)) {   // MSG_FOLDER_FLAG_SENTMAIL
    267             vI_notificationBar.dump("## vI_smartIdentity: reply from Sent folder, using SmartDraft. \n");
    268             vI_smartIdentity.ReplyOnSent(hdr);
    269             return;
    270         }
    271                
     266       
     267        const MSG_FOLDER_FLAG_INBOX = 0x1000
     268        const MSG_FOLDER_FLAG_SENTMAIL = 0x0200;
     269
     270        if (hdr && (hdr.folder.flags & MSG_FOLDER_FLAG_SENTMAIL)) {
     271            vI_notificationBar.dump("## vI_smartIdentity: reply from Sent folder.");
     272            if (hdr.folder.flags & MSG_FOLDER_FLAG_INBOX)
     273                vI_notificationBar.dump(" Folder is INBOX, assuming Reply-Case. \n");
     274            else {
     275                vI_notificationBar.dump(" Using SmartDraft. \n");
     276                vI_smartIdentity.ReplyOnSent(hdr);
     277                return;
     278            }
     279        }
     280       
    272281        var storageIdentities = new identityCollection();
    273282        vI_storage.getVIdentityFromAllRecipients(storageIdentities);
Note: See TracChangeset for help on using the changeset viewer.