Solved

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

Posted on 2004-04-12
4
249 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
Comment Utility
The Calendar profile of the mail db has the correct username.

~Hemanth
0
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

771 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

10 Experts available now in Live!

Get 1:1 Help Now