Re: How to take a copy of incoming mail to Outlook?



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.
> > >>
> > >>
> > >>
> >
> >
> >
.



Relevant Pages

  • Re: System State question?
    ... Best regards ... Meinolf Weber ... Disclaimer: This posting is provided "AS IS" with no warranties, ... Should I restore the system state from the backup tape? ...
    (microsoft.public.windows.server.general)
  • Re: IMAP Archiving?
    ... >> Robert Sparnaaij [MVP-Outlook] ... >> -Backup and Restore ... >> -Create an Office XP CD slipstreamed with Service Pack 3 ... >>> Best regards, ...
    (microsoft.public.outlook)
  • Re: JFS2 file corruption
    ... > restore them, if you know the right order to put them together. ... Thanks for the information Frank, ... information would provide the source to recover the files from ... Regards ...
    (comp.unix.aix)
  • Re: How to take a copy of incoming mail to Outlook?
    ... I am trying to use IConverterSession interface. ... > 3) Possible mail body format change after restore. ... >> I have to take backup and restore of incoming mails from Outlook. ... >>> ULONG ulFlags ...
    (microsoft.public.win32.programmer.messaging)
  • Antwort: How much space needs migration from AIX 4.3.3 to AIX 5.2? How to restore /usr?
    ... and try to restore it. ... in my rootvg. ... Best regards, ... the views of Linde Material Handling. ...
    (AIX-L)