First step of email actions

Just to have some feedback before going further
I'm unable to find a case where `selectedAccount` is `null`, so the path that leads me to add this test has probably been fixed. But I suggest being defensive and keeping this test.