![]() ![]() How do you keep Outlook synchronized between these two computers? What does it mean to share your Outlook calendar, contact, task, and other folders with one more computers? Let’s say you have a desktop computer at the office, and a laptop computer you keep with you at home, and you want to keep your Outlook data in sync between the two computers. So, what is the difference between sharing Outlook folders (calendars, contacts, tasks, etc) with one or more Outlook users and keeping an Outlook data file synchronized between two or more computers? What does it mean to synchronize Outlook between two or more computers? When this question is asked, there is often confusion between synchronizing and sharing Microsoft Outlook. I'm continue looking for a best way to detect a copied mail after comparing it with its original item.Synchronizing Outlook vs. Unfortunately, the custom property comparison is as slow as the SendOn. It is possible to add a custom property and then compare it with the original EntryID If (sourceFolderMail.Subject = destinationFolderMail.Subject) And (sourceFolderMail.EntryID = ("EntryID2")) Then Set EntryID2Property = ("EntryID2", olText)ĮntryID2Property.Value = sourceFolderMail.EntryID using items.Restrict(filter) ).Ĭonsidering there are some MailItem properties that can be compared without affecting execution time (at least Subject and EntryID) a possible solution could be replicate on the copied messages the original item EntryID (because it changes after message copy) Dim objCopy As Outlook.MailItemĭim EntryID2Property As Outlook.UserProperty ( Subject comparison doesn't affect the execution time while other attributes like Size does and this is the reason why I'm looking for a different way to filter the retrieved mail list eg. ![]() ![]() ![]() It works but the SentOn comparison causes the macro to increase the execution time form less than a second to over 30 seconds and it is unfeasible because I have to check up to six shared mail folders. I've tried using two nested For Each item In items for sourceFolderMails and destinationFolderMails item containers comparing Subject and SentOn attributes. My sync function is called every time a new message arrives (triggering ItemAdd event). Is there a way to filter the sourceFolderMails like sourceFolderMails.Restrict("all Subject and SentOn messages different from a list") or some other solution to copy only the new mail/mails? Unfortunately when a new mail arrives the function is called again and it will duplicate all messages in the destination folder plus the new mail. Set sourceFolderMails = sourceFolderMails.Restrict(strFilter)Īnd I can copy all messages in the sourceFolderMails list in the destination folder too Set sourceFolderRecipient = sourceFolder = ons.GetSharedDefaultFolder(sourceFolderRecipient, olFolderInbox) the current day) Private ons As Outlook.NameSpaceĭim sourceFolderRecipient As Outlook.Recipient I was able to retrieve all mail messages in the original shared mailbox within a specific time interval (eg. My main goal is to have those two folders in sync at least every time the "original" shared folder receive a new mail that should be copied in the "destination" custom folder. I'm trying to synchronize two outlook folders (one is a shared mailbox and the other is personal custom folder) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |