User defined properties (or rather their definitions) are added to the
parent folder fields when UserProperties.Add is called. When a message is
copied/moved to another folder, it ts custom properties will not be
automatically added to the target folder fields.
Also keep in mind that Outlook is trying to be "helpful" by creating regular
message (MailItem) in the Drafts folder even when you are trying to
explicitly add it to a particular folder other than Drafts by calling
MAPIFolder.Items.Add
plug Redemption allows to explicitly manipulate folder fields definitions
through the RDOFolder2.FolderFields collection
http://www.dimastr.com/redemption/rd...lderFields.htm /plug
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Sue Mosher [MVP-Outlook]" wrote in message
...
Add the fields to the folder, manually through the folder's Field Chooser.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
"j" wrote in message
oups.com...
Thanks for replay,
Are you looking under User-defined Fields in Folder?
Yes
Have you previously defined the fields in that folder?
No, these fields are not, after creating mailItem (programatically)
and adding userProperties they appear only under INBOX, and
not under folder to where i moved mailItem.
Ideas ???
Tnx in advance.