This method should be called from Command.execute() or a background thread.
Parameters: folder - selected folderParameters: uid - selected messageParameters: mediator - top-level mediatorthrows: Exception -