Hallo Bernhard,
jau danke, damit gehts.
hier das script, vieleicht braucht das ja mal jemand.
gruß
Reinhard
Sub Click(Source As Button)
Dim session As New NotesSession
Dim db As NotesDatabase
Dim db2 As NotesDatabase
Dim dc As NotesDocumentCollection
Dim doc As NotesDocument
Dim doc2 As NotesDocument
Dim view As NotesView
Dim collection As NotesViewEntryCollection
Dim entry As NotesViewEntry
Set db = New NotesDatabase("","mail.box")
Set view = db.GetView("Mail")
Set doc = view.GetFirstDocument()
Set db2 = New NotesDatabase("server","mail.box")
Set collection = view.AllEntries
Set entry = collection.GetFirstEntry()
While Not(doc Is Nothing)
Call doc.CopyToDatabase(db2)
Set doc = view.GetNextDocument(doc)
Wend
While Not(entry Is Nothing)
Set doc2 = entry.Document
doc2.Remove(True)
Set entry = collection.GetNextEntry(entry)
Wend
End Sub