Can anyone tell me where the mail file owner information is pulled from in 8.0.2. I’m refering to the text in the frameset MailFS, not the mail file owner in user preferences.
The issue is that for a single user it is showing as “Archive Firstname Lastname” whilst this is not an archive mail file.
I know in earlier releases this was computed text in the form “Switcher Form for Mail” but not anymore.
Thanks
Jim
Subject: it is pulled from the “Owner” field in Mail Preferences
Subject: Mail file owner name incorrect
Thanks, but I probably didn’t phrase my question very well. It’s not the incorrect mail file owner but incorrect database type. In the top left corner of the navigation the mail file is displaying “Archive User Name” whilst this is not the users archive mail file. Where is the “Archive” being pulled from? The database title in the properties dialog box is correct.
Subject: forwarded your question to development
Subject: archive profile
somehow and archive profile ($profile_…) got created in the mail file so it thinks it’s an archive db. delete this profile then close and reopen the db and it should fix it. Put this code in a button in a memo and run it to list the profiles in the db. take a look at them to determine which one needs to be removed. you can modify the code to delete the selected profile.
Sub Click(Source As Button)
Dim db As NotesDatabase
Dim ns As New NotesSession
Dim cnt As Integer
Dim plist () As String
Dim pcoll As NotesDocumentCollection
Dim doc As NotesDocument
Dim item As NotesItem
Set db = ns.CurrentDatabase
Set pcoll = db.GetProfileDocCollection
cnt = pcoll.Count
Set doc = pcoll.GetNthDocument(cnt)
Redim plist (1 To cnt ) As String
While Not doc Is Nothing
Set item = doc.GetFirstItem("$Name")
plist(cnt) = Item.Text
cnt = cnt -1
Set doc = pcoll.GetNthDocument(cnt)
Wend
Dim ws As New NotesUIWorkspace
ask$ = ws.Prompt(PROMPT_OKCANCELLIST, "List of profiles ...", "Choose a profile from the list", plist(1) , plist)
Msgbox ask$, 64, "You chose this profile..."
End Sub
Subject: Resolved
Thanks Paul. It was indeed the archive db profile. However I couldn’t delete it. I modified your code to to include:
docProfile = db.getDatabaseProfile(ask$)
docProfile.Remove(True)
and the profile is deleted (which I can see when I run it through debugger) but I think recreated when the database is opened.
I found another posting where the Archive profile field ArchiveDatabase is cleared
@SetProfileField(“Archive Database Profile”; “ArchiveDatabase”; “”)
and this resolved the issue.
Thanks again
Jim