Home

Results 1 to 2 of 2

Thread: Message Counts

Hybrid View

  1. #1
    Join Date
    Jun 2008
    Posts
    8

    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

  2. #2
    Preston Stephenson NNTP User

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •