Defined in comm-central/ mailnews/ base/ search/ public/ nsMsgSearchCore.idl
146 typedef long nsMsgSearchOpValue;
147
148 [scriptable, uuid(9160b196-6fcb-4eba-aaaf-6c806c4ee420)]
149 interface nsMsgSearchOp {
150 const nsMsgSearchOpValue Contains = 0; /* for text attributes */
151 const nsMsgSearchOpValue DoesntContain = 1;
152 const nsMsgSearchOpValue Is = 2; /* is and isn't also apply to some non-text attrs */
153 const nsMsgSearchOpValue Isnt = 3;
154 const nsMsgSearchOpValue IsEmpty = 4;
155
156 const nsMsgSearchOpValue IsBefore = 5; /* for date attributes */
157 const nsMsgSearchOpValue IsAfter = 6;
158
159 const nsMsgSearchOpValue IsHigherThan = 7; /* for priority. Is also applies */
160 const nsMsgSearchOpValue IsLowerThan = 8;
161
162 const nsMsgSearchOpValue BeginsWith = 9;
163 const nsMsgSearchOpValue EndsWith = 10;
164
165 const nsMsgSearchOpValue SoundsLike = 11; /* for LDAP phoenetic matching */
166 const nsMsgSearchOpValue LdapDwim = 12; /* Do What I Mean for simple search */
167
168 const nsMsgSearchOpValue IsGreaterThan = 13;
169 const nsMsgSearchOpValue IsLessThan = 14;
170
171 const nsMsgSearchOpValue NameCompletion = 15; /* Name Completion operator...as the name implies =) */
172 const nsMsgSearchOpValue IsInAB = 16;
173 const nsMsgSearchOpValue IsntInAB = 17;
174 const nsMsgSearchOpValue IsntEmpty = 18; /* primarily for tags */
175 const nsMsgSearchOpValue Matches = 19; /* generic term for use by custom terms */
176 const nsMsgSearchOpValue DoesntMatch = 20; /* generic term for use by custom terms */
177 const nsMsgSearchOpValue kNumMsgSearchOperators = 21; /* must be last operator */
178 };