39 |
* "po:username". This will cause movemail to open a connection to |
* "po:username". This will cause movemail to open a connection to |
40 |
* a pop server running on $MAILHOST (environment variable). Movemail |
* a pop server running on $MAILHOST (environment variable). Movemail |
41 |
* must be setuid to root in order to work with POP. |
* must be setuid to root in order to work with POP. |
42 |
* |
* |
43 |
* New module: popmail.c |
* New module: popmail.c |
44 |
* Modified routines: |
* Modified routines: |
45 |
* main - added code within #ifdef MAIL_USE_POP; added setuid (getuid ()) |
* main - added code within #ifdef MAIL_USE_POP; added setuid (getuid ()) |
46 |
* after POP code. |
* after POP code. |
47 |
* New routines in movemail.c: |
* New routines in movemail.c: |
48 |
* get_errmsg - return pointer to system error message |
* get_errmsg - return pointer to system error message |
49 |
* |
* |
458 |
|
|
459 |
pfatal_with_name (inname); |
pfatal_with_name (inname); |
460 |
} |
} |
461 |
|
|
462 |
{ |
{ |
463 |
char buf[1024]; |
char buf[1024]; |
464 |
|
|
838 |
error ("Error from POP server: %s", pop_error, 0); |
error ("Error from POP server: %s", pop_error, 0); |
839 |
return (1); |
return (1); |
840 |
} |
} |
841 |
|
|
842 |
return (0); |
return (0); |
843 |
} |
} |
844 |
|
|
913 |
line++; |
line++; |
914 |
len--; |
len--; |
915 |
} |
} |
916 |
if (fwrite (line, 1, len, mbf) != len) |
if (fwrite (line, 1, len, mbf) != len) |
917 |
return (NOTOK); |
return (NOTOK); |
918 |
if (fputc (0x0a, mbf) == EOF) |
if (fputc (0x0a, mbf) == EOF) |
919 |
return (NOTOK); |
return (NOTOK); |