Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how to get message submit time.

how to get message submit time.

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
14 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S santhosh padamatinti

    hi please tell me how to display the message submit time. I know the property that is PR_CLIENT_SUBMIT_TIME. at least give me links for displaying the message time. thanx in advance

    sampath-padamatinti

    M Offline
    M Offline
    manish patel
    wrote on last edited by
    #4

    Are you talking about mail message time in MAPI?

    Manish Patel. B.E. - Information Technology.

    S 1 Reply Last reply
    0
    • M manish patel

      Are you talking about mail message time in MAPI?

      Manish Patel. B.E. - Information Technology.

      S Offline
      S Offline
      santhosh padamatinti
      wrote on last edited by
      #5

      yes, write now I able to get every property like cc,bcc etc except time. how it is possible.

      sampath-padamatinti

      M 1 Reply Last reply
      0
      • S santhosh padamatinti

        yes, write now I able to get every property like cc,bcc etc except time. how it is possible.

        sampath-padamatinti

        M Offline
        M Offline
        manish patel
        wrote on last edited by
        #6

        Which time are you talking about sent time or recieved time? Try to use PR_MESSAGE_DELIVERY_TIME. Is it what you want?

        Manish Patel. B.E. - Information Technology.

        S 1 Reply Last reply
        0
        • M manish patel

          Which time are you talking about sent time or recieved time? Try to use PR_MESSAGE_DELIVERY_TIME. Is it what you want?

          Manish Patel. B.E. - Information Technology.

          S Offline
          S Offline
          santhosh padamatinti
          wrote on last edited by
          #7

          sent time

          sampath-padamatinti

          M 1 Reply Last reply
          0
          • S santhosh padamatinti

            sent time

            sampath-padamatinti

            M Offline
            M Offline
            manish patel
            wrote on last edited by
            #8

            Then PR_CLIENT_SUBMIT_TIME is right. For Recieved: PR_MESSAGE_DELIVERY_TIME

            Manish Patel. B.E. - Information Technology.

            S 1 Reply Last reply
            0
            • M manish patel

              Then PR_CLIENT_SUBMIT_TIME is right. For Recieved: PR_MESSAGE_DELIVERY_TIME

              Manish Patel. B.E. - Information Technology.

              S Offline
              S Offline
              santhosh padamatinti
              wrote on last edited by
              #9

              yaa, I know this property. and it returns the PT_SYSTIME. but the problem is i unable to display the time value. If you know plz explain indetail.

              sampath-padamatinti

              M 1 Reply Last reply
              0
              • S santhosh padamatinti

                yaa, I know this property. and it returns the PT_SYSTIME. but the problem is i unable to display the time value. If you know plz explain indetail.

                sampath-padamatinti

                M Offline
                M Offline
                manish patel
                wrote on last edited by
                #10

                You are getting value as SPropValue. Suppose its prop. Now use following code to convert FILETIME to SYSTEMTIME

                SYSTEMTIME sTm;
                FileTimeToSystemTime(&(prop.Value.ft), &sTm);

                Manish Patel. B.E. - Information Technology.

                S 1 Reply Last reply
                0
                • M manish patel

                  You are getting value as SPropValue. Suppose its prop. Now use following code to convert FILETIME to SYSTEMTIME

                  SYSTEMTIME sTm;
                  FileTimeToSystemTime(&(prop.Value.ft), &sTm);

                  Manish Patel. B.E. - Information Technology.

                  S Offline
                  S Offline
                  santhosh padamatinti
                  wrote on last edited by
                  #11

                  I wrote like this but it is not showing the value. SPropValue prop; prop.ulPropTag = PR_MESSAGE_DELIVERY_TIME; SYSTEMTIME sTm; FileTimeToSystemTime(&(prop.Value.ft), &sTm); printf("%d\n",sTm.wDay);

                  sampath-padamatinti

                  M S 2 Replies Last reply
                  0
                  • S santhosh padamatinti

                    I wrote like this but it is not showing the value. SPropValue prop; prop.ulPropTag = PR_MESSAGE_DELIVERY_TIME; SYSTEMTIME sTm; FileTimeToSystemTime(&(prop.Value.ft), &sTm); printf("%d\n",sTm.wDay);

                    sampath-padamatinti

                    M Offline
                    M Offline
                    manish patel
                    wrote on last edited by
                    #12

                    You are not retriving value from MAPI. Use this code:

                    LPSPropValue prop;
                    ULONG ulPropCount;
                    ULONG p[2]={ 1,PR_MESSAGE_DELIVERY_TIME };
                    HRESULT hr = m_pItem->GetProps((LPSPropTagArray)p, MAPI_CREATE, &ulPropCount, &prop);
                    SYSTEMTIME sTm;
                    FileTimeToSystemTime(&(prop->Value.ft), &sTm);
                    printf("%d\n",sTm.wDay);

                    where m_pItem is your message object. Hope this helps you. :laugh:

                    Manish Patel. B.E. - Information Technology.

                    1 Reply Last reply
                    0
                    • S santhosh padamatinti

                      I wrote like this but it is not showing the value. SPropValue prop; prop.ulPropTag = PR_MESSAGE_DELIVERY_TIME; SYSTEMTIME sTm; FileTimeToSystemTime(&(prop.Value.ft), &sTm); printf("%d\n",sTm.wDay);

                      sampath-padamatinti

                      S Offline
                      S Offline
                      santhosh padamatinti
                      wrote on last edited by
                      #13

                      Thanx ,so much I got now, I made a small change like follow. SYSTEMTIME sTm; FileTimeToSystemTime(&(pRows->aRow[i].lpProps[ePR_MESSAGE_DELIVERY_TIME].Value.ft), &sTm); printf("%d\n",sTm.wDay);

                      sampath-padamatinti

                      M 1 Reply Last reply
                      0
                      • S santhosh padamatinti

                        Thanx ,so much I got now, I made a small change like follow. SYSTEMTIME sTm; FileTimeToSystemTime(&(pRows->aRow[i].lpProps[ePR_MESSAGE_DELIVERY_TIME].Value.ft), &sTm); printf("%d\n",sTm.wDay);

                        sampath-padamatinti

                        M Offline
                        M Offline
                        manish patel
                        wrote on last edited by
                        #14

                        No matter. You are fetching values by rows. I have suggested that was for single property.

                        Manish Patel. B.E. - Information Technology.

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups