API:TakeInboxItem

Take the items attached to an inbox message.
TakeInboxItem(mailindex)
== Parameter ==
:;mailindex
::Integer - the index of the inbox message {1 to API:GetInboxNumItems}
Note that there is or will be a second parameter to specify the item index in case multiple items are attached to a inbox message. This is currently not the case, but may be possible in future.
== Returns ==
Nothing
== Notes ==
* It may be required to "read" the mail first. This can be done by API:GetInboxText.
* You should check that you bag has enough free slots to store the attached items. You could do that with API:GetBagCount. It seems you can call this function directly after another for a bunch of Inbox messages. All the Attached items will be added to you bag queue, but make sure that you didn't overload the bag queue!
Category:API Mail Function