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

Tech-Archive recommends: Speed Up your PC by fixing your registry



I have to disagree: you will have problems with any format. MIME might be a
good alternative, but it poses even greater conversion problems, especially
with the MAPI specific features, such as pure RTF messages, embedded OLE
attachments, etc.
You can of course develop your own format, but I suspect that it will take
you months to design and debug it to bring the number of bugs down to the
level that you will encounter with the MSG format.
The biggest MSG format problem is the messages with a large # of recipients,
but it easy to work around it by ussing StgCreateStorageEx (Windows 2000 and
up) rather than StgCreateDocfile.
Q171907 has sample code that shows how to save a message in the MSG format:
http://support.microsoft.com/?kbid=171907

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

"Stephen Griffin" <sgriffin@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:%23BSExumoFHA.764@xxxxxxxxxxxxxxxxxxxxxxx
>I would NOT use MSG as a means for message archiving/backup. This message
>format is not suitable for storing all the variety of messages you will
>encounter in the wild. In particular, deeply nested messages and messages
>with large numbers of recipients and/or attachments will present unsolvable
>problems with this format. Also, you lose a great deal in message fidelity
>in conversion to and from this format.
>
> You will be much better off developing your own format in which to archive
> the messages, or (since it looks like this may be an in-house project),
> locating a third party who has already done this work.
>
> Steve
>
> "Dkds.Naidu" <dkdsnaidu819@xxxxxxxxxxx> wrote in message
> news:EE146B2A-BFA0-4422-B2F4-20BDF0F566E1@xxxxxxxxxxxxxxxx
>> Hi Dmitry,
>>
>> I am trying to design a utilty in Outlook where the user is
>> given the provision of saving a copy of the every incoming mail in a
>> desired
>> location (currently in our server).
>>
>> This utility will enable the user to resore/downlaod his
>> mails
>> from the server once the user moves from his current place to a different
>> geographical location.
>>
>> Currently am able to capture all the mails ( OnDelivery()
>> method of IExchExtSessionEvents) .How to save this mails in .MSG format
>> with
>> UNICODE support?
>> I wonder whether am proceeding in the right direction in my quest to
>> design
>> the above mentioned utilty!
>>
>> My doubts are:
>>
>> 1. How can I save the incoming mail in .MSG format with UNICODE support.
>> Note: I can trap the incoming mail. How to save this mail with .msg
>> format
>> and with unicode support.
>>
>> 2. Can I restore mails if I save mails in .msg with unicode support.
>>
>>
>> Seeking your guidance
>>
>> Best regards,
>> --
>> DKDS.Naidu,
>> Programmer Analyst,
>> ITPL - Bangalore.
>>
>>
>> "Dmitry Streblechenko" wrote:
>>
>>> What kind of backup? *Where* do you want to store the messages?
>>>
>>> Dmitry Streblechenko (MVP)
>>> http://www.dimastr.com/
>>> OutlookSpy - Outlook, CDO
>>> and MAPI Developer Tool
>>>
>>> "Dkds.Naidu" <dkdsnaidu819@xxxxxxxxxxx> wrote in message
>>> news:E887CFE4-7199-422A-BBC4-605D20F1BB36@xxxxxxxxxxxxxxxx
>>> >I love you Dmitry. Really you are giving lot of help.
>>> >
>>> > Anyway, I have to take backup of all incoming mails and restore all
>>> > mails
>>> > when user asks. this is very primary step of my project.
>>> >
>>> >
>>> > Thank you for giving immediate reply.
>>> >
>>> > Thanks in advance.
>>> >
>>> > --
>>> > DKDS.Naidu,
>>> > Programmer Analyst,
>>> > ITPL - Bangalore,
>>> > INDIA.
>>> >
>>> >
>>> > "Dmitry Streblechenko" wrote:
>>> >
>>> >> You mean you have an Exchange Client Extension, not a COM add-in,
>>> >> right?
>>> >> What kind of backup do you have in mind? Outlook folder? DB? MSG
>>> >> file?
>>> >>
>>> >> Dmitry Streblechenko (MVP)
>>> >> http://www.dimastr.com/
>>> >> OutlookSpy - Outlook, CDO
>>> >> and MAPI Developer Tool
>>> >>
>>> >> "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: How to take a copy of incoming mail to Outlook?
    ... you will have problems with any format. ... >with the MAPI specific features, such as pure RTF messages, embedded OLE ... > level that you will encounter with the MSG format. ... >>> method of IExchExtSessionEvents) .How to save this mails in .MSG format ...
    (microsoft.public.win32.programmer.messaging)
  • Re: How to take a copy of incoming mail to Outlook?
    ... Backup mails lose SUBJECT only if ... "Dmitry Streblechenko" wrote: ... you will have problems with any format. ... > level that you will encounter with the MSG format. ...
    (microsoft.public.win32.programmer.messaging)
  • Re: How to take a copy of incoming mail to Outlook?
    ... I can take backup of all incoming mails through programmatically.I can do ... you will have problems with any format. ... > level that you will encounter with the MSG format. ...
    (microsoft.public.win32.programmer.messaging)
  • Re: Problem in SafeMailItem.SaveAs Method
    ... If you need to save sender/receiver/etc properties, save in the MSG format, ... > Is there any way to save MailItem as OFT format without warning mesage ...
    (microsoft.public.outlook.program_vba)
  • Re: Tiburon vs =?utf-8?Q?Tibur=C3=B3n?=
    ... Unicode support? ... By the way, your newsreader sucks. ... It couldn't handle the ó ... Probably it had problems with the format produced by Thunderbird: ...
    (borland.public.delphi.non-technical)