Hallo Forum,
was kann hier falsch sein:
Sub Click(Source As Button)
Dim session As New NotesSession
Dim workspace As New NotesUIWorkspace
Dim db As NotesDatabase
Dim collection As NotesDocumentCollection
Dim doc As NotesDocument
Dim uidoc As NotesUIDocument
Dim docCurrent As NotesDocument
Dim rtitem As NotesRichTextItem
Dim Mailserver As String
Dim Mailbox As String
Dim Mailview As String
Dim ID As String
*
*
*
Set db=session.CurrentDatabase
Set uidoc = workspace.currentdocument
ID=uidoc.FieldGetText("ID_Owner")
Mailserver="MAIL.COM/SRV/CCN"
Mailbox="MAIL\ALL" & ID & ".NSF"
Mailview="All by Date"
Set collection = workspace.PickListCollection(1, True, Mailserver,Mailbox,Mailview,"Mail Selection","Please select a document.")
Call collection.PutAllInFolder( "MailFolder",True)
End Sub
Die Collection ist nicht leer, dennoch wird nichts in den Folder gepackt.
Alexis