[DragonFlyBSD - Submit #3375] (Closed) [PATCH] mail(1): adapt to terminal size changes.
bugtracker-admin at leaf.dragonflybsd.org
bugtracker-admin at leaf.dragonflybsd.org
Fri Dec 20 17:29:48 PST 2024
Issue #3375 has been updated by liweitianux.
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.
----------------------------------------
Submit #3375: [PATCH] mail(1): adapt to terminal size changes.
http://bugs.dragonflybsd.org/issues/3375#change-14569
* Author: neitzel
* Status: Closed
* Priority: Normal
* Assignee: liweitianux
* Category: Userland
* Target version: 6.6
* Start date: 2024-12-16
----------------------------------------
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 root at freddie.marshla Sun Dec 15 03:01 89/3080 "freddie.marshlabs.gae"
N 2 root at freddie.marshla Sun Dec 15 03:01 120/5253 "freddie.marshlabs.gae"
N 3 root at freddie.marshla Mon Dec 16 03:14 82/2880 "freddie.marshlabs.gae"
N 4 root at freddie.marshla 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--------------------------------
0001-mail-1-adapt-to-terminal-size-changes.patch (1.7 KB)
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account
More information about the Submit
mailing list