none
check sent mail status failed RRS feed

  • Question

  • Basic Environment

    server :exchange server

    client: outlook 2010

    user A send an email with text description (c34912a4-8318-464b-b50f-a0cda81f44bf) and vote option , then user B reply the vote , the problem is that , mail status not changed after user B voted

    before User B vote the email,

    R_ICON_INDEX PT_LONG -1

    UnifiedTracking PT_LONG 0

    after B vote the email it should be

    PR_ICON_INDEX PT_LONG 270

    UnifiedTracking PT_LONG 7 ,

    but it always 

    R_ICON_INDEX PT_LONG -1

    UnifiedTracking PT_LONG 0

    main code like the follows:

    void CheckMailStatus(){
    
    string rootFolderPath = _application.Session.DefaultStore.GetRootFolder().FolderPath;
                Outlook.NameSpace outlookNameSpace = _application.GetNamespace("MAPI");
                Outlook.MAPIFolder sentfolder = _application.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderSentMail) as Outlook.MAPIFolder;
    
    
       string filter = "@SQL=" + "\""
                        + "urn:schemas:httpmail:textdescription" + "\""
                        + " like '%{0}%'";
       string query = string.Format(filter, "c34912a4-8318-464b-b50f-a0cda81f44bf");
       var mailItem = sentfolder.Items.Find(query);
        if (mailItem is Outlook.MailItem)
                        {
                            var mail = (Outlook.MailItem)mailItem;
                            var status1 =                            mail.PropertyAccessor.GetProperty(“http://schemas.microsoft.com/mapi/proptag/0x10800003");
    
         var status2 =                            mail.PropertyAccessor.GetProperty(“http://schemas.microsoft.com/mapi/id/{0006200B-0000-0000-C000-000000000046}/88090003");
    }
    }
    }



    • Edited by life.live Saturday, January 23, 2016 7:20 AM
    Saturday, January 23, 2016 7:11 AM

Answers

  • Hi life,

    I made a test with your code, and I could reproduce your issue under Outlook 2013 and 2010. With restarting outlook, I could get 270 which is correct.

    Could you share us how you want deal with this value? Did you want to check whether there is someone replied this email or any other requirement about this value?

    Best Regards,

    Edward


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.



    Monday, January 25, 2016 8:03 AM