Commit fb3c3bb3f160cb76ab5dc7f3d8567cbdacfa736c
1 parent
ee8ad8cf
Exists in
master
and in
39 other branches
Using new mailman-api version
Showing
1 changed file
with
6 additions
and
5 deletions
Show diff stats
src/super_archives/views.py
... | ... | @@ -73,11 +73,12 @@ class ThreadView(View): |
73 | 73 | except Thread.DoesNotExist: |
74 | 74 | raise http.Http404 |
75 | 75 | |
76 | - data = {} | |
77 | - data['from'] = '{} <{}>'.format(request.user.get_full_name(), | |
78 | - request.user.email) | |
79 | - data['subject'] = thread.message_set.first().subject_clean | |
80 | - data['body'] = request.POST.get('emailbody', '').strip() | |
76 | + data = { | |
77 | + 'email_from': request.user.email, | |
78 | + 'name_from': request.user.get_full_name(), | |
79 | + 'subject': thread.message_set.first().subject_clean, | |
80 | + 'body': request.POST.get('emailbody', '').strip(), | |
81 | + } | |
81 | 82 | |
82 | 83 | url = urlparse.urljoin(settings.MAILMAN_API_URL, mailinglist + '/sendmail') |
83 | 84 | ... | ... |