mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-27 18:05:58 +03:00
[GH-ISSUE #586] Bug: customer replying to the message with empty 'Subject' field generate AttributeError: 'ReplyModifier' object has no attribute 'Subject' #551
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#551
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mrh666 on GitHub (Jul 24, 2014).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/586
Originally assigned to: @tonioo on GitHub.
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 113, in get_response
response = callback(request, _callback_args, *_callback_kwargs)
File "/usr/lib/python2.6/site-packages/django/contrib/auth/decorators.py", line 25, in _wrapped_view
return view_func(request, _args, *_kwargs)
File "/usr/lib/python2.6/site-packages/modoboa/extensions/admin/lib.py", line 27, in wrapped_f
return f(request, _args, *_kwargs)
File "/usr/lib/python2.6/site-packages/modoboa/extensions/webmail/views.py", line 533, in index
response = globals()action
File "/usr/lib/python2.6/site-packages/modoboa/extensions/webmail/views.py", line 428, in reply
return new_compose_form(request, "reply", mbox, mailid)
File "/usr/lib/python2.6/site-packages/modoboa/extensions/webmail/views.py", line 412, in new_compose_form
email = modclass(form, request, True, "%s:%s" % (mbox, mailid), links="1")
File "/usr/lib/python2.6/site-packages/modoboa/extensions/webmail/lib/imapemail.py", line 249, in init
m = re.match(r"re\s_:\s_.+", self.Subject.lower())
AttributeError: 'ReplyModifier' object has no attribute 'Subject'
<WSGIRequest
path:/webmail/,
GET:<QueryDict: {u'action': [u'reply'], u'mailid': [u'2977'], u'mbox': [u'INBOX'], u'_': [u'1406213347428'], u'links': [u'1']}>,
POST:<QueryDict: {}>,
COOKIES:{'ga': 'GA1.2.961441936.1398947327',
'csrftoken': '4QsFu6kLM0VmOEoTpk1UDAjXbVhm4fHD',
'sessionid': 'qyef1out5ynzbhjjsfbvtyzx01wz9x07'},
META:{'CONTENT_LENGTH': '',
'CONTENT_TYPE': '',
u'CSRF_COOKIE': u'4QsFu6kLM0VmOEoTpk1UDAjXbVhm4fHD',
'DOCUMENT_ROOT': '/home/username/modoboa/modoboa',
'HTTP_ACCEPT': 'application/json, text/javascript, /; q=0.01',
'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
'HTTP_CONNECTION': 'keep-alive',
'HTTP_COOKIE': 'ga=GA1.2.961441936.1398947327; csrftoken=4QsFu6kLM0VmOEoTpk1UDAjXbVhm4fHD; sessionid=qyef1out5ynzbhjjsfbvtyzx01wz9x07',
'HTTP_DNT': '1',
'HTTP_HOST': 'my.hostname',
'HTTP_REFERER': 'http://my.hostname/webmail/',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36',
'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
'PATH_INFO': u'/webmail/',
'QUERY_STRING': 'action=reply&mbox=INBOX&mailid=2977&links=1&=1406213347428',
'REMOTE_ADDR': 'XX.XX.XX.XX',
'REMOTE_PORT': '38984',
'REQUEST_METHOD': 'GET',
'REQUEST_URI': '/webmail/?action=reply&mbox=INBOX&mailid=2977&links=1&=1406213347428',
u'SCRIPT_NAME': u'',
'SERVER_NAME': 'my.hostname',
'SERVER_PORT': 'myport',
'SERVER_PROTOCOL': 'HTTP/1.1',
'UWSGI_APPID': 'my.hostname:myport|',
'UWSGI_SCRIPT': 'modoboa.wsgi:application',
'uwsgi.node': 'my.hostname',
'uwsgi.version': '2.0.4',
'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x1fbf5d0>,
'wsgi.file_wrapper': ,
'wsgi.input': <uwsgi._Input object at 0x34ec468>,
'wsgi.multiprocess': True,
'wsgi.multithread': False,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)}>