[DragonFlyBSD - Submit #3375] (New) [PATCH] mail(1): adapt to terminal size changes.

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Mon Dec 16 08:49:37 PST 2024


Issue #3375 has been reported by neitzel.

----------------------------------------
Submit #3375: [PATCH] mail(1):  adapt to terminal size changes.
http://bugs.dragonflybsd.org/issues/3375

* Author: neitzel
* Status: New
* Priority: Normal
* 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