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 davej Thu Jan 20 13:22 121/5409 "Fedora Core 3 Update:" & U 40 Unknown command: "U" & unread 40 & Version-Release number of selected component (if applicable): mailx-8.1.1-33 How reproducible: Always 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 Actual results: Unknown command Expected results: Message is marked as unread Additional info: 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 account.
Thank you for your notices. Thanks for the patch. The problem was fixed. Ivana Varekova
Thanks. Will this be released as an update to FC3, or will it go into FC4?
The fixed release is 8.1.1-41. It will be in FC4. Thank you for your bug report and patch. Ivana Varekova