Processing documents from the Inbox