mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-07 15:00:34 -08:00
*** empty log message ***
This commit is contained in:
parent
bc98c79cb7
commit
cecf0f21e1
1 changed files with 5 additions and 1 deletions
|
|
@ -392,6 +392,7 @@ xmalloc (size)
|
|||
#include <netinet/in.h>
|
||||
#include <netdb.h>
|
||||
#include <stdio.h>
|
||||
#include <pwd.h>
|
||||
|
||||
#ifdef USG
|
||||
#include <fcntl.h>
|
||||
|
|
@ -427,6 +428,9 @@ popmail (user, outfile)
|
|||
register int i;
|
||||
int mbfi;
|
||||
FILE *mbf;
|
||||
struct passwd *pw = (struct passwd *) getpwuid (getuid ());
|
||||
if (pw == NULL)
|
||||
fatal ("cannot determine user name");
|
||||
|
||||
host = getenv ("MAILHOST");
|
||||
if (host == NULL)
|
||||
|
|
@ -445,7 +449,7 @@ popmail (user, outfile)
|
|||
}
|
||||
|
||||
if (pop_command ("USER %s", user) == NOTOK
|
||||
|| pop_command ("RPOP %s", user) == NOTOK)
|
||||
|| pop_command ("RPOP %s", pw->pw_name) == NOTOK)
|
||||
{
|
||||
pop_command ("QUIT");
|
||||
fatal (Errmsg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue