The data is stored inside the PR_EXTENDED_RULE_CONDITION
binary property - take a look at the rule with OutlookSpy - go to the Inbox folder, click IMAPIFolder button, find the rule hidden message on the "Associated Contents" tab, open the message. Select the PR_EXTENDED_RULE_CONDITION property - OutlookSpy will parse it and display its data. You can also take a look at the IMAPIFolder | PR_RULES_TABLE tab.
You can either parse that property, or use Redemption - it exposes the RDOJunkEmailOptions object:
set Session = CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
set JunkOptions = Session.JunkEmailOptions
for each vAddress in JunkOptions.TrustedSenders
Debug.Print vAddress
next
In case of an Exchange mailbox, here is how the rule looks like:
rt : RES_AND
cRes : 2
lpRes :
rt : RES_OR
cRes : 2
lpRes :
rt : RES_OR
cRes : 1
lpRes :
rt : RES_CONTENT
resContent :
ulFuzzyLevel : FL_FULLSTRING FL_IGNORECASE
ulPropTag : PR_SENDER_EMAIL_ADDRESS_W (0x0C1F001F)
lpProp :
ulPropTag : PR_SENDER_EMAIL_ADDRESS_W (0x0C1F001F)
Value : [email protected]
rt : RES_AND
cRes : 2
lpRes :
rt : RES_OR
cRes : 2
lpRes :
rt : RES_AND
cRes : 2
lpRes :
rt : RES_EXIST
res.resExist :
ulPropTag : PR_CONTENT_FILTER_SCL (0x40760003)
rt : RES_PROPERTY
res.resProperty :
relop : RELOP_GT
ulPropTag : PR_CONTENT_FILTER_SCL (0x40760003)
lpProp :
ulPropTag : PR_CONTENT_FILTER_SCL (0x40760003)
Value : -1
rt : RES_OR
cRes : 0
lpRes :
rt : RES_NOT
res.resNot :
lpRes :
rt : RES_OR
cRes : 2
lpRes :
rt : RES_OR
cRes : 1
lpRes :
rt : RES_CONTENT
resContent :
ulFuzzyLevel : FL_SUBSTRING FL_IGNORECASE
ulPropTag : PR_SENDER_EMAIL_ADDRESS_W (0x0C1F001F)
lpProp :
ulPropTag : PR_SENDER_EMAIL_ADDRESS_W (0x0C1F001F)
Value : @safe.sender.domain.com
rt : RES_SUBRESTRICTION
resSub :
ulSubObject : PR_MESSAGE_RECIPIENTS
lpRes : rt : RES_OR
cRes : 0
lpRes :
rt : RES_NOT
res.resNot :
lpRes :
rt : RES_OR
cRes : 3
lpRes :
rt : RES_OR
cRes : 5
lpRes :
rt : RES_CONTENT
resContent :
ulFuzzyLevel : FL_FULLSTRING FL_IGNORECASE
ulPropTag : PR_SENDER_EMAIL_ADDRESS_W (0x0C1F001F)
lpProp :
ulPropTag : PR_SENDER_EMAIL_ADDRESS_W (0x0C1F001F)
Value : [email protected]
rt : RES_CONTENT
resContent :
ulFuzzyLevel : FL_FULLSTRING FL_IGNORECASE
ulPropTag : PR_SENDER_EMAIL_ADDRESS_W (0x0C1F001F)
lpProp :
ulPropTag : PR_SENDER_EMAIL_ADDRESS_W (0x0C1F001F)
Value : [email protected]
rt : RES_CONTENT
resContent :
ulFuzzyLevel : FL_FULLSTRING FL_IGNORECASE
ulPropTag : PR_SENDER_EMAIL_ADDRESS_W (0x0C1F001F)
lpProp :
ulPropTag : PR_SENDER_EMAIL_ADDRESS_W (0x0C1F001F)
Value : [email protected]
rt : RES_CONTENT
resContent :
ulFuzzyLevel : FL_FULLSTRING FL_IGNORECASE
ulPropTag : PR_SENDER_EMAIL_ADDRESS_W (0x0C1F001F)
lpProp :
ulPropTag : PR_SENDER_EMAIL_ADDRESS_W (0x0C1F001F)
Value : [email protected]
rt : RES_CONTENT
resContent :
ulFuzzyLevel : FL_FULLSTRING FL_IGNORECASE
ulPropTag : PR_SENDER_EMAIL_ADDRESS_W (0x0C1F001F)
lpProp :
ulPropTag : PR_SENDER_EMAIL_ADDRESS_W (0x0C1F001F)
Value : [email protected]
rt : RES_SUBRESTRICTION
resSub :
ulSubObject : PR_MESSAGE_RECIPIENTS
lpRes : rt : RES_OR
cRes : 0
lpRes :
rt : RES_OR
cRes : 0
lpRes :