nsMsgViewCommandType 编辑

The nsMsgViewCommandType interface contains constants used for commands in Thunderbird. For example to mark a message read, you would call:

 // assuming gDBView is a global nsIMsgDBView
 gDBView.doCommand(Components.interfaces.nsMsgViewCommandType.markMessagesRead);


mailnews/base/public/nsIMsgDBView.idlScriptable Please add a summary to this article.   Last changed in Gecko 1.9 (Firefox 3)

Constants

NameValueDescription
markMessagesRead0Marks the selected messages as read.
markMessagesUnread1Mark the selected messages as unread
toggleMessageRead2Toggle the read flag of the selected messages
flagMessages3Flag the selected messages.
unflagMessages4Unflag the selected messages.
toggleThreadWatched6Toggle the watched state of the selected thread.
deleteMsg7Move the selected message to the accounts trash.
deleteNoTrash8Delete the selected message.
markThreadRead9Mark all messages in a thread as read.
markAllRead10Mark all messages currently shown as read
expandAll11Expand all threads.
collapseAll12Collapse all threads.
copyMessages13Copy the selected messages. Use with nsIMsgDBView.doCommandWithFolder() to select the destination folder.
moveMessages14Move the selected messages. Use with nsIMsgDBView.doCommandWithFolder() to select the destination folder.
selectAll15Select all messages.
downloadSelectedForOffline16Download the selected messages for offline.
downloadFlaggedForOffline17Download all flagged messages for offline.
selectThread18Select the entire thread.
selectFlagged19Select all flagged messages.
cmdRequiringMsgBody20Used with nsIMsgDBView.getCommandStatus() to determine if commands requiring the message body (i.e. reload or print preview) are available.
label021Attach a label to the selected messages.
label122Attach a label to the selected messages.
label223Attach a label to the selected messages.
label324Attach a label to the selected messages.
label425Attach a label to the selected messages.
label526Attach a label to the selected messages.
lastLabel26Attach a label to the selected messages.
junk27Mark the selected messages as junk.
unjunk28Mark the selected messages as not junk.
undeleteMsg29Undelete the selected messages.
applyFilters30Apply filters to the selected messages
runJunkControls31Run junk mail controls on the selected messages.
deleteJunk32Delete all junk messages.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:76 次

字数:4974

最后编辑:7年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文