PC Review


Reply
Thread Tools Rate Thread

Copying properties from one mail to another

 
 
John1170
Guest
Posts: n/a
 
      10th Oct 2009

I have 600+ emails that have lost the Sender information in a folder that
contains a copy of my historical sent items

I have found i can copy the PR_SENT_REPRESENTING_NAME field from one email
to another with Outlookspy

but how can i copy that property from one to 600+ messages? without
individually copying them one mail at a time

Outlook Spy:
Copying properties from one object to another. I have two objects with
different sets of properties and I want to copy one or more property from one
object to another.

You can simply select any number of properties on one object (be that
IMessage, IMAPIFolder or any other Extended MAPI object derived from
IMAPIProp) and drop them on the GetProps tab of any another IMAPIProp
descendant. OutlookSpy will call IMAPIProp::CopyProps() on the first object
and then save the second object.




 
Reply With Quote
 
 
 
 
Michael Bauer [MVP - Outlook]
Guest
Posts: n/a
 
      10th Oct 2009


For this VBA example you need to download and install the Redemption from
www.dimastr.com. It writes "whatever" into the field
'pr_sent_representing_name'. See if that works; I wouldn't be suprised if
you also have to set the other pr_sent_representing_* fields (which you see
with OutlookSpy too).

Public Sub Whatever()
Dim Session as Redemption.RDOSession
Dim Folder as Redemption.RDOFolder
Dim Item as Redemption.RDOMail
Set Session=CreateObject("Redemption.RDOSession")
Session.MapiObject=Application.Namespace.MapiObject
Set Folder=Session.Pickfolder
For Each Item in Folder
Item.Fields(&H0042001E)="whatever"
Item.Save
Next
End Sub

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: <http://www.vboffice.net/product.html?pub=6&lang=en>


Am Fri, 9 Oct 2009 19:53:01 -0700 schrieb John1170:

> I have 600+ emails that have lost the Sender information in a folder that
> contains a copy of my historical sent items
>
> I have found i can copy the PR_SENT_REPRESENTING_NAME field from one email
> to another with Outlookspy
>
> but how can i copy that property from one to 600+ messages? without
> individually copying them one mail at a time
>
> Outlook Spy:
> Copying properties from one object to another. I have two objects with
> different sets of properties and I want to copy one or more property from

one
> object to another.
>
> You can simply select any number of properties on one object (be that
> IMessage, IMAPIFolder or any other Extended MAPI object derived from
> IMAPIProp) and drop them on the GetProps tab of any another IMAPIProp
> descendant. OutlookSpy will call IMAPIProp::CopyProps() on the first

object
> and then save the second object.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying properties il barbi Microsoft Word Document Management 1 24th Oct 2009 06:13 AM
copying MAPI properties =?Utf-8?B?Tmlrb2xhcw==?= Microsoft Outlook Form Programming 1 8th Nov 2006 03:16 PM
Copying properties to 'this' Adam W Root Microsoft C# .NET 2 14th Mar 2004 11:05 PM
Copying object properties Tony Vitonis Microsoft VB .NET 0 13th Nov 2003 12:36 AM
Copying object properties Tony Vitonis Microsoft VB .NET 1 10th Nov 2003 07:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:29 AM.