(couch_user)
Sends an account confirmation email if necessary (user has just signed up
    and is in an unconfirmed state).

    Returns whether an email was sent or not.
    :param couch_user:
    :return:
Sends an account confirmation email if necessary (user has just signed up
    and is in an unconfirmed state).
Sends an account confirmation email if necessary ( user has just signed up and is in an unconfirmed state ) .
def send_account_confirmation_if_necessary(couch_user):
    """
    Sends an account confirmation email if necessary (user has just signed up
    and is in an unconfirmed state).

    Returns whether an email was sent or not.
    :param couch_user:
    :return:
    """
    if should_send_account_confirmation(couch_user):
        send_account_confirmation(couch_user)
        return True
    else:
        return False
def send_account_confirmation_if_necessary ( couch_user ) : if should_send_account_confirmation ( couch_user ) : send_account_confirmation ( couch_user ) return True else : return False