nsMsgSearchAttrib 编辑

Defined in comm-central/ mailnews/ base/ search/ public/ nsMsgSearchCore.idl

typedef long nsMsgSearchAttribValue;

/**
 * Definitions of search attribute types. The numerical order
 * from here will also be used to determine the order that the
 * attributes display in the filter editor.
 */
[scriptable, uuid(a83ca7e8-4591-4111-8fb8-fd76ac73c866)]
interface nsMsgSearchAttrib {
    const nsMsgSearchAttribValue Custom = -2;  /* a custom term, see nsIMsgSearchCustomTerm */
    const nsMsgSearchAttribValue Default = -1;
    const nsMsgSearchAttribValue Subject = 0;  /* mail and news */
    const nsMsgSearchAttribValue Sender = 1;
    const nsMsgSearchAttribValue Body = 2;
    const nsMsgSearchAttribValue Date = 3;

    const nsMsgSearchAttribValue Priority = 4;      /* mail only */
    const nsMsgSearchAttribValue MsgStatus = 5;
    const nsMsgSearchAttribValue To = 6;
    const nsMsgSearchAttribValue CC = 7;
    const nsMsgSearchAttribValue ToOrCC = 8;
    const nsMsgSearchAttribValue AllAddresses = 9;

    const nsMsgSearchAttribValue Location = 10;          /* result list only */
     const nsMsgSearchAttribValue MessageKey = 11;        /* message result elems */
     const nsMsgSearchAttribValue AgeInDays = 12;
     const nsMsgSearchAttribValue FolderInfo = 13;        /* for "view thread context" from result */
     const nsMsgSearchAttribValue Size = 14;
     const nsMsgSearchAttribValue AnyText = 15;
     const nsMsgSearchAttribValue Keywords = 16; // keywords are the internal representation of tags.

     const nsMsgSearchAttribValue Name = 17;
     const nsMsgSearchAttribValue DisplayName = 18;
     const nsMsgSearchAttribValue Nickname = 19;
     const nsMsgSearchAttribValue ScreenName = 20;
     const nsMsgSearchAttribValue Email = 21;
     const nsMsgSearchAttribValue AdditionalEmail = 22;
     const nsMsgSearchAttribValue PhoneNumber = 23;
     const nsMsgSearchAttribValue WorkPhone = 24;
     const nsMsgSearchAttribValue HomePhone = 25;
     const nsMsgSearchAttribValue Fax = 26;
     const nsMsgSearchAttribValue Pager = 27;
     const nsMsgSearchAttribValue Mobile = 28;
     const nsMsgSearchAttribValue City = 29;
     const nsMsgSearchAttribValue Street = 30;
     const nsMsgSearchAttribValue Title = 31;
     const nsMsgSearchAttribValue Organization = 32;
     const nsMsgSearchAttribValue Department = 33;

     // 34 - 43, reserved for ab / LDAP;
     const nsMsgSearchAttribValue HasAttachmentStatus = 44;
     const nsMsgSearchAttribValue JunkStatus = 45;
     const nsMsgSearchAttribValue JunkPercent = 46;
     const nsMsgSearchAttribValue JunkScoreOrigin = 47;
     const nsMsgSearchAttribValue Label = 48; /* mail only...can search by label */
     const nsMsgSearchAttribValue HdrProperty = 49; // uses nsIMsgSearchTerm::hdrProperty
     const nsMsgSearchAttribValue FolderFlag = 50; // uses nsIMsgSearchTerm::status
     const nsMsgSearchAttribValue Uint32HdrProperty = 51; // uses nsIMsgSearchTerm::hdrProperty

     // 52 is for showing customize - in ui headers start from 53 onwards up until 99.

      /** OtherHeader MUST ALWAYS BE LAST attribute since
        * we can have an arbitrary # of these. The number can be changed,
        * however, because we never persist AttribValues as integers.
       */
     const nsMsgSearchAttribValue OtherHeader = 52;
     // must be last attribute
     const nsMsgSearchAttribValue kNumMsgSearchAttributes = 100;
   };

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

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

发布评论

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

词条统计

浏览:48 次

字数:4383

最后编辑:6年前

编辑次数:0 次

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