Red Hat Bugzilla – Bug 145710
"U" command doesn't work in mail
Last modified: 2007-11-30 17:10:58 EST
Description of problem:
According to the man page for mail(1):
unread (U) Takes a message list and marks each message as not
having been read.
The "unread" command works just fine, but mail does not handle the
shortcut "U" command.
> 40 firstname.lastname@example.org Thu Jan 20 13:22 121/5409 "Fedora Core 3
& U 40
Unknown command: "U"
& unread 40
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Open mail
2. Read a message
3. Type "U <num>" where <num> is the number of the email you'd like to
mark as unread
Message is marked as unread
I'll try to look into why this is later.
The problem seems to come from the way that isprefix() in lex.c looks
up commands. It simply compares each character in the parsed word to
the list of command names. Since there is no command starting with
"U", it fails.
I'll attach a patch that fixes the problem shortly.
Created attachment 110036 [details]
Patch to add "U" command
This patch adds a "U" command, which is essentially a shortcut for unread as
the man page states.
Tested it locally and it works.
I realize folks are busy, but is there any interest in this bug? I'm
sure it's probably present in FC4/RHEL4 as well.
I'd check the changes into CVS myself, but I don't have a developer
Thank you for your notices.
Thanks for the patch.
The problem was fixed.
Thanks. Will this be released as an update to FC3, or will it go into
The fixed release is 8.1.1-41.
It will be in FC4.
Thank you for your bug report and patch.