[repo] fix bug introduced by 4757:ec9c20c6b9f7, testing for select.selection is not enough to avoid the substep query, we should check there is no interesting restriction (test added)
"""pre 3.6 bw compat"""# pylint: disable-msg=W0614,W0401fromwarningsimportwarnwarn('moved to cubicweb.mail',DeprecationWarning,stacklevel=2)fromcubicweb.mailimport*