Bug 1802815 - msgHdr OrFlags -> orFlags and AndFlags -> andFlags. r=benc
Differential Revision: https://phabricator.services.mozilla.com/D163292 --HG-- extra : rebase_source : 6938a16a2d9e5fc002c92161f5fd78444cb7825a extra : amend_source : eb2f777941f3e821e828093b6cd668ffd1e71ce0
This commit is contained in:
Родитель
ad7a1ed567
Коммит
f218f23c6a
|
@ -226,7 +226,7 @@ var folderListener = {
|
|||
if (msgHdr) {
|
||||
var hdrs = hdrParser.headers;
|
||||
if (hdrs && hdrs.includes("X-attachment-size:")) {
|
||||
msgHdr.OrFlags(Ci.nsMsgMessageFlags.Attachment);
|
||||
msgHdr.orFlags(Ci.nsMsgMessageFlags.Attachment);
|
||||
}
|
||||
if (hdrs && hdrs.includes("X-image-size:")) {
|
||||
msgHdr.setStringProperty("imageSize", "1");
|
||||
|
|
|
@ -409,7 +409,7 @@ function checkAllowFeedMsg(test) {
|
|||
msgBodyStart + test.body + msgBodyEnd,
|
||||
folder
|
||||
);
|
||||
msgDbHdr.OrFlags(Ci.nsMsgMessageFlags.FeedMsg);
|
||||
msgDbHdr.orFlags(Ci.nsMsgMessageFlags.FeedMsg);
|
||||
|
||||
// select the newly created message
|
||||
let msgHdr = select_click_row(gMsgNo);
|
||||
|
|
|
@ -35,8 +35,8 @@ interface nsIMsgDBHdr : nsISupports
|
|||
|
||||
/* flag handling routines */
|
||||
attribute unsigned long flags;
|
||||
unsigned long OrFlags(in unsigned long flags);
|
||||
unsigned long AndFlags(in unsigned long flags);
|
||||
unsigned long orFlags(in unsigned long flags);
|
||||
unsigned long andFlags(in unsigned long flags);
|
||||
|
||||
/* various threading stuff */
|
||||
attribute nsMsgKey threadId;
|
||||
|
|
|
@ -331,7 +331,7 @@ FeedItem.prototype = {
|
|||
// char * cpp |string| as UTF-8 bytes. The source xml doc encoding is utf8.
|
||||
source = unescape(encodeURIComponent(source));
|
||||
let msgDBHdr = folder.addMessage(source);
|
||||
msgDBHdr.OrFlags(Ci.nsMsgMessageFlags.FeedMsg);
|
||||
msgDBHdr.orFlags(Ci.nsMsgMessageFlags.FeedMsg);
|
||||
msgFolder.gettingNewMessages = false;
|
||||
this.tagItem(msgDBHdr, this.keywords);
|
||||
},
|
||||
|
|
|
@ -281,7 +281,7 @@ class ImapService {
|
|||
}
|
||||
msgParser.FinishHeader();
|
||||
|
||||
newMsgHdr.OrFlags(Ci.nsMsgMessageFlags.Offline | Ci.nsMsgMessageFlags.Read);
|
||||
newMsgHdr.orFlags(Ci.nsMsgMessageFlags.Offline | Ci.nsMsgMessageFlags.Read);
|
||||
newMsgHdr.offlineMessageSize = content.length;
|
||||
db.addNewHdrToDB(newMsgHdr, true);
|
||||
dstFolder.setFlag(Ci.nsMsgFolderFlags.OfflineEvents);
|
||||
|
|
|
@ -145,7 +145,7 @@ class NntpNewsGroup {
|
|||
lines,
|
||||
] = parts;
|
||||
let msgHdr = this._db.createNewHdr(articleNumber);
|
||||
msgHdr.OrFlags(Ci.nsMsgMessageFlags.New);
|
||||
msgHdr.orFlags(Ci.nsMsgMessageFlags.New);
|
||||
msgHdr.subject = subject;
|
||||
msgHdr.author = from;
|
||||
msgHdr.date = new Date(date).valueOf() * 1000;
|
||||
|
@ -230,7 +230,7 @@ class NntpNewsGroup {
|
|||
break;
|
||||
case "subject":
|
||||
this._msgHdr.subject = value;
|
||||
this._msgHdr.OrFlags(Ci.nsMsgMessageFlags.New);
|
||||
this._msgHdr.orFlags(Ci.nsMsgMessageFlags.New);
|
||||
break;
|
||||
case "message-id":
|
||||
this._msgHdr.messageId = value;
|
||||
|
@ -335,10 +335,10 @@ class NntpNewsGroup {
|
|||
);
|
||||
break;
|
||||
case Ci.nsMsgFilterAction.KillSubthread:
|
||||
this._filteringHdr.OrFlags(Ci.nsMsgMessageFlags.Ignored);
|
||||
this._filteringHdr.orFlags(Ci.nsMsgMessageFlags.Ignored);
|
||||
break;
|
||||
case Ci.nsMsgFilterAction.WatchThread:
|
||||
this._filteringHdr.OrFlags(Ci.nsMsgMessageFlags.Watched);
|
||||
this._filteringHdr.orFlags(Ci.nsMsgMessageFlags.Watched);
|
||||
break;
|
||||
case Ci.nsMsgFilterAction.MarkFlagged:
|
||||
this._filteringHdr.markFlagged(true);
|
||||
|
|
Загрузка…
Ссылка в новой задаче