1. Get array of messages if $id is array.
2. Select folder returns data (number of messages).