How to move email to another folder after reading from MS outlook RRS feed

  • Question

  • User-1661416609 posted

    Hi All,

    I bit hurry to do this task please try help me,Actually Now iam reading Emails from MSOutlook ,that is working fine .i created one folder in MSOutlook.After reading mails immidiatly i want those mails to that perticuler folder and clears from inbox.

    please try to help and her is my code.

      Outlook.Application oOutlook = new Outlook.Application();
            Outlook.NameSpace oNs = oOutlook.GetNamespace("MAPI");
            Outlook.MAPIFolder inBox = oNs.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox);
            Outlook.Items inBoxItems = inBox.Items;
            Outlook.MailItem newEmail = null;
            inBoxItems = inBoxItems.Restrict("[Unread] = true");

            foreach (object collectionItem in inBoxItems)
                newEmail = collectionItem as Outlook.MailItem;
                if (newEmail != null)








    if (newEmail.Attachments.Count > 0)for (int i = 1; i <= newEmail.Attachments.Count; i++)@"C:\\IMPORT\\Processed\\" + newEmail.Attachments[i].FileName);


     PLease try to Help i am in urgent

    Tuesday, April 6, 2010 10:36 PM

All replies

  • User1994116125 posted

    neeyabba...!!! question lo clarity miss ayindira.... yenta hurryga unte matram question clearga adagava.

    First frame your mind and then post it.

    Tuesday, June 8, 2010 12:57 AM