modoboa/modoboa-webmail

Message's title in the sent tab isn't truncated

mohamed-ghayyad opened this issue · 1 comments

Impacted versions

  • OS Type: Debian 11
  • OS Version: 11.2
  • Database Type: PostgreSQL
  • Modoboa: 2
  • installer used: Yes
  • Webserver: Nginx

Behavior

Send a message with a long title.

Result

overflow of the title with the message date

Expected behavior

truncated title.

Screenshot

https://i.imgur.com/3kcjoLu.png

Quick patch
in
/srv/modoboa/env/lib/python3.9/site-packages/modoboa_webmail/templates/modoboa_webmail/email_list.html
Add |truncatechars:60 to {{ email.subject|parse_imap_header:"subject" }}
Like
{{ email.subject|parse_imap_header:"subject"|truncatechars:60 }}