Re: copy of email



2. PR_SENTMAIL_ENTRYID is set on the mesage itself. OnWriteComplete will
work for sure.
3. You get thee complete message in OnWriteComplete. You can create your own
namaed prop tag using IMessage::GetIDsFromNames, then set it using
IMessage::SetProps or HrGetProp.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Reesh" <Reesh@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F3E83521-C1B9-4EE7-A82A-2B5FB69C455E@xxxxxxxxxxxxxxxx
2. Why not simply set the PR_SENTMAIL_ENTRYID

Where do I set the PR_SENTMAIL_ENTRYID?
(i mean in which event, OnCheck/OnSubmit/OnWrite...)

HrGetOneProp(???/*msgstore/msg/folder*/,PR_SENTMAIL_ENTRYID,&setsentmail);
HrSetOnePorp(myfolder,&setsentmail);

3. OnSubmit/OnWrite/OnWriteComplete/OnSubmit sequesnce fires only once
for
each outgoing message, but OnWrite/OnWriteComplete also fires for tehe
mesasge being forwarded/replied since Outlook updates icon and
PR_LAST_VERB_xxx properties.

How can I differentiate OnWrite and OnWriteComplete methods fired
for
updating "icons and PR_LAST_VERB_xxxx" or "outgoingmessage"?

I can get outgoing message always if it fired for updating "icon and
PR_LAST_VERB_xxx".

In Which method, I can get the complete message?

How can I get the info. abt outgoing e-mails are saved in sent items
folder or not?


Set your own named property when OnSubmit is called then check for that
property in OnWriteComplete to see if you have the eright message.

How can I set my own named property to copy to outgoing e-mails?


Thanks in advance.

Regards,
Reesh.


Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Reesh" <Reesh@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4966C501-D77C-4AA9-8527-35C5684F04BD@xxxxxxxxxxxxxxxx
Thank you for your response.

Q: How can I take a copy of outgoing e-mail in .msg format from outlook
using ece?
(i mean i have to take a copy of an outgoing e-mail into "xxx" mapi
folder
like sent items. but it's not sent items folder.)
Note: forwarded mails also.

OnSumbit and OnWrite are fires morethan one time for forwarded
messages.
How do I solve this problem?

Regards,
--
Reesh


"Dmitry Streblechenko" wrote:

I am not sure what what your question is... Are you trying to retrieve
the
sender properties when a message is being sent?
OnSubmit/OnWrite callbacks fire before the message is handed to a
spooler/transport provider, which sets the sender related properties.
The earliest you can access these properties is when the message is
moved
to
the Sent Items folder. You can set up and advise sink on tehe SEnt
Items
folder contacnts table to get notified when a new message is created
there.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Reesh" <Reesh@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C234B790-C527-4665-9B23-821E9D2DA56E@xxxxxxxxxxxxxxxx
I overridden OnWriteComplete method of IExchExtMessageEvents. I
created
new
empty message under "xxx" mapi folder then "CopyTo" ,"SaveChanges"
of
new
msg
and updated PR_MESSAGE_FLAGS property on new msg. I got Outgoing
mail
properties except sendermailaddress. How do I get a copy of outgoing
mail
in
Outlook using ece?

Thanks in advance.

Regards,
--
Reesh








.



Relevant Pages

  • Re: Auto suggest names in TO.. Outlook 2002
    ... the autocomplete cache file is called the NK2 file. ... from outgoing e-mails. ... It does not go to your contact folder for ... >I have switched from outlook express to outlook. ...
    (microsoft.public.outlook)
  • Re: Addres fields missing with cached Exchange mode
    ... No sender info is even supposed to be available when OnSubmitComplete or any ... OutlookSpy - Outlook, CDO ... therefore, the delay until OnWriteComplete. ... cached Exchange mode of Outlook 2003, ...
    (microsoft.public.win32.programmer.messaging)
  • Re: MailItem Save method corrupts TaskRequest item.
    ... You asked why I need to reopen the message via its Entry ID. ... code and avoid the Outlook problem saving task-related items. ... Dave ... > OnWriteComplete is called after all the properties are copied to IMessage ...
    (microsoft.public.win32.programmer.messaging)
  • Re: Capture sent e-mails using an Outlook Addin/Extension
    ... With help from Dmitry and others in this group I am doing something very ... only save a copy of a message in OnWriteComplete if it has this named ... What is the recommended way to capture all e-mails sent from Outlook ...
    (microsoft.public.win32.programmer.messaging)
  • Re: Cancelling a Task assignment on OnWriteComplete.
    ... embedded IMessage item from the attachment to the Task Request item during ... OnWriteComplete, a call to HrGetOneProp for PR_ENTRYID on this object ... > Outlook does modify the original task. ... >>> message and set my named property on it.The code appears to work. ...
    (microsoft.public.win32.programmer.messaging)