@login_required
def message_list(request, mailbox=None, template_name='messages/message_list.html'):
 message_list = _get_messages(request.user, mailbox)
 return render_to_response(template_name, {'message_list': message_list, 'mailbox': (mailbox or 'archive')}, context_instance=RequestContext(request))

@ login_required def message_list ( request , mailbox = None , template_name = 'messages/message_list.html' ) : message_list = _get_messages ( request . user , mailbox ) return render_to_response ( template_name , { 'message_list' : message_list , 'mailbox' : ( mailbox or 'archive' ) } , context_instance = RequestContext ( request ) )
returns a list of user messages .