Re: Property tags - what happens if... (Rename of user defined fie

Tech-Archive recommends: Fix windows errors by optimizing your registry



I had big trouble in making bulk Property change using Redemption, CDO and
Outlook object model.

Firstly, CDO is quick and straightforwaard enough to create the bulk rename
script quickly, BUT, does not support Unicode so it forgets every foreigh
characters during the conversion.

Secondly, the Outlook object model is terribly slow (does not matter, I
could let him do it overnight) but, worse is, as it is working on items with
customized form, memory grows, grows, grows, after several hundred of items
it all crashes, wow!

Interesting point, if I remove form prom folder, there is no memory leak,
but the script stops working :-) because UserProperties is dependant on the
form published in the folder.


Third: Redemption, it is Unicode, wow, it is quick, wow, it does not leak
memory, wow, but it does NOT work. >:-)

well as I declared
Dim up as Redemption.UserProperty
Set up=oMessage.UserProperties.Find(..., true) 'tried string, PropTag

I get Count 0, empty collection in debugger.

Strange behaviour however is, that when I first make
Set up_existing=oMessage.UserProperties.Add("myexistingpropertyname")

then o la la I can see instead of adding the value of my EXISTING value.

This way I finally made the bulk migration tool working somehow but withou
proper examples on the internet it was two days of really hard work - why the
objects are so non-intuitive ?

.



Relevant Pages

  • Re: Property tags - what happens if... (Rename of user defined fie
    ... The same memory manangement would also apply with unmanaged code and with CDO or Redemption code too. ... The Outlook object model is the most intuitive and most documented of the 3 choices. ... CDO and Redemption are more for advanced users and since Redemption is based on MAPI you really should have some knowledge of MAPI to make the best use of Redemption. ...
    (microsoft.public.outlook.program_vba)
  • Re: Getting Attachment Mime Content Type
    ... You can do that using Extended MAPI, CDO 1.21, ... > Redemption, but not using Outlook Object Model. ...
    (microsoft.public.win32.programmer.messaging)
  • Re: Getting Attachment Mime Content Type
    ... You can do that using Extended MAPI, CDO 1.21, ... > Redemption, but not using Outlook Object Model. ...
    (microsoft.public.office.developer.outlook.vba)
  • Re: How do I know whether a mail is replied/forwarded ?
    ... The Outlook object model doesn't let you find that. ... different API such as CDO 1.21 or Extended MAPI or Redemption ...
    (microsoft.public.outlook.program_vba)
  • Re: Programmatic access to Internet Headers
    ... Not from the Outlook object model. ... You have to use CDO or Extended MAPI for ... that (or Redemption at www.dimastr.com/redemption). ... See http://www.slovaktech.com/code_samples.htm#InternetHeaders for a CDO ...
    (microsoft.public.office.developer.outlook.vba)