Link to home
Start Free TrialLog in
Avatar of Member_2_1348041
Member_2_1348041Flag for Ireland

asked on

User properties woe... MSG files... Office 2007

Hello Experts. We have a system that writes User Properties to Outlook Messages. That works great as long as the message is stored in Outlook. But when the user moves the message *out* of Outlook, for example by dragging it out of Outlook and dropping it on to their desktop so it is stored there as a .MSG file, then when the message is opened the User Properties are gone.

We looked at the AllowedNamedProps key in the Registry, but either we're not setting the values correctly, or it doesn't do what we think it will do. For example:

HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\AllowedNamedProps\{00020329-0000-0000-C000-000000000046}\MyLittleUserProperty with dword value Type, we tried values 0, 30, 3, 48 (which is HEX 30), none of it makes the slightest bit of difference. MyLittleUserProperty is supposed to be a String value.

We also looked at:
http://support.microsoft.com/kb/907985

and tried the suggestion under re-enabling the ability to create user properties ("not recommended") - but it already says there that it doesn't work for Office 2007 and indeed it seemed to make NO difference whatsoever.


Now, the User Properties are set and queried in an Outlook Addin that we wrote, so finally a possible solution might be to check in the Outlook Addin (this is where VB developers may be of help) whether the item that just got opened is an item that resides in Outlook itself or whether it's an MSG file that the user clicked on or that got launched in some way or other.

Now this is the REALLY bizarre thing: I cannot find anything - ANYTHING - in the Outlook Addin that will allow me to determine where the message came from. I looked at the Explorer object and ... nothing. The Inspector object ... nothing. Ultimately both of them lead me to a MailItem type object and it seems to think that the item resides in the Inbox, even if it was launched by double-clicking on an MSG file. There is nothing like a "path" property on the MailItem Object, nothing that tells me where it came from. Or is there?



Prrrrwlllleeeeeeazzzze help
ASKER CERTIFIED SOLUTION
Avatar of Chris Bottomley
Chris Bottomley
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Member_2_1348041

ASKER

lemmegocheckso..... brb
BTW should have commented, yes the user properties arte outlook specific so lost outside of the app.

Chris
Yeah. Obviously it *could* be a new item (or a reply or whatnot), so I had to add another test. Like you suggested I checked that the EntryID be blank, which worked a treat. And then to ensure that I was looking at a saved .MSG file I also check the .Sent property, and if that's True I know I'm in business.

Cheers
Nice one
Glad it helped

Chris