Anonymous_User Absent Member.
Absent Member.
1833 views

mail.getDistribution()

Hi fellow soapers,

I just noted in disbelieve,
that if you call getDistribution() for a sent mail item over SOAP,
for a mail which had a distribution list as a recipient,
that you don't get all the recipient stats for all members for
that distribution list.

One does get all the stats for regular users, but not for groups/DLs.

How can I get the recipient stats for the members of a group/DL
for a sent item ?

( The GW client shows them just fine. )

Ray.



Labels (1)
0 Likes
12 Replies
Highlighted
Anonymous_User Absent Member.
Absent Member.

Re: mail.getDistribution()

Ray wrote:
> Hi fellow soapers,
>
> I just noted in disbelieve,
> that if you call getDistribution() for a sent mail item over SOAP,
> for a mail which had a distribution list as a recipient,
> that you don't get all the recipient stats for all members for
> that distribution list.
>
> One does get all the stats for regular users, but not for groups/DLs.
>
> How can I get the recipient stats for the members of a group/DL
> for a sent item ?
>
> ( The GW client shows them just fine. )
>
> Ray.
>
>
>

To add to this, the regular mail doesn't seem to have a way to request
expanded recipients either. An issue for compliance and for the new
stubbing API I should think
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: mail.getDistribution ()

Sorry, I misread your comments.

Are you saying as a recipient (inbox) item to be able to
get the status of all of the recipients, or are you asking
as the sender of the item, that you can't get the all of the
recipients statuses?

Are you saying that you don't get the status of the group
members of a personal group or a system address group
(distribution list)?

With a personal group, all the members are returned
in addition to the group element itself, so you can get the
status of those.

I don't remember the restrictions on system groups, but
I know they are treated differently. I just can't remember
the issues.

It will be a few days before I can look into the issues.

Preston

>>> On Monday, March 31, 2008 at 9:12 AM, Ray<ray@test.de> wrote:

> Hi fellow soapers,
>
> I just noted in disbelieve,
> that if you call getDistribution() for a sent mail item over SOAP,
> for a mail which had a distribution list as a recipient,
> that you don't get all the recipient stats for all members for
> that distribution list.
>
> One does get all the stats for regular users, but not for groups/DLs.
>
> How can I get the recipient stats for the members of a group/DL
> for a sent item ?
>
> ( The GW client shows them just fine. )
>
> Ray.

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: mail.getDistribution ()

Hi Preston,

I am trying to get the status of each members of a system group
which was the recipient of a sent item.

But I just get back the system group name.
I would need the complete resolved member list as well
as the state of the mail in their inbox ( i.e. if they accepted, read,
deleted, etc. )

( I am sure I can resolve the member list by digging through the system
address book,
but then I still would have the stats for that single sent item )

Ray.

"Preston Stephenson" <PStephenson@gw.novell.com> schrieb im Newsbeitrag
news:47F21CC4.07F1.0037.1@gw.novell.com...
> Sorry, I misread your comments.
>
> Are you saying as a recipient (inbox) item to be able to
> get the status of all of the recipients, or are you asking
> as the sender of the item, that you can't get the all of the
> recipients statuses?
>
> Are you saying that you don't get the status of the group
> members of a personal group or a system address group
> (distribution list)?
>
> With a personal group, all the members are returned
> in addition to the group element itself, so you can get the
> status of those.
>
> I don't remember the restrictions on system groups, but
> I know they are treated differently. I just can't remember
> the issues.
>
> It will be a few days before I can look into the issues.
>
> Preston
>
>>>> On Monday, March 31, 2008 at 9:12 AM, Ray<ray@test.de> wrote:

>> Hi fellow soapers,
>>
>> I just noted in disbelieve,
>> that if you call getDistribution() for a sent mail item over SOAP,
>> for a mail which had a distribution list as a recipient,
>> that you don't get all the recipient stats for all members for
>> that distribution list.
>>
>> One does get all the stats for regular users, but not for groups/DLs.
>>
>> How can I get the recipient stats for the members of a group/DL
>> for a sent item ?
>>
>> ( The GW client shows them just fine. )
>>
>> Ray.



0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: mail.getDistribution ()


Also: distribution lists are not expanded when you look at the GWMail item
recipients.
Is there a way to request the expanded distribution list? This can be
critical for compliance.

Ray.


"Preston Stephenson" <PStephenson@gw.novell.com> schrieb im Newsbeitrag
news:47F21CC4.07F1.0037.1@gw.novell.com...
> Sorry, I misread your comments.
>
> Are you saying as a recipient (inbox) item to be able to
> get the status of all of the recipients, or are you asking
> as the sender of the item, that you can't get the all of the
> recipients statuses?
>
> Are you saying that you don't get the status of the group
> members of a personal group or a system address group
> (distribution list)?
>
> With a personal group, all the members are returned
> in addition to the group element itself, so you can get the
> status of those.
>
> I don't remember the restrictions on system groups, but
> I know they are treated differently. I just can't remember
> the issues.
>
> It will be a few days before I can look into the issues.
>
> Preston
>
>>>> On Monday, March 31, 2008 at 9:12 AM, Ray<ray@test.de> wrote:

>> Hi fellow soapers,
>>
>> I just noted in disbelieve,
>> that if you call getDistribution() for a sent mail item over SOAP,
>> for a mail which had a distribution list as a recipient,
>> that you don't get all the recipient stats for all members for
>> that distribution list.
>>
>> One does get all the stats for regular users, but not for groups/DLs.
>>
>> How can I get the recipient stats for the members of a group/DL
>> for a sent item ?
>>
>> ( The GW client shows them just fine. )
>>
>> Ray.



0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: mail.getDistribution ()

There was a fix put in to Bonsai to expand the system group
in the recipient list. There were too many files changed to
safely port the change back to 7.0.x.

To get the members of the system group (distribution list),
you need to put "members" in the view when you are getting
the mail item.

Preston

>>> On Tuesday, April 01, 2008 at 11:30 AM, Preston

Stephenson<PStephenson@gw.novell.com> wrote:
> Sorry, I misread your comments.
>
> Are you saying as a recipient (inbox) item to be able to
> get the status of all of the recipients, or are you asking
> as the sender of the item, that you can't get the all of the
> recipients statuses?
>
> Are you saying that you don't get the status of the group
> members of a personal group or a system address group
> (distribution list)?
>
> With a personal group, all the members are returned
> in addition to the group element itself, so you can get the
> status of those.
>
> I don't remember the restrictions on system groups, but
> I know they are treated differently. I just can't remember
> the issues.
>
> It will be a few days before I can look into the issues.
>
> Preston
>
>>>> On Monday, March 31, 2008 at 9:12 AM, Ray<ray@test.de> wrote:

>> Hi fellow soapers,
>>
>> I just noted in disbelieve,
>> that if you call getDistribution() for a sent mail item over SOAP,
>> for a mail which had a distribution list as a recipient,
>> that you don't get all the recipient stats for all members for
>> that distribution list.
>>
>> One does get all the stats for regular users, but not for groups/DLs.
>>
>> How can I get the recipient stats for the members of a group/DL
>> for a sent item ?
>>
>> ( The GW client shows them just fine. )
>>
>> Ray.

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: mail.getDistribution ()

Hey Preston,

thanks for the heads up.
Good to hear its fixed in Bonsai.

Any chance it could hit a 7.0.4 if there would ever be one ?

Ray.

"Preston Stephenson" <PStephenson@gw.novell.com> schrieb im Newsbeitrag
news:47FA2A03.07F1.0037.1@gw.novell.com...
> There was a fix put in to Bonsai to expand the system group
> in the recipient list. There were too many files changed to
> safely port the change back to 7.0.x.
>
> To get the members of the system group (distribution list),
> you need to put "members" in the view when you are getting
> the mail item.
>
> Preston
>
>>>> On Tuesday, April 01, 2008 at 11:30 AM, Preston

> Stephenson<PStephenson@gw.novell.com> wrote:
>> Sorry, I misread your comments.
>>
>> Are you saying as a recipient (inbox) item to be able to
>> get the status of all of the recipients, or are you asking
>> as the sender of the item, that you can't get the all of the
>> recipients statuses?
>>
>> Are you saying that you don't get the status of the group
>> members of a personal group or a system address group
>> (distribution list)?
>>
>> With a personal group, all the members are returned
>> in addition to the group element itself, so you can get the
>> status of those.
>>
>> I don't remember the restrictions on system groups, but
>> I know they are treated differently. I just can't remember
>> the issues.
>>
>> It will be a few days before I can look into the issues.
>>
>> Preston
>>
>>>>> On Monday, March 31, 2008 at 9:12 AM, Ray<ray@test.de> wrote:
>>> Hi fellow soapers,
>>>
>>> I just noted in disbelieve,
>>> that if you call getDistribution() for a sent mail item over SOAP,
>>> for a mail which had a distribution list as a recipient,
>>> that you don't get all the recipient stats for all members for
>>> that distribution list.
>>>
>>> One does get all the stats for regular users, but not for groups/DLs.
>>>
>>> How can I get the recipient stats for the members of a group/DL
>>> for a sent item ?
>>>
>>> ( The GW client shows them just fine. )
>>>
>>> Ray.



0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: mail.getDistribution ()

Sorry, it was deemed a risk to port back to 7.0.3.
It is still the same issue for 7.0.4.
Preston

>>> On Tuesday, April 08, 2008 at 9:45 AM, Ray<ray@test.de> wrote:

> Hey Preston,
>
> thanks for the heads up.
> Good to hear its fixed in Bonsai.
>
> Any chance it could hit a 7.0.4 if there would ever be one ?
>
> Ray.
>
> "Preston Stephenson" <PStephenson@gw.novell.com> schrieb im Newsbeitrag
> news:47FA2A03.07F1.0037.1@gw.novell.com...
>> There was a fix put in to Bonsai to expand the system group
>> in the recipient list. There were too many files changed to
>> safely port the change back to 7.0.x.
>>
>> To get the members of the system group (distribution list),
>> you need to put "members" in the view when you are getting
>> the mail item.
>>
>> Preston
>>
>>>>> On Tuesday, April 01, 2008 at 11:30 AM, Preston

>> Stephenson<PStephenson@gw.novell.com> wrote:
>>> Sorry, I misread your comments.
>>>
>>> Are you saying as a recipient (inbox) item to be able to
>>> get the status of all of the recipients, or are you asking
>>> as the sender of the item, that you can't get the all of the
>>> recipients statuses?
>>>
>>> Are you saying that you don't get the status of the group
>>> members of a personal group or a system address group
>>> (distribution list)?
>>>
>>> With a personal group, all the members are returned
>>> in addition to the group element itself, so you can get the
>>> status of those.
>>>
>>> I don't remember the restrictions on system groups, but
>>> I know they are treated differently. I just can't remember
>>> the issues.
>>>
>>> It will be a few days before I can look into the issues.
>>>
>>> Preston
>>>
>>>>>> On Monday, March 31, 2008 at 9:12 AM, Ray<ray@test.de> wrote:
>>>> Hi fellow soapers,
>>>>
>>>> I just noted in disbelieve,
>>>> that if you call getDistribution() for a sent mail item over SOAP,
>>>> for a mail which had a distribution list as a recipient,
>>>> that you don't get all the recipient stats for all members for
>>>> that distribution list.
>>>>
>>>> One does get all the stats for regular users, but not for groups/DLs.
>>>>
>>>> How can I get the recipient stats for the members of a group/DL
>>>> for a sent item ?
>>>>
>>>> ( The GW client shows them just fine. )
>>>>
>>>> Ray.

0 Likes
martypal2005 Absent Member.
Absent Member.

Re: mail.getDistribution()

This is a function I wrote in c#.



public bool GetDLMembers(string display_name, out List<GroupMember> members)

{

members = new List<GroupMember>();

RefreshSystemAddressBook();

try

{

if (m_ab_groups.ContainsKey(display_name))

{

foreach (GroupMember gm in m_ab_groups[display_name].members)

{

if (String.IsNullOrEmpty(gm.name) || String.IsNullOrEmpty(gm.email))

continue;

members.Add(gm);

}

if (members.Count > 0)

return true;

}

}

catch

{

return false;

}

return false;

}



"Ray" <ray@test.de> wrote in message
news:Pb7Ij.1290$fC5.338@kovat.provo.novell.com...
> Hi fellow soapers,
>
> I just noted in disbelieve,
> that if you call getDistribution() for a sent mail item over SOAP,
> for a mail which had a distribution list as a recipient,
> that you don't get all the recipient stats for all members for
> that distribution list.
>
> One does get all the stats for regular users, but not for groups/DLs.
>
> How can I get the recipient stats for the members of a group/DL
> for a sent item ?
>
> ( The GW client shows them just fine. )
>
> Ray.
>
>
>



0 Likes
martypal2005 Absent Member.
Absent Member.

Re: mail.getDistribution()

Here is the other function I reference:

private void RefreshSystemAddressBook()
{

TimeSpan time_span = DateTime.Now - m_ab_last_refresh;
if (m_ab_traversed && time_span.TotalHours < 1.0)
return;

Console.WriteLine("DEBUG SOAP: Refreshing system address book.");

m_ab_last_refresh = DateTime.Now;
m_ab_traversed = true;

try
{

getAddressBookListResponse book_response =
m_gwb.getAddressBookListRequest(new getAddressBookListRequest());

List<string> container_list = new List<string>();

if (book_response.status.code != 0)
return;

foreach (AddressBook address_book in book_response.books)
{
if (!address_book.isPersonal)
{
container_list.Add(address_book.id);
}
}


m_ab_groups.Clear();

getItemsRequest items_request = new getItemsRequest();
Filter filter = new Filter();
FilterEntry filter_entry = new FilterEntry();
filter_entry.op = FilterOp.eq;
filter_entry.field = "@type";
filter_entry.value = "Group";
filter.element = filter_entry;
items_request.filter = filter;
items_request.view = "name members";

foreach (string container in container_list)
{
items_request.container = container;

getItemsResponse items_response = m_gwb.getItemsRequest(items_request);

if (items_response.status.code == 0)
{
foreach (Item item in items_response.items)
{
if (item == null || item.name == null || ((Group)item).members ==
null)
continue;

m_ab_groups.Add(((Group)item).name, (Group)item);
}
}
}

return;

}

catch
{
return;
}
}
"Martin Olsen" <marty@lightspeedsystems.com> wrote in message
news:c%T0k.231$Ps.110@kovat.provo.novell.com...
> This is a function I wrote in c#.
>
>
>
> public bool GetDLMembers(string display_name, out List<GroupMember>
> members)
>
> {
>
> members = new List<GroupMember>();
>
> RefreshSystemAddressBook();
>
> try
>
> {
>
> if (m_ab_groups.ContainsKey(display_name))
>
> {
>
> foreach (GroupMember gm in m_ab_groups[display_name].members)
>
> {
>
> if (String.IsNullOrEmpty(gm.name) || String.IsNullOrEmpty(gm.email))
>
> continue;
>
> members.Add(gm);
>
> }
>
> if (members.Count > 0)
>
> return true;
>
> }
>
> }
>
> catch
>
> {
>
> return false;
>
> }
>
> return false;
>
> }
>
>
>
> "Ray" <ray@test.de> wrote in message
> news:Pb7Ij.1290$fC5.338@kovat.provo.novell.com...
>> Hi fellow soapers,
>>
>> I just noted in disbelieve,
>> that if you call getDistribution() for a sent mail item over SOAP,
>> for a mail which had a distribution list as a recipient,
>> that you don't get all the recipient stats for all members for
>> that distribution list.
>>
>> One does get all the stats for regular users, but not for groups/DLs.
>>
>> How can I get the recipient stats for the members of a group/DL
>> for a sent item ?
>>
>> ( The GW client shows them just fine. )
>>
>> Ray.
>>
>>
>>

>
>



0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: mail.getDistribution()


Hi Martin,

thanks for the code.
I agree it is possible to resolve the members of a group.
But what I need is the recipient status you see in the "Properties"
tab in the GroupWise client for _every_ member of the group.

Just as is displayed in that tab.

For example, lets say I send an appointment to one group of 3 developers.

Now in the properties tab I can see the 3 members and I can see each user
and what they did with that appointment. ( opended, accepted, deleted,
etc. )

Now in SOAP I just get the group name and I don't get any status information
for any member.

So thats what I am trying to get from Preston. 🙂

Kind regards,
Ray.


"Martin Olsen" <marty@lightspeedsystems.com> schrieb im Newsbeitrag
news:w3U0k.234$Ps.64@kovat.provo.novell.com...
> Here is the other function I reference:
>
> private void RefreshSystemAddressBook()
> {
>
> TimeSpan time_span = DateTime.Now - m_ab_last_refresh;
> if (m_ab_traversed && time_span.TotalHours < 1.0)
> return;
>
> Console.WriteLine("DEBUG SOAP: Refreshing system address book.");
>
> m_ab_last_refresh = DateTime.Now;
> m_ab_traversed = true;
>
> try
> {
>
> getAddressBookListResponse book_response =
> m_gwb.getAddressBookListRequest(new getAddressBookListRequest());
>
> List<string> container_list = new List<string>();
>
> if (book_response.status.code != 0)
> return;
>
> foreach (AddressBook address_book in book_response.books)
> {
> if (!address_book.isPersonal)
> {
> container_list.Add(address_book.id);
> }
> }
>
>
> m_ab_groups.Clear();
>
> getItemsRequest items_request = new getItemsRequest();
> Filter filter = new Filter();
> FilterEntry filter_entry = new FilterEntry();
> filter_entry.op = FilterOp.eq;
> filter_entry.field = "@type";
> filter_entry.value = "Group";
> filter.element = filter_entry;
> items_request.filter = filter;
> items_request.view = "name members";
>
> foreach (string container in container_list)
> {
> items_request.container = container;
>
> getItemsResponse items_response =
> m_gwb.getItemsRequest(items_request);
>
> if (items_response.status.code == 0)
> {
> foreach (Item item in items_response.items)
> {
> if (item == null || item.name == null || ((Group)item).members ==
> null)
> continue;
>
> m_ab_groups.Add(((Group)item).name, (Group)item);
> }
> }
> }
>
> return;
>
> }
>
> catch
> {
> return;
> }
> }
> "Martin Olsen" <marty@lightspeedsystems.com> wrote in message
> news:c%T0k.231$Ps.110@kovat.provo.novell.com...
>> This is a function I wrote in c#.
>>
>>
>>
>> public bool GetDLMembers(string display_name, out List<GroupMember>
>> members)
>>
>> {
>>
>> members = new List<GroupMember>();
>>
>> RefreshSystemAddressBook();
>>
>> try
>>
>> {
>>
>> if (m_ab_groups.ContainsKey(display_name))
>>
>> {
>>
>> foreach (GroupMember gm in m_ab_groups[display_name].members)
>>
>> {
>>
>> if (String.IsNullOrEmpty(gm.name) || String.IsNullOrEmpty(gm.email))
>>
>> continue;
>>
>> members.Add(gm);
>>
>> }
>>
>> if (members.Count > 0)
>>
>> return true;
>>
>> }
>>
>> }
>>
>> catch
>>
>> {
>>
>> return false;
>>
>> }
>>
>> return false;
>>
>> }
>>
>>
>>
>> "Ray" <ray@test.de> wrote in message
>> news:Pb7Ij.1290$fC5.338@kovat.provo.novell.com...
>>> Hi fellow soapers,
>>>
>>> I just noted in disbelieve,
>>> that if you call getDistribution() for a sent mail item over SOAP,
>>> for a mail which had a distribution list as a recipient,
>>> that you don't get all the recipient stats for all members for
>>> that distribution list.
>>>
>>> One does get all the stats for regular users, but not for groups/DLs.
>>>
>>> How can I get the recipient stats for the members of a group/DL
>>> for a sent item ?
>>>
>>> ( The GW client shows them just fine. )
>>>
>>> Ray.
>>>
>>>
>>>

>>
>>

>
>



0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: mail.getDistribution ()

When you get the items, do you put "members recipients recipientStatus"
in the view?

Preston

>>> On Monday, June 09, 2008 at 2:49 AM, Ray<ray@test.de> wrote:


> Hi Martin,
>
> thanks for the code.
> I agree it is possible to resolve the members of a group.
> But what I need is the recipient status you see in the "Properties"
> tab in the GroupWise client for _every_ member of the group.
>
> Just as is displayed in that tab.
>
> For example, lets say I send an appointment to one group of 3 developers.
>
> Now in the properties tab I can see the 3 members and I can see each user
> and what they did with that appointment. ( opended, accepted, deleted,
> etc. )
>
> Now in SOAP I just get the group name and I don't get any status

information
> for any member.
>
> So thats what I am trying to get from Preston. 🙂
>
> Kind regards,
> Ray.
>
>
> "Martin Olsen" <marty@lightspeedsystems.com> schrieb im Newsbeitrag
> news:w3U0k.234$Ps.64@kovat.provo.novell.com...
>> Here is the other function I reference:
>>
>> private void RefreshSystemAddressBook()
>> {
>>
>> TimeSpan time_span = DateTime.Now - m_ab_last_refresh;
>> if (m_ab_traversed && time_span.TotalHours < 1.0)
>> return;
>>
>> Console.WriteLine("DEBUG SOAP: Refreshing system address book.");
>>
>> m_ab_last_refresh = DateTime.Now;
>> m_ab_traversed = true;
>>
>> try
>> {
>>
>> getAddressBookListResponse book_response =
>> m_gwb.getAddressBookListRequest(new getAddressBookListRequest());
>>
>> List<string> container_list = new List<string>();
>>
>> if (book_response.status.code != 0)
>> return;
>>
>> foreach (AddressBook address_book in book_response.books)
>> {
>> if (!address_book.isPersonal)
>> {
>> container_list.Add(address_book.id);
>> }
>> }
>>
>>
>> m_ab_groups.Clear();
>>
>> getItemsRequest items_request = new getItemsRequest();
>> Filter filter = new Filter();
>> FilterEntry filter_entry = new FilterEntry();
>> filter_entry.op = FilterOp.eq;
>> filter_entry.field = "@type";
>> filter_entry.value = "Group";
>> filter.element = filter_entry;
>> items_request.filter = filter;
>> items_request.view = "name members";
>>
>> foreach (string container in container_list)
>> {
>> items_request.container = container;
>>
>> getItemsResponse items_response =
>> m_gwb.getItemsRequest(items_request);
>>
>> if (items_response.status.code == 0)
>> {
>> foreach (Item item in items_response.items)
>> {
>> if (item == null || item.name == null || ((Group)item).members ==
>> null)
>> continue;
>>
>> m_ab_groups.Add(((Group)item).name, (Group)item);
>> }
>> }
>> }
>>
>> return;
>>
>> }
>>
>> catch
>> {
>> return;
>> }
>> }
>> "Martin Olsen" <marty@lightspeedsystems.com> wrote in message
>> news:c%T0k.231$Ps.110@kovat.provo.novell.com...
>>> This is a function I wrote in c#.
>>>
>>>
>>>
>>> public bool GetDLMembers(string display_name, out List<GroupMember>
>>> members)
>>>
>>> {
>>>
>>> members = new List<GroupMember>();
>>>
>>> RefreshSystemAddressBook();
>>>
>>> try
>>>
>>> {
>>>
>>> if (m_ab_groups.ContainsKey(display_name))
>>>
>>> {
>>>
>>> foreach (GroupMember gm in m_ab_groups[display_name].members)
>>>
>>> {
>>>
>>> if (String.IsNullOrEmpty(gm.name) || String.IsNullOrEmpty(gm.email))
>>>
>>> continue;
>>>
>>> members.Add(gm);
>>>
>>> }
>>>
>>> if (members.Count > 0)
>>>
>>> return true;
>>>
>>> }
>>>
>>> }
>>>
>>> catch
>>>
>>> {
>>>
>>> return false;
>>>
>>> }
>>>
>>> return false;
>>>
>>> }
>>>
>>>
>>>
>>> "Ray" <ray@test.de> wrote in message
>>> news:Pb7Ij.1290$fC5.338@kovat.provo.novell.com...
>>>> Hi fellow soapers,
>>>>
>>>> I just noted in disbelieve,
>>>> that if you call getDistribution() for a sent mail item over SOAP,
>>>> for a mail which had a distribution list as a recipient,
>>>> that you don't get all the recipient stats for all members for
>>>> that distribution list.
>>>>
>>>> One does get all the stats for regular users, but not for groups/DLs.
>>>>
>>>> How can I get the recipient stats for the members of a group/DL
>>>> for a sent item ?
>>>>
>>>> ( The GW client shows them just fine. )
>>>>
>>>> Ray.
>>>>
>>>>
>>>>
>>>
>>>

>>
>>

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: mail.getDistribution ()


Hi Preston,

thanks for chiming in.

Yes, I use this view:
"default", "message", "recipients", "attachments", "peek", "members",
"recipientStatus"

And I use cursors.

And this is what I get back:
TestM1 is a DistributionList or Group ( would this be relevant ? )
It has the Users TestB1 and TestB2 as members.

<RecipientList>
<Recipient>
<DisplayName>TestM1</DisplayName>
<DistributionType>TO</DistributionType>
<Email>TestM1@test.de</Email>
<Uuid>85542A01-18B6-0000-AD7C-000C296FA79A</Uuid>
<RecipientType>SystemGroup</RecipientType>
<Event><Name>Delivered</Name><Time>2008-06-10T09:45:05Z</Time></Event>
</Recipient>
</RecipientList>

The XML format is my own.
But the values come from the POA.

This is still 7.0.3 not Bonsai mind you.

As I understand that there will be a fix/enhancement for this
in Bonsai. ( Which I have not yet tested )

Kind regards,
Ray.


"Preston Stephenson" <PStephenson@gw.novell.com> schrieb im Newsbeitrag
news:484CCA7F.07F1.0037.1@gw.novell.com...
> When you get the items, do you put "members recipients recipientStatus"
> in the view?
>
> Preston
>
>>>> On Monday, June 09, 2008 at 2:49 AM, Ray<ray@test.de> wrote:

>
>> Hi Martin,
>>
>> thanks for the code.
>> I agree it is possible to resolve the members of a group.
>> But what I need is the recipient status you see in the "Properties"
>> tab in the GroupWise client for _every_ member of the group.
>>
>> Just as is displayed in that tab.
>>
>> For example, lets say I send an appointment to one group of 3 developers.
>>
>> Now in the properties tab I can see the 3 members and I can see each user
>> and what they did with that appointment. ( opended, accepted, deleted,
>> etc. )
>>
>> Now in SOAP I just get the group name and I don't get any status

> information
>> for any member.
>>
>> So thats what I am trying to get from Preston. 🙂
>>
>> Kind regards,
>> Ray.
>>
>>
>> "Martin Olsen" <marty@lightspeedsystems.com> schrieb im Newsbeitrag
>> news:w3U0k.234$Ps.64@kovat.provo.novell.com...
>>> Here is the other function I reference:
>>>
>>> private void RefreshSystemAddressBook()
>>> {
>>>
>>> TimeSpan time_span = DateTime.Now - m_ab_last_refresh;
>>> if (m_ab_traversed && time_span.TotalHours < 1.0)
>>> return;
>>>
>>> Console.WriteLine("DEBUG SOAP: Refreshing system address book.");
>>>
>>> m_ab_last_refresh = DateTime.Now;
>>> m_ab_traversed = true;
>>>
>>> try
>>> {
>>>
>>> getAddressBookListResponse book_response =
>>> m_gwb.getAddressBookListRequest(new getAddressBookListRequest());
>>>
>>> List<string> container_list = new List<string>();
>>>
>>> if (book_response.status.code != 0)
>>> return;
>>>
>>> foreach (AddressBook address_book in book_response.books)
>>> {
>>> if (!address_book.isPersonal)
>>> {
>>> container_list.Add(address_book.id);
>>> }
>>> }
>>>
>>>
>>> m_ab_groups.Clear();
>>>
>>> getItemsRequest items_request = new getItemsRequest();
>>> Filter filter = new Filter();
>>> FilterEntry filter_entry = new FilterEntry();
>>> filter_entry.op = FilterOp.eq;
>>> filter_entry.field = "@type";
>>> filter_entry.value = "Group";
>>> filter.element = filter_entry;
>>> items_request.filter = filter;
>>> items_request.view = "name members";
>>>
>>> foreach (string container in container_list)
>>> {
>>> items_request.container = container;
>>>
>>> getItemsResponse items_response =
>>> m_gwb.getItemsRequest(items_request);
>>>
>>> if (items_response.status.code == 0)
>>> {
>>> foreach (Item item in items_response.items)
>>> {
>>> if (item == null || item.name == null || ((Group)item).members ==
>>> null)
>>> continue;
>>>
>>> m_ab_groups.Add(((Group)item).name, (Group)item);
>>> }
>>> }
>>> }
>>>
>>> return;
>>>
>>> }
>>>
>>> catch
>>> {
>>> return;
>>> }
>>> }
>>> "Martin Olsen" <marty@lightspeedsystems.com> wrote in message
>>> news:c%T0k.231$Ps.110@kovat.provo.novell.com...
>>>> This is a function I wrote in c#.
>>>>
>>>>
>>>>
>>>> public bool GetDLMembers(string display_name, out List<GroupMember>
>>>> members)
>>>>
>>>> {
>>>>
>>>> members = new List<GroupMember>();
>>>>
>>>> RefreshSystemAddressBook();
>>>>
>>>> try
>>>>
>>>> {
>>>>
>>>> if (m_ab_groups.ContainsKey(display_name))
>>>>
>>>> {
>>>>
>>>> foreach (GroupMember gm in m_ab_groups[display_name].members)
>>>>
>>>> {
>>>>
>>>> if (String.IsNullOrEmpty(gm.name) || String.IsNullOrEmpty(gm.email))
>>>>
>>>> continue;
>>>>
>>>> members.Add(gm);
>>>>
>>>> }
>>>>
>>>> if (members.Count > 0)
>>>>
>>>> return true;
>>>>
>>>> }
>>>>
>>>> }
>>>>
>>>> catch
>>>>
>>>> {
>>>>
>>>> return false;
>>>>
>>>> }
>>>>
>>>> return false;
>>>>
>>>> }
>>>>
>>>>
>>>>
>>>> "Ray" <ray@test.de> wrote in message
>>>> news:Pb7Ij.1290$fC5.338@kovat.provo.novell.com...
>>>>> Hi fellow soapers,
>>>>>
>>>>> I just noted in disbelieve,
>>>>> that if you call getDistribution() for a sent mail item over SOAP,
>>>>> for a mail which had a distribution list as a recipient,
>>>>> that you don't get all the recipient stats for all members for
>>>>> that distribution list.
>>>>>
>>>>> One does get all the stats for regular users, but not for groups/DLs.
>>>>>
>>>>> How can I get the recipient stats for the members of a group/DL
>>>>> for a sent item ?
>>>>>
>>>>> ( The GW client shows them just fine. )
>>>>>
>>>>> Ray.
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>



0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.