Hi,

I'm trying to use MAPI to create a clone of an email in my IMAP account.
I can create the email with the headers and body, and I can reproduce a
simalar MAPI Message Id (PR_MESSAGE_DELIVERY_ID). My email appears on my
pocketoulook Inbox folder but when I do an IMAP synchronization, my
email is marked as "Download" after the synchronization finish.
So I wonder what I'm doing wrong, I think that I forgotten some flags or
some status when creating the email with MAPI.

Does someone know what I missed or I forgot during the email creation
with MAPI ?

Best regards.
Phil

Re: Create mail with MAPI by Peter

Peter
Thu May 08 03:58:20 CDT 2008

Did you call IMessage::Submit on the message? If so it should be moved to
the Outbox and there (as long as it is unread) it should be sent when you
synchronise.

Peter

--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility

"philg" <philg@noemail.noemail> wrote in message
news:e8Elor5rIHA.1768@TK2MSFTNGP03.phx.gbl...
> Hi,
>
> I'm trying to use MAPI to create a clone of an email in my IMAP account.
> I can create the email with the headers and body, and I can reproduce a
> simalar MAPI Message Id (PR_MESSAGE_DELIVERY_ID). My email appears on my
> pocketoulook Inbox folder but when I do an IMAP synchronization, my email
> is marked as "Download" after the synchronization finish.
> So I wonder what I'm doing wrong, I think that I forgotten some flags or
> some status when creating the email with MAPI.
>
> Does someone know what I missed or I forgot during the email creation with
> MAPI ?
>
> Best regards.
> Phil


Re: Create mail with MAPI by philg

philg
Tue May 13 04:40:38 CDT 2008

No, I don't call IMessage::Submit and I found the property which I
missed when creating the email, it was the IMAP UID.

But now I have two new issues:

1. I created an email with a portion of the body part. Then if I tag the
email to download the rest of the body part (with the pocketoutlook
client), on the next IMAP synchronization the body part is not
downloaded and the email is always tagged to be downloaded.

2. I created an email with an attachment, the email contains only the
attachment headers. Then if I tag the email attachment to be downloaded
(with the pocketoutlook client), on the next IMAP synchronization the
attachment contents isn't downloaded and in the email the attachment is
always tagged as to be downloaded.

Maybe I missed another MAPI property or does pocketlook need specific
properties for the IMAP synchronization ?


Philippe.

Peter Foot a écrit :
> Did you call IMessage::Submit on the message? If so it should be moved
> to the Outbox and there (as long as it is unread) it should be sent when
> you synchronise.
>
> Peter
>

Re: Create mail with MAPI by James

James
Mon Jun 02 12:27:58 CDT 2008

Seems to me, anything in the outbox is sent. Peter said, if I understand,
you are cloning a message with Downloaded DNA... using SUBMIT, that dna is
replaced (message is placed into the Outbox folder and processed
acordingly ).

"philg" <philg@noemail.noemail> wrote in message
news:epwpl1NtIHA.4560@TK2MSFTNGP03.phx.gbl...
> No, I don't call IMessage::Submit and I found the property which I missed
> when creating the email, it was the IMAP UID.
>
> But now I have two new issues:
>
> 1. I created an email with a portion of the body part. Then if I tag the
> email to download the rest of the body part (with the pocketoutlook
> client), on the next IMAP synchronization the body part is not downloaded
> and the email is always tagged to be downloaded.
>
> 2. I created an email with an attachment, the email contains only the
> attachment headers. Then if I tag the email attachment to be downloaded
> (with the pocketoutlook client), on the next IMAP synchronization the
> attachment contents isn't downloaded and in the email the attachment is
> always tagged as to be downloaded.
>
> Maybe I missed another MAPI property or does pocketlook need specific
> properties for the IMAP synchronization ?
>
>
> Philippe.
>
> Peter Foot a écrit :
>> Did you call IMessage::Submit on the message? If so it should be moved to
>> the Outbox and there (as long as it is unread) it should be sent when you
>> synchronise.
>>
>> Peter
>>