Re: copy of email
- From: "Dmitry Streblechenko" <dmitry@xxxxxxxxxxx>
- Date: Tue, 23 May 2006 09:54:18 -0700
You can either save the old value of PR_SENTMAIL_ENTRYID, point it to your
own folder, do your processing in that folder after the message is sent,
then used the old (saved) value of PR_SENTMAIL_ENTRYID to move it to that
folder.
Or you can check a couple of named properties that are set when a user
select a non-default account, then use the IOlkAccountManager API to figure
out the name and e-mai address that Outlook will use. Or
IMAPSession::QueryIdentity if those properties are not present.
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Reesh" <Reesh@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D272948B-4D7B-401A-8559-E82EDC3C7ABE@xxxxxxxxxxxxxxxx
Sent Items folder couldn't take a copy of every outgoing email. becoz
"Save
copies of messages in sent items folder" is user's choice in
tools->options->preferences->email options.
I can take a copy of an email into mapi folder except sender properties.
Is there any other method to take a copy of an outgoing email?(other than
Sent Items folder)
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
in
Outlook using ece?
Thanks in advance.
Regards,
--
Reesh
.
- Follow-Ups:
- Re: copy of email
- From: Reesh
- Re: copy of email
- References:
- Re: copy of email
- From: Dmitry Streblechenko
- Re: copy of email
- Prev by Date: Re: copy of email
- Next by Date: Exchange : identifying ununsed mailboxes
- Previous by thread: Re: copy of email
- Next by thread: Re: copy of email
- Index(es):
Relevant Pages
|