Fixes #5378. Makes that folders marked as default are prefered over other folders when savin pending invitation objects
in aren't you making line 1026 and following obsolte wile moving the default folder identification to line 2021?
If this default targetfolder thing is placed at the right position even the get_classification things would work.
Would you please think about that once?