Skip to content
Snippets Groups Projects
Commit c3c9fd6f authored by echicken's avatar echicken
Browse files

Truncate long subjects & names in the header portion of the message view.

parent e1627d65
Branches
Tags
No related merge requests found
......@@ -178,11 +178,11 @@ function showMessage(header) {
var body = msgBase.get_msg_body(header.number);
msgBase.close();
headerFrame.putmsg(
hfg + format("%15s", "Subject: ") + sffg + header.subject
hfg + format("%15s", "Subject: ") + sffg + header.subject.substr(0, 65)
+ "\r\n" +
hfg + format("%15s", "From: ") + sffg + header.from
hfg + format("%15s", "From: ") + sffg + header.from.substr(0, 65)
+ "\r\n" +
hfg + format("%15s", "To: ") + sffg + header.to
hfg + format("%15s", "To: ") + sffg + header.to.substr(0, 65)
+ "\r\n" +
hfg + format("%15s", "Date: ") + sffg + system.timestr(header.when_written_time)
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment