[Bug 425756] return receipt sent every time I enter the message for messages marked as read.

r=philringnalda


git-svn-id: svn://10.0.0.236/trunk@250312 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkmelin+mozilla%iki.fi
2008-04-16 15:55:22 +00:00
parent 00052693ed
commit d7e316218f

View File

@@ -2811,6 +2811,7 @@ function HandleMDNResponse(aUrl)
// After a msg is downloaded it's already marked READ at this point so we must check if
// the msg has a "Disposition-Notification-To" header and no MDN report has been sent yet.
const MSG_FLAG_MDN_REPORT_SENT = 0x800000;
var msgFlags = msgHdr.flags;
if ((msgFlags & MSG_FLAG_IMAP_DELETED) || (msgFlags & MSG_FLAG_MDN_REPORT_SENT))
return;
@@ -2828,7 +2829,6 @@ function HandleMDNResponse(aUrl)
// Reset mark msg MDN "Sent" and "Not Needed".
const MSG_FLAG_MDN_REPORT_NEEDED = 0x400000;
const MSG_FLAG_MDN_REPORT_SENT = 0x800000
msgHdr.flags = (msgFlags & ~MSG_FLAG_MDN_REPORT_NEEDED);
msgHdr.OrFlags(MSG_FLAG_MDN_REPORT_SENT);