(account, folder)
return jsonify(copied=True)
Copy emails from one folder to another within a given account.
Copy emails from one folder to another within a given account.
Copy emails from one folder to another within a given account .
def api_copy_account_emails(account, folder) -> Response:
    '''
    Copy emails from one folder to another within a given account.
    '''

    request_data = request.get_json()
    message_uids = get_or_400(request_data, 'message_uids')
    new_folder = get_or_400(request_data, 'new_folder')

    copy_folder_emails(account, folder, message_uids, new_folder)

    return jsonify(copied=True)
def api_copy_account_emails ( account , folder ) -> Response : request_data = request . get_json ( ) message_uids = get_or_400 ( request_data , 'message_uids' ) new_folder = get_or_400 ( request_data , 'new_folder' ) copy_folder_emails ( account , folder , message_uids , new_folder ) return jsonify ( copied = True )