Traceback (most recent call last):
File "/srv/modoboa/env/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/srv/modoboa/env/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3.10/contextlib.py", line 79, in inner
return func(*args, **kwds)
File "/srv/modoboa/env/lib/python3.10/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapper_view
return view_func(request, *args, **kwargs)
File "/srv/modoboa/env/lib/python3.10/site-packages/modoboa/admin/lib.py", line 47, in wrapped_f
return f(request, *args, **kwargs)
File "/srv/modoboa/env/lib/python3.10/site-packages/modoboa_webmail/views.py", line 656, in index
response = globals()[action](request)
File "/srv/modoboa/env/lib/python3.10/site-packages/modoboa_webmail/views.py", line 523, in reply
return new_compose_form(request, "reply", mbox, mailid)
File "/srv/modoboa/env/lib/python3.10/site-packages/modoboa_webmail/views.py", line 508, in new_compose_form
email = modclass(form, request, "%s:%s" % (mbox, mailid), links=True)
File "/srv/modoboa/env/lib/python3.10/site-packages/modoboa_webmail/lib/imapemail.py", line 282, in __init__
super().__init__(*args, **kwargs)
File "/srv/modoboa/env/lib/python3.10/site-packages/modoboa_webmail/lib/imapemail.py", line 257, in __init__
getattr(self, "_modify_%s" % self.dformat)()
File "/srv/modoboa/env/lib/python3.10/site-packages/modoboa_webmail/lib/imapemail.py", line 312, in _modify_plain
super(ReplyModifier, self)._modify_plain()
File "/srv/modoboa/env/lib/python3.10/site-packages/modoboa_webmail/lib/imapemail.py", line 260, in _modify_plain
self.body = re.sub("</?pre>", "", self.body)
File "/usr/lib/python3.10/re.py", line 209, in sub
return _compile(pattern, flags).sub(repl, string, count)
Exception Type: TypeError at /webmail/
Exception Value: expected string or bytes-like object
Expected behavior
I can reply to an email.
Video/Screenshot link (optional)
I can reliably reproduce this. Happy to provide additional information or perform additional debugging.
Impacted versions
Steps to reproduce
Current behavior
Expected behavior
I can reply to an email.
Video/Screenshot link (optional)
I can reliably reproduce this. Happy to provide additional information or perform additional debugging.