Outlook.Application-oLk = ny Outlook.Application ();
_NameSpaceolNS = oLk.GetNamespace (”MAPI”);
_FoldersoFolders = 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);
}
|