Solved

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

Posted on 2004-04-12
4
250 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Lotus Notes in Windows 8 Appearence Issue 15 741
Fax server not receiving SMTP from Lotus Notes 6 346
Lotus notes email code 2 194
Lotus notes email code 2 119
For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

867 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now