I want to be able to delete recent contacts via policy

I’m sorry, but Recent Contacts is causing our users loads of problems.

Why on earth is Recent Contacts (default) selected prior the Directory Address in the address type ahead? All kinds of junk addresses is added in Recent Contacts so how can that be a primary source of information compared with the Domino Directory???

What has happened now is that a temporary forwarding of a users e-mail has been automatically added to every users Recent Contacs with the forwarded users name and the forwarding address.

When the forwarding was removed in the directory all e-mails to this person is still sent to the old forwarding address.

My question is; How do i fix this? Am i missing out on something?

All suggestions is appreciated.

Kindest regads

Rasmus Spendrup

Subject: Recent contacts

Well, you can’t delete them by policy, if the user has recent contacts set up they’ll need to delete them themselves - or you could send people an email with a button to delete the contacts maybe

To disable the adding of recent contacts in the future via policy you need to add the ini parameter DisableDPABProcessing=1. To do this, see this technote

http://www-01.ibm.com/support/docview.wss?rs=463&uid=swg21196837

Subject: Thank you, yes i’m aware of the possibility to avoid future problems.

…but the problem is the situation we have now. How do i clean the users Recent Contacts remotely? It’s to many to clean manually.

Sending a e-mail with a button that sets the notes.ini parameter you suggested and cleans the PAB Recent Contacts would be a good enough solution.

Thank you for that idéa. Now i just need some help with the code. Someone who know where to start?

Thank you for your rapid response!

Subject: button code

I’m not suggesting setting the ini parameter via the button - use a policy for that if you’re using policies (although if you’re not then it’s OK to set the parameter via a button)

This is rough, but the button would be somewhere along the lines of

dim nab as notesdatabase

set nab = new notesdatabase(“”, “names.nsf”)

dim view as notesview

set view = nab.getview(“(Recent Contacts)”)

dim vecol as notesviewentrycollection

set vecol = view.allentries

call vecol.removeall(true)

dim s as new notessession

call s.setenvironmentvar(“DisableDPABProcessing”, “1”)

This is dependant on everyone’s personal address book being called names.nsf of course, but this is the default.

As I say, I haven’t tested this at all so try and test thouroughly

Subject: Thank you all!

The code worked, i created a agent with the code you suggested and it works perfectly!

Thank you!

Rasmus

Subject: In 852 CD2, there is a right click delete in the typeahead itself to delete the unwanted one