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

Same comment on 'discoveredAuth'