This article is a World of Warcraft API stub. You can help expand it by editing it

API GetInboxNumItems

From Wowpedia
Jump to: navigation, search

numItems, totalItems = GetInboxNumItems()

Reports the number of messages in the client's inbox when the mailbox window is displayed.


if ( totalItems > numItems) then


Uppdated with totalItems in Patch 3.2

After CheckInbox() is called and the inbox populated, this function will report the number of items in the user's inbox.

Ensure that the MAIL_INBOX_UPDATE event has been fired before accessing this function, or it will return 0 numItems.

You access items in the inbox using GetInboxHeaderInfo().

FIXME - Sample code showing use of the mail when at the mailbox or out in the world.