Outlook.Application oLk = neues Outlook.Application ();
_NameSpace olNS = oLk.GetNamespace („MAPI“);
_Folders oFolders = olNS.Folders;
MAPIFolder oFolder;
oFolder = oFolders [1];
MAPIFolder oFolderIn = oFolder.Folders [„NetixchangeIn“];
MAPIFolder oFolderOut = oFolder.Folders [„NetixchangeOut“];
MailItem oMailItem;
für (int I = oFolderIn.Items.Count; I >= 0; I--)
{
oMailItem = (MailItem) oFolderIn.Items [i];
oMailItem.Move (oFolderOut);
}
|