The session is for database saved sessions instead of browser based.
The messages is a cache of the messages headers, functions and names, for faster message view.
The cache is a cache of the folders and also of the mailcount in every folder.
Well just look at the RC files, it is pretty much forward.