modoboa / modoboa-webmail

The webmail of Modoboa
MIT License
73 stars 48 forks source link

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

Closed mohamed-ghayyad closed 2 years ago

mohamed-ghayyad commented 2 years ago

Impacted versions

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

mohamed-ghayyad commented 2 years ago

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 }}