Possibility to collapsed threads with persistance

The user have the possibility to collapse threads of emails. 
The information about the collapsed threads are kept inside the user settings under the module Mail saved by the key : threadsCollapsed