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 function. Anyway the simple fix (not necessarily the best) is to apply the attached patch which builds inc with ruserpass included in the nmh distribution. How reproducible: Always Steps to Reproduce: 1. inc -host pop_server 2. 3. Actual Results: inc doesn't prompt for a password and after a delay reports: inc: -ERR [AUTH] Password supplied for "user" is incorrect. Expected Results: inc should display: Password (pop_server:user): and after (correct) entry of the password retrieve the user's mail from the pop server. Additional info: 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 getpass(1): 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 but 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.