Solved

How do I Find the Username of a Mailbox other than my own in LotusScript

Posted on 2004-04-12
4
253 Views
Last Modified: 2013-12-18
Hello,
  I have written a Public shared Agent that exports selected E-Mails for a given user to a file for Optical storage.  One of the fields used to identify the document in storage is the User's Name.  I currently get the Username from the property "CommonUserName" from the Current Session.  This works fine while users are archiving there own E-Mails, but it creates a problem when users Archive E-Mails on some else’s behalf.  When I run my script on another users Mailbox from my notes session the E-Mails are identified as being mine instead of the proper user.  This is a problem for the secretaries at my location for the do the Archiving for the Bosses.
  So ultimately what I'm asking is how do you determine in LotusScript the Username on a specific Mailbox, not on a Specific Session?
0
Comment
Question by:Alford-Miller
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 10806534
The Calendar profile of the mail db has the correct username.

~Hemanth
0
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 500 total points
ID: 10806578
Here is the function to obtain the owner name of the mail file

      Dim s As  New notessession
      Dim db As notesdatabase
      Dim doc As notesdocument
      Set db=s.currentdatabase
      Set doc=db.getprofiledocument("CalendarProfile")
      If  doc.owner(0)<>""  Then  
            OwnerName=doc.owner(0)
      End If

0
 

Author Comment

by:Alford-Miller
ID: 10807679
Hello HemanthaKumar,
  I tried your script and I noticed in the debugger that the db.Title was the same as the Mailbox Name.  I think I will use that instead unless there is a problem of reliablity.
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 10807717
That is not true if the user renames the title. I would say it is a risk on your part to rely on the piece of information that is easily changed by user.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question