Unanswered Failed to put into "Sent items" folder

  • Wednesday, February 22, 2012 9:57 AM
     
     

    I used MAPI library to implement one mail client applicaiton. Recently , I have met one confusing question:

    1.User A replied the mail from user B in app.

    2.User B received the replied mail successfully by outlook.

    3.Unfortunately, user A discovered the sent mail did not be in outlook's 'send items' folder as expected.

    Who had same issue and experiences about fixing it?  Thanks in advance!

All Replies

  • Wednesday, February 22, 2012 2:20 PM
    Moderator
     
     
    Did user A use his own mailbox to receive and send the message and reply? What happened to the sent item, did it get placed elsewhere or was it deleted? Has this happened more than once?
     
    Does user A normally get sent items placed in his Sent Items folder?
     
    Assuming this is all in the same mailbox, does it make a difference if you set the SaveSentMessageFolder property on the reply item to the Sent Items folder?

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "JamesTJ" <=?utf-8?B?SmFtZXNUSg==?=> wrote in message news:e6c957d1-e5fb-4b39-b1df-b5d527193ef7...

    I used MAPI library to implement one mail client applicaiton. Recently , I have met one confusing question:

    1.User A replied the mail from user B in app.

    2.User B received the replied mail successfully by outlook.

    3.Unfortunately, user A discovered the sent mail did not be in outlook's 'send items' folder as expected.

    Who had same issue and experiences about fixing it?  Thanks in advance!


    Ken Slovak MVP - Outlook
  • Thursday, February 23, 2012 1:30 AM
     
     

    Hi Ken,

    Thanks for your feeback.

    1. User A used his own mailbox to receive and send.

    2.The sent item was missing because the user can not find it all folders in outlook.

    3.The issue had random happened several times on different emails , but the user is same one.

    By analysis, I have a little doubt on the SubmitMessage call. It may fail and return a positive number, e.g. MAPI_W_PARTIAL_COMPLETION ? But my colleagues and I never meet the case before and per MSDN, the SubmitMessage seems to only return S_OK and a negative number.

    Have you exeperienced on submitmessage failed and its returned code is one of the following. If yes, could you please give me more information about reproducing an fixing. Thanks.

    MAPI_W_NO_SERVICE 40203 262659
    MAPI_W_ERRORS_RETURNED 40380 263040
    MAPI_W_POSITION_CHANGED 40481 263297
    MAPI_W_APPROX_COUNT 40482 263298
    MAPI_W_CANCEL_MESSAGE 40580 263552
    MAPI_W_PARTIAL_COMPLETION 40680 263808
  • Monday, February 27, 2012 4:27 PM
    Moderator
     
     
    I've seen partial completion errors when multiple references are held on an item and aren't released. That's about it. Other than that I haven't seen those problems.
     
    Have you considered opening a support case on the problem?

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "JamesTJ" <=?utf-8?B?SmFtZXNUSg==?=> wrote in message news:75029ed9-25c3-40b6-867d-7cd8480c8dc8...

    Hi Ken,

    Thanks for your feeback.

    1. User A used his own mailbox to receive and send.

    2.The sent item was missing because the user can not find it all folders in outlook.

    3.The issue had random happened several times on different emails , but the user is same one.

    By analysis, I have a little doubt on the SubmitMessage call. It may fail and return a positive number, e.g. MAPI_W_PARTIAL_COMPLETION ? But my colleagues and I never meet the case before and per MSDN, the SubmitMessage seems to only return S_OK and a negative number.

    Have you exeperienced on submitmessage failed and its returned code is one of the following. If yes, could you please give me more information about reproducing an fixing. Thanks.

    MAPI_W_NO_SERVICE 40203 262659
    MAPI_W_ERRORS_RETURNED 40380 263040
    MAPI_W_POSITION_CHANGED 40481 263297
    MAPI_W_APPROX_COUNT 40482 263298
    MAPI_W_CANCEL_MESSAGE 40580 263552
    MAPI_W_PARTIAL_COMPLETION 40680 263808

    Ken Slovak MVP - Outlook
  • Monday, February 27, 2012 10:44 PM
    Answerer
     
     
    When you create the reply in your app, are you making sure to set PR_SENTMAIL_ENTRYID (http://msdn.microsoft.com/en-us/library/cc842257.aspx) to the folder you want the item to be moved to after submission? Conversely, are you making sure PR_DELETE_AFTER_SUBMIT (http://msdn.microsoft.com/en-us/library/cc842353.aspx) isn't set?
  • Tuesday, March 20, 2012 7:57 AM
     
     

    Found RCA: the original mail has one property named 'PR_DELETE_AFTER_SUBMIT' and its value is ture. Meanwhile, when copying property from message to new one, the property is not excluded.....

    Appreciate everyone's help.