Any perishable item that is in your mailbox will automatically be put into your knight's inventory, and players would get a pop-up message saying "Welcome back! You were gone for over 30 days, and so all items that were sitting in your mailbox have automatically been transferred to your arsenal."
Account-wide mails would transfer the item to the knight that was last logged in.