Re: How to take a copy of incoming mail to Outlook?
- From: "Dkds.Naidu" <dkdsnaidu819@xxxxxxxxxxx>
- Date: Wed, 21 Sep 2005 05:56:01 -0700
Hi Eugene,
I solved this problem. Sorry for the last post. I integrated
IConverterSession interface into my application.
With regards,
--
DKDS.Naidu,
Programmer Analyst,
ITPL - Bangalore.
"Dkds.Naidu" wrote:
> Hi Eugene,
>
> I am trying to use IConverterSession interface. I am getting errors
> which are
>
> error C2065: 'IConverterSession' : undeclared identifier.
> error C2065: 'pIConverterSession' : undeclared identifier
>
> I created one guiddef.h file. I copied CLSID & IID's from msdn.
>
> rough code:
>
> /******************guiddef.h*************************/
>
> // {4e3a7680-b77a-11d0-9da5-00c04fd65685}
>
> DEFINE_GUID(CLSID_IConverterSession, 0x4e3a7680, 0xb77a, 0x11d0, 0x9d, 0xa5,
> 0x0, 0xc0, 0x4f, 0xd6, 0x56, 0x85);
>
>
> // {4b401570-b77b-11d0-9da5-00c04fd65685}
>
> DEFINE_GUID(IID_IConverterSession, 0x4b401570, 0xb77b, 0x11d0, 0x9d, 0xa5,
> 0x0, 0xc0, 0x4f, 0xd6, 0x56, 0x85);
>
> /*******************************************/
>
>
> /******************MyClass.cpp*************************/
>
> #include "guiddef.h"
>
>
> void somefunction()
> {
> IConverterSession* pIConverterSession;
> }
> /*******************************************/
>
> after compilation of MyClass.cpp file, getting erors.
>
> How to solve this problem??
>
> Thanks in advance,
>
> With regards,
> --
> DKDS.Naidu.
>
>
> "Eugene" wrote:
>
> > Known issues:
> > 1) Not all of the embedded object can be restored after saving using TNEF
> > ( for example inserted MS word diagram never get restored correctly, can be
> > more problem like this )
> > 2) Recepients name resolution. Backup under exchange profile -> restoring
> > into Internet mail configuration. I never had a chance to test this
> > conversion with headers support, due to implementation reasons I'm using
> > CCSF_NOHEADERS all the time. But first vtable member aka "Placeholder
> > memberNot supported or documented". accept something like IAddressBook as
> > the first parameter... Maybe it can help...
> > 3) Possible mail body format change after restore. Don't forget tot use
> > CCSF_USE_RTF.
> > 4) Possible PR_MESSAGE_DELIVERY_TIME change after restore - try to use
> > 0x0800.
> >
> > As far as I know everything is there, probably there is a lot of other
> > problem. If you find another one let me know.
> >
> > "Dkds.Naidu" <dkdsnaidu819@xxxxxxxxxxx> wrote in message
> > news:719EB016-48BE-4BED-A279-F71CF2B4157A@xxxxxxxxxxxxxxxx
> > > Hi Eugene,
> > >
> > > I have to take backup and restore of incoming mails from Outlook.
> > >
> > > What about .eml format? May I take backup files as .eml format? Is it
> > > correct way? Just now I tested 100+ mails with .eml format. Backup and
> > > restore works fine.
> > >
> > > Any disadvantages are there with .eml format?
> > >
> > > .MSG format is also working fine.
> > >
> > > Give me your valuable suggestions.
> > >
> > > With regards,
> > > DKDS.Naidu.
> > >
> > > "Eugene" wrote:
> > >
> > >> Not a 100% solution but can be usefull
> > >>
> > >> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/olintapi/html/oliaIConverterSession_HV01154520.asp
> > >>
> > >> To backup:
> > >>
> > >> HRESULT IConverterSession::MAPIToMIMEStm(
> > >> LPMESSAGE pmsg,
> > >> LPSTREAM pstm,
> > >> ULONG ulFlags
> > >> );
> > >>
> > >> try ulFlags = 0xC14
> > >> undocumented but allows to store embedded RTF content
> > >>
> > >> To restore:
> > >>
> > >> HRESULT IConverterSession:: MIMEToMAPI (
> > >> LPSTREAM pstm,
> > >> LPMESSAGE pmsg,
> > >> LPCSTR pszSrcSrv,
> > >> ULONG ulFlags
> > >> );
> > >>
> > >>
> > >> "Dkds.Naidu" <dkdsnaidu819@xxxxxxxxxxx> wrote in message
> > >> news:7B2AC5E7-8652-4731-90BF-34413A2DBE02@xxxxxxxxxxxxxxxx
> > >> > Hi all,
> > >> >
> > >> > I am developing ATL COM Addin for Microsoft Outlook. I am trying to
> > >> > take backup of all incoming mails. I overridden OnDelivery method of
> > >> > IExchExtSessionEvents interface. I can trap all incoming mails. But how
> > >> > can I
> > >> > take a mail into backup and how to restore mails?
> > >> >
> > >> > I am very new to this backup and restore mails. I know MAPI.
> > >> >
> > >> > Can anybody suggest me?
> > >> >
> > >> > Thanks in advance.
> > >> >
> > >> >
> > >> >
> > >> >
> > >> > Best regards,
> > >> > --
> > >> > DKDS.Naidu,
> > >> > Programmer Analyst,
> > >> > ITPL - Bangalore,
> > >> > INDIA.
> > >>
> > >>
> > >>
> >
> >
> >
.
- References:
- Re: How to take a copy of incoming mail to Outlook?
- From: Dkds.Naidu
- Re: How to take a copy of incoming mail to Outlook?
- From: Eugene
- Re: How to take a copy of incoming mail to Outlook?
- From: Dkds.Naidu
- Re: How to take a copy of incoming mail to Outlook?
- Prev by Date: Re: How to take a copy of incoming mail to Outlook?
- Next by Date: Re: Calling MapiLogon from 64-bit app brings up OE instead of Outlook
- Previous by thread: Re: How to take a copy of incoming mail to Outlook?
- Next by thread: Re: How to take a copy of incoming mail to Outlook?
- Index(es):
Relevant Pages
|