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
No related branches found
No related tags found
No related merge requests found
...@@ -178,11 +178,11 @@ function showMessage(header) { ...@@ -178,11 +178,11 @@ function showMessage(header) {
var body = msgBase.get_msg_body(header.number); var body = msgBase.get_msg_body(header.number);
msgBase.close(); msgBase.close();
headerFrame.putmsg( headerFrame.putmsg(
hfg + format("%15s", "Subject: ") + sffg + header.subject hfg + format("%15s", "Subject: ") + sffg + header.subject.substr(0, 65)
+ "\r\n" + + "\r\n" +
hfg + format("%15s", "From: ") + sffg + header.from hfg + format("%15s", "From: ") + sffg + header.from.substr(0, 65)
+ "\r\n" + + "\r\n" +
hfg + format("%15s", "To: ") + sffg + header.to hfg + format("%15s", "To: ") + sffg + header.to.substr(0, 65)
+ "\r\n" + + "\r\n" +
hfg + format("%15s", "Date: ") + sffg + system.timestr(header.when_written_time) 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