Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2004-04-12
4
Medium Priority
?
260 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 1500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

618 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