Reads all mesasge info records for the given folder and calls callback
for them.
this |
a DB |
folder_name |
full name of the folder |
callback |
callback to call for each found row |
user_data |
user data for the |
0 on success, -1 on error |