Red Hat Bugzilla – Bug 41170
inc doesn't prompt for a password when using pop
Last modified: 2007-04-18 12:33:18 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.2-2 i686)
Description of problem:
The man page for inc says:
When using POP, you will normally need to type the pass-
word for your account on the POP server, in order to
retrieve your messages.
However if you run `inc -host pop_server' it doesn't prompt for a password
The problem seems to be not with nmh itself but with the system ruserpass
Anyway the simple fix (not necessarily the best) is to apply the attached
patch which builds inc with ruserpass included in the nmh distribution.
Steps to Reproduce:
1. inc -host pop_server
Actual Results: inc doesn't prompt for a password and after a delay
inc: -ERR [AUTH] Password supplied for "user" is incorrect.
Expected Results: inc should display:
and after (correct) entry of the password retrieve the user's mail from the
nmh built on other OSes (Compaq Tru64 Unix for example) works correctly
presumably because it defaults to using the builtin ruserpass in the
absence of a system supplied function.
The builtin ruserpass calls getpass which is a deprecated function. From
This function is obsolete. Do not use it.
If it's obsolete that probably means there's something better but I don't
know what and don't have time to investigate further.
The workaround is to create a .netrc file with the user name and password
in this environment it's not acceptable to ask users to put passwords in a
plain text file.
Created attachment 18833 [details]
Patch to build nmh with builtin ruserpass function.