Project

General

Profile

Actions

Submit #3375

closed

[PATCH] mail(1): adapt to terminal size changes.

Added by neitzel 5 days ago. Updated about 13 hours ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Userland
Target version:
Start date:
12/16/2024
Due date:
% Done:

100%

Estimated time:

Description

Here's a trivial patch to improve mail(1)/mailx(1)/Mail(1) a little bit:
take notice of terminal/window size changes. To experience the effect:

- run mail(1) in a, say, 80 column terminal window on some
mailbox and "h" to see a header listing, which will typically
have space only for abridged subjects:

& h

N 1 Sun Dec 15 03:01 89/3080 "freddie.marshlabs.gae"

N 2 Sun Dec 15 03:01 120/5253 "freddie.marshlabs.gae"
N 3 Mon Dec 16 03:14 82/2880 "freddie.marshlabs.gae"
N 4 Mon Dec 16 03:15 119/5252 "freddie.marshlabs.gae"
&

- resize the terminal width to, say, 132 columns.
- re-issue the "h".

Without this patch, the subjects will still be abridged as before,
with the patch the new extra space gets used.

Martin

Files

Actions #1

Updated by liweitianux about 13 hours ago

  • Category set to Userland
  • Status changed from New to Closed
  • Assignee set to liweitianux
  • % Done changed from 0 to 100

Committed to master and 6.4 branch. Thank you.

Actions

Also available in: Atom PDF