+ Reply to Thread
Results 1 to 3 of 3

Thread: Notes Newbie

  1. #1
    Guest.Visitor Guest

    Default Notes Newbie

    Probably the simplest way to do this would be to select all the documents from one mail database, copy them, and then paste them into the other mail database. Another approach would be to write an agent to read every document in one mail database and copy it to the other database.

  2. #2
    J.Panzenhagen Guest

    Default Notes Newbie

    Richard, Thanks for your response. I did end up creating an agent. Boy was that a long haul since I had never written in Lotus Script before. Below is the script in case anyone else should need it. It copys all of the mail documents and folders from one user's mail database to another database under a folder called /Migrated. I suppose this would work with any two databases, but I have not tried it. Thanks again, John Dim session As New NotesSession Dim DataName As String Dim Server As String Dim CurrentDB As NotesDatabase Dim CurrentDoc As NotesDocument Set CurrentDB = session.CurrentDatabase Dim SourceDB As NotesDatabase Dim SourceDoc As NotesDocument Dim SourceColl As NotesDocumentCollection Dim SourceVC As NotesViewEntryCollection Dim SourceVE As NotesViewEntry Dim FolderName As String 'Prompt for the database to copy Server = Inputbox$("Enter Server ID") DataName = Inputbox$("Enter Database Name") 'Get a handle to the source db Set SourceDB = New NotesDatabase(Server,DataName) Forall ViewName In SourceDB.Views If ViewName.IsFolder Then Set SourceVC = ViewName.AllEntries Set SourceVE=SourceVC.GetFirstEntry() While Not SourceVE Is Nothing If SourceVE.IsValid Then Set CurrentDoc = SourceVE.Document.CopyToDatabase(CurrentDB) FolderName="Migrated"&ViewName.Name Call CurrentDoc.PutInFolder( FolderName ,True ) End If Set SourceVE=SourceVC.GetNextEntry(SourceVE) Wend End If End Forall

  3. #3
    J.Panzenhagen Guest

    Default Notes Newbie

    I have what I believe to be a simple question. How do I combine two mail databases? This is the scenario. I have set up our users in the address book and established their mailboxes. I will then convert our existing mail systems (yes that is plural). The problem is that the conversion puts all of the data into different mail databases. I need to merge these databases; the users wouldn't be able to cope with two databases. Any ideas? John Panzenhagen

+ Reply to Thread

Similar Threads

  1. Subfile question from a newbie
    By Guest.Visitor in forum General
    Replies: 0
    Last Post: 08-01-2005, 12:14 PM
  2. Domino Newbie
    By R.Shaler in forum Collaboration & Messaging
    Replies: 2
    Last Post: 08-12-2002, 11:57 AM
  3. SQL Newbie question
    By Guest.Visitor in forum Programming
    Replies: 8
    Last Post: 04-06-2001, 06:14 AM
  4. C newbie
    By Guest.Visitor in forum Application Software
    Replies: 5
    Last Post: 10-22-2000, 08:49 PM
  5. Java Newbie
    By Guest.Visitor in forum Programming
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts