When I use the "mail" command, it prints a list of messages in my inbox in a format like this: 1 Super User Mon Jun 9 17:13 86/4716 Complete Registration With Stack Exchange However I've noticed that it does this with the oldest messages first. Is there a way to change this behaviour?
Asked
Active
Viewed 1.7k times
13
3 Answers
30
For people still looking for an answer in the base mail application, the best solution I could find is running the h$ command inside mail to jump to the bottom of the list.
(Source)
Stephen Rauch
- 3,296
bhygate
- 401
2
To make this as an answer, I'd suggest to use pine.
The mail command really isn't made for interactive use. It's for bare bones, your system is completely hosed, and you're searching for some email from cron. For anything else, use something newer and designed for day to day use, such as pine or mutt.
Rich Homolka
- 32,350
0
There is a program here which accomplishes the in-place sorting of a mbox format file by the "Date" header.
Dave Ankin
- 101
- 4