Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Working of SSubRestriction restriction

14 views
Skip to first unread message

Huzaifa Kagazwala

unread,
Apr 19, 2010, 7:53:17 PM4/19/10
to
I am trying to apply a filter to ignore all mails sent to a specific
recipient on Inbox. For this I have applied a not restriction on
PR_MESSAGE_RECIPIENTS using SsubRestriction on two properties i.e.
PR_DISPLAY_NAME and PR_EMAIL_ADDRESS using content filters for sub
string search.
When this filter is applied the mail which just have the mentioned
recipient gets ignored however if the specified recipient is present
along with other recipients in the list then such mails are not
ignored.
For example mails sent to just “test user” are ignored but if a mail
has two recipients i.e. “test user” and “second user”. Such mails are
not ignored.
If this the expected way the filter should work or is there something
I am missing. The filter I have applied looks similar to this.

lpRes->rt = RES_SUBRESTRICTION =
lpRes->res.resSub.ulSubObject = 0x0E12000D (PT_OBJECT):
PR_MESSAGE_RECIPIENTS, PidTagMessageRecipients, ptagMessageRecipients
lpRes->res.resSub.lpRes = 0x03BA5E98
lpRes->rt = RES_NOT =
lpRes->res.resNot.ulReserved = 0x00000000
lpRes->res.resNot.lpRes = 0x03BA5EB8
lpRes->rt = RES_AND =
lpRes->res.resAnd.cRes = 0x00000002
lpRes->res.resAnd.lpRes[0x00000000] = 0x03BC7140
lpRes->rt = RES_CONTENT =
lpRes->res.resContent.ulFuzzyLevel = FL_IGNORECASE | FL_SUBSTRING =
0x00010001
lpRes->res.resContent.ulPropTag = 0x3003001E (PT_STRING8):
PR_EMAIL_ADDRESS, PR_EMAIL_ADDRESS_A: (PR_EMAIL_ADDRESS_W,
PidTagEmailAddress)
lpRes->res.resContent.lpProp->ulPropTag = 0x3003001E (PT_STRING8):
PR_EMAIL_ADDRESS, PR_EMAIL_ADDRESS_A: (PR_EMAIL_ADDRESS_W,
PidTagEmailAddress)
lpRes->res.resContent.lpProp->Value = huzaifa
Alt: cb: 7 lpb: 68757A61696661
lpRes->res.resAnd.lpRes[0x00000001] = 0x03BC7150
lpRes->rt = RES_CONTENT =
lpRes->res.resContent.ulFuzzyLevel = FL_IGNORECASE | FL_SUBSTRING =
0x00010001
lpRes->res.resContent.ulPropTag = 0x3001001E (PT_STRING8):
PR_DISPLAY_NAME, PR_DISPLAY_NAME_A, ptagDisplayName:
(PR_DISPLAY_NAME_W, PidTagDisplayName)
lpRes->res.resContent.lpProp->ulPropTag = 0x3001001E (PT_STRING8):
PR_DISPLAY_NAME, PR_DISPLAY_NAME_A, ptagDisplayName:
(PR_DISPLAY_NAME_W, PidTagDisplayName)
lpRes->res.resContent.lpProp->Value = huzaifa
Alt: cb: 7 lpb: 68757A61696661

0 new messages