The parameter folder of the all action in the contacts module will an optional paramter in the future. If not set, the contents of all visible folders are used instead.