API GetInboxItemLink

Returns the itemLink of an item attached to a message in the player's mailbox.

itemLink = GetInboxItemLink(message, attachment)

Arguments

 * message : Number - The index of the message to query, in the range of [1,GetInboxNumItems]
 * attachment : Integer - The index of the attachment to query, in the range of [1,ATTACHMENTS_MAX_RECEIVE]

Returns

 * itemLink : itemLink - The itemLink for the specified item

Examples
To determine which messages are currently displayed in the mailbox frame, check the "pageNum" property set on the InboxFrame and do the math:

local maxIndex = GetInboxNumItems if maxIndex > 0 then local firstIndex = ((InboxFrame.pageNum - 1) * INBOXITEMS_TO_DISPLAY) + 1 local lastIndex = math.min(maxIndex, firstIndex + (INBOXITEMS_TO_DISPLAY - 1)) print("Currently displaying messages", firstIndex, "though", lastIndex) else print("No messages to display") end