VSTO plugin + Distribution List resolution problem..

  • Thread starter Thread starter Sanjay
  • Start date Start date
S

Sanjay

Hello --
I have a VSTO plugin for Outlook 2003 SP2. It checks the recipients
for each message against a list and issues a warning if there is a
match. If the recipients list contains a Distribution List, it will
resolve all the recipients within that DL and do its validation...

My issues is that outlook will intermittently report the DL recipient
as a "olUser" instead of "olDistList"...

ie: Recipient.DisplayType is reported as olUser.. Even the members
property of Recipient.AddressEntry is null.

Has somebody else faced this issue? Please suggest workarounds..

Thanks.

Sanjay
 
What kind of DL -- personal or Exchange?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
I'd check in ADU&C to see just what kind of Exchange DL this might be -- whether there's a difference between it and one that works as you expect. For example, is the membership hidden?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers


Sanjay said:
It is an Exchange DL --
What kind of DL -- personal or Exchange?
 
Some more details..
I have one DL "DL Group ALL" that is composed of 2 DL's "DL Group 1" &
"DL Group 2". Now if I add these DL's individually to a message,
Outlook and the plugin behave as expected.

But if I add "DL Group ALL" to the "TO" list of a new message and then
expand the "DL" and then hit send, the 2 child DL's are reported as
olUser instead of olDistList.

????
 
YOu might want to show a code snippet to illustrate how you are expanding the DL.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers


Sanjay said:
Some more details..
I have one DL "DL Group ALL" that is composed of 2 DL's "DL Group 1" &
"DL Group 2". Now if I add these DL's individually to a message,
Outlook and the plugin behave as expected.

But if I add "DL Group ALL" to the "TO" list of a new message and then
expand the "DL" and then hit send, the 2 child DL's are reported as
olUser instead of olDistList.

I'd check in ADU&C to see just what kind of Exchange DL this might be -- whether there's a difference between it and one that works as you expect. For example, is the membership hidden?


Sanjay said:
It is an Exchange DL --
What kind of DL -- personal or Exchange?
 
The expanding is not done in code... it is done simply by click on the
[+] next to the DL name in the TO list.
 
Back
Top