[messagingframework] Don't emit warnings when inquiring for account if not found.
This is related to mkcal!37 (merged). The idea is that inquiring for a
QMailAccount from an id, may not emit warning for an invalid account id or an account that don't have e-mail capabilities.
The changes are difficult to read because they are in the patch file, sorry. Mainly, it's about not emitting the warning in
::getEmailAccount() but emit it in callers when it makes sense (for example not in the idExists() function). Then, return
Success in the
::attemptAccount() function when id is invalid or corresponds to a valid account without e-mail capabilities. This is a private routine, so we can change its return value and check the caller easily. Here it's called only once in the
::account() function via the
repeatedly() helper. Changing
::attemptAccount() will avoid the warning there, with the same result on the returned QMailAccount being untouched and thus leaving it invalid.