[qmf] Introduce discovery of authentication from the anounced capabilities(IMAP/SMTP)

There is no need for the intermediate variable 'discoveredAuth'.