Mail Template 8.5.1: Folder created by agent is only visible in the navigation after reopening mailbox

Hi,

we are using a customized mail template 8.5.1 which features an agent triggered by incoming mail, who sents an automatic reply for certain specific mails and puts the incoming mail in a specified folder.

The folder feature can be enabled via an addon dialog page in the calendar profile.

When the feature is enabled, the script code running in the Queryclose event of the calendar profile creates the folder via a call to database.EnableFolder (MyNewFolderName).

Alternately, I tried the document.PutInFolder () function in the mail agent.

In both cases, the folder is created correctly and the sorted out mail is routed there…

BUT: The folder is not visible in the outline in the lefthand navigation until the mail database is closed and reopened.

I tried a call to

notesUIworkspace.OutlineReload (“MailOutline”)

but to no avail.

Has anoybody any hint, how I can make the folder visible in the navigation immediately after creation?

Many thanks in advance for your Help…

Greetings

Andreas Ohlendorf

Subject: You’re not alone

I’ve wanted a solution to that same issue for years but have never found one.