@require_POST
@ensure_csrf_cookie
@cache_control(no_cache=True, no_store=True, must_revalidate=True)
@require_level('staff')
def list_email_content(request, course_id):
 course_id = SlashSeparatedCourseKey.from_deprecated_string(course_id)
 task_type = 'bulk_course_email'
 emails = lms.djangoapps.instructor_task.api.get_instructor_task_history(course_id, task_type=task_type)
 response_payload = {'emails': map(extract_email_features, emails)}
 return JsonResponse(response_payload)

@ require_POST @ ensure_csrf_cookie @ cache_control ( no_cache = True , no_store = True , must_revalidate = True ) @ require_level ( 'staff' ) def list_email_content ( request , course_id ) : course_id = SlashSeparatedCourseKey . from_deprecated_string ( course_id ) task_type = 'bulk_course_email' emails = lms . djangoapps . instructor_task . api . get_instructor_task_history ( course_id , task_type = task_type ) response_payload = { 'emails' : map ( extract_email_features , emails ) } return JsonResponse ( response_payload )
list the content of bulk emails sent .