Re: How to sync my pst file in laptop to Outlook in PC programatically?



Hi Michael,

Does the Restrict function affect the subfolders of the specified
items of a folder? Or must
I work through the whole folder tree recursively ?
--
Regards,
Simon
"Michael Bauer" <mb@xxxxxxxx> wrote in message
news:1vxfleg4qs2nr.1hnreunwjewq5.dlg@xxxxxxxxxxxxx
> Am Wed, 26 Oct 2005 14:37:53 +0800 schrieb Simon:
>
> All in all that´s no easy job!
>
> For the Inbox you could use a simple UserProperty for each MailItem and
> store in it whether the item is copied already or not. After the first
> synchronizing, all items in both Inboxes should have this flag. The next
> time you can then use the Restrict function to find all not copied items.
> From one computer open the other *pst with AddStore and copy all the items
> returned by Restrict. (AddStore is possible only if the *pst isn´t opened
> already.)
>
> So the first keywords (and samples) you could read about in the VBA help
> file are:
> - For (e.g. For Each to loop through a collection of items)
> - AddStore
> - Restrict
> - Add (i.e. UserProperties.Add)
>
> But that mechanism ignores changes in mails (or in contacts). If you´re
> editing received mails (e.g. adding comments) then you´d need a more
> complicated mechanism. For comparing those items usually a rule like "last
> one wins" is used. That is you need to determine, which item is the last
> updated one. Because the system times on both your computers are different
> for sure there´s no easy way. I hardly believe a beginner really wants to
> go
> through all this stuff (and spend not hours, but weeks).
>
> --
> Viele Gruesse / Best regards
> Michael Bauer - MVP Outlook
>
>> Hi Mc, thank u for ur advice.
>> but I wanna do the same as the tool kits do. I want to
>> take control in my code.
>>
>> --
>> Regards,
>> Simon
>> "Michael Bauer" <mb@xxxxxxxx> wrote in message
>> news:1556emgwt1q8e.1j0n8kat9dwu1.dlg@xxxxxxxxxxxxx
>>> Am Wed, 26 Oct 2005 10:55:25 +0800 schrieb Simon:
>>>
>>> Simon, on Slipstick are some tools available:
>>> http://www.slipstick.com/outlook/sync.htm
>>>
>>> --
>>> Viele Gruesse / Best regards
>>> Michael Bauer - MVP Outlook
>>>
>>>> Hi all.
>>>> I have a problem about sync. I want to sync my laptop and PC
>>>> programmatically.
>>>> Actually I know there is Import/Export Function in Outlook ,but I want
> my
>>>> program
>>>> to do it.
>>>> The AddStore method of NameSpace is just putting the pst file to
>>> outlook
>>>> as a
>>>> folder.How can I combine the 2 pst files?? (At least, keep the Inbox
>>> folder
>>>> up to date).


.



Relevant Pages

  • Output cache
    ... Is it possible to create OutPutCache vary by folder of the page? ... Simon ... Prev by Date: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Output cache
    ... I'm not sure I understand what you are looking for, simon. ... >Is it possible to create OutPutCache vary by folder of the page? ... Prev by Date: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: BITS cannot start with error 2147942403
    ... >> Event Source: Service Control Manager ... I don't see there is Downloader folder inside the Network folder, ... >> Regards, ... >> Yoong Seong ...
    (microsoft.public.sms.setup)
  • Re: create folder in public folders using Exchange SDK and C#
    ... Best regards, ... Connection exchConnection = new Connection("Daffoserver", ... Folder folder = new ... Henning Krause wrote: ...
    (microsoft.public.exchange2000.development)
  • Re: create folder in public folders using Exchange SDK and C#
    ... i do't want to read eml files from a public store. ... the public folder. ... If you retrieve it via WebDAV, you will get an EML file. ... Best regards, ...
    (microsoft.public.exchange2000.development)