I want to use the RDOJunkEmailOptions object to extract the list of blocked senders for each account, process it externally, and rebuild the list in Outlook. My extraction and external processing are working fine, but when ready to reimport the lists I can't find a way to remove the existing lists. Is there a method available to delete blocked senders either en masse or one-by-one?
I have tried
oJunkOpt.BlockedSenders.Clear
For lCtr = oJunkOpt.BlockedSenders.Count To 1 Step -1
oJunkOpt.BlockedSenders.Remove (lCtr)
Next lCtr
For lCtr = oJunkOpt.BlockedSenders.Count To 1 Step -1
oJunkOpt.BlockedSenders.Delete (lCtr)
Next lCtr
and a couple of other usual method names.
Don't forget to call Save: