faulknja Absent Member.
Absent Member.
998 views

Message Counts

Is there a known bug (I searched and couldn't find anything on it), but,
when I try to get the message/unread count on the Sent folder and on a
shared folder, getCount() and getUnreadCount() both return null even though
there are message in those folders. Any ideas why?

Jim Faulkner
Senior Programmer
Citrus County Board of County Commissioners

E-Mail: Jim.Faulkner@bocc.citrus.fl.us
Phone: (352) 527-5278
Labels (1)
0 Likes
1 Reply
Anonymous_User Absent Member.
Absent Member.

Re: Message Counts

The Sent Items is a special folder. It is a container folder and
a query folder. The Sent Items folder can contain items, but
it does a query on all sent items in the Mailbox, Calender and
Sent Item folders. The function call that returns the counts
is a specialized function. It won't work on shared folders
shared with the user or query folders. To get the counts on
these folders, we would have to read all of the items in the
folder, then throw those items away. The call to get the counts
is very expensive resource wise. To get the counts on the query
and shared folders would be any more expensive. We didn't
feel as the cost was justifiable to expose the feature. We didn't
want to return an error, when everything else with the call
was working. I'll pass on the information to document the
inconsistency.

Preston

>>> On Friday, September 12, 2008 at 6:14 AM, Jim

Faulkner<Jim.Faulkner@bocc.citrus.fl.us> wrote:
> Is there a known bug (I searched and couldn't find anything on it), but,
> when I try to get the message/unread count on the Sent folder and on a
> shared folder, getCount() and getUnreadCount() both return null even

though
> there are message in those folders. Any ideas why?
>
> Jim Faulkner
> Senior Programmer
> Citrus County Board of County Commissioners
>
> E-Mail: Jim.Faulkner@bocc.citrus.fl.us
> Phone: (352) 527-5278

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.