#6769
Support 1a
Participant

You actually use a filter to perform a find. Here’s a simple example:

dim iFilter
 dim oMessages
 
 iFilter = "(MAIL) AND (SUBJECT CONTAINS ""test"")"
 set oMessages = groupwise.account.mailbox.messages.find(iFilter)
 msgbox oMessages.count
 
 set oMessages = nothing

Examples of other filter syntaxes include:

(SUBJECT CONTAINS "Internet") 
(AUTHOR MATCHES "Ralph Spoilsport") 
(MESSAGE BEGINSWITH "Now Hear This") 
(MESSAGE CONTAINS CASE ("Inter*" OR "Intra*") AND ("Test" .. "Plan")) 
(FROM MATCHES <MY_BOSS, STRING> 
(TASK) 
(CREATE_DATE >= YESTERDAY AND CREATE_DATE <= TODAY) 
(FROM CONTAINS "TJEFFERSON" OR FROM CONTAINS "JADAMS") AND (MESSAGE BEGINSWITH "When in the course" AND CREATE_DATE = 1776/7/4) 
(DUEEND_DATE <= TOMORROW) 
(START_DATE >= 2002/2/5 AT 8:00:00) 
(CREATE_DATE >= THIS_YEAR 31) 
(<BIRTHDAY, DATE> = THIS_MONTH) 
(SIZE < 12000) 
(NUMBER_ACCEPTED = TOTAL_RECIPIENTS) 
(<TOTAL_EMPLOYEES, NUMERIC> > 50) 
(PRIORITY = HIGH) 
(ATTACHMENT_TYPE = OLE) 
(BOX_TYPE = INCOMING) 
(APPOINTMENT AND NOT ACCEPTED) 
(MAIL OR TASK) AND (NOT HIDDEN) 

See the Novell Object API documentation topic on filters for more information

Advansys Support