| 6 |
details. |
details. |
| 7 |
|
|
| 8 |
Socket-based mail transport services |
Socket-based mail transport services |
| 9 |
$Id: mail.c,v 1.7 2002/08/07 17:27:01 weaselp Exp $ */ |
$Id: mail.c,v 1.8 2002/08/22 22:23:16 weaselp Exp $ */ |
| 10 |
|
|
| 11 |
|
|
| 12 |
#include "mix3.h" |
#include "mix3.h" |
| 670 |
f = mix_openfile(POP3CONF, "r"); |
f = mix_openfile(POP3CONF, "r"); |
| 671 |
if (f != NULL) |
if (f != NULL) |
| 672 |
while (fgets(cfg, sizeof(cfg), f) != NULL) { |
while (fgets(cfg, sizeof(cfg), f) != NULL) { |
| 673 |
|
if (cfg[0] == '#') |
| 674 |
|
continue; |
| 675 |
if (strchr(cfg, '@')) |
if (strchr(cfg, '@')) |
| 676 |
strchr(cfg, '@')[0] = ' '; |
strchr(cfg, '@')[0] = ' '; |
| 677 |
if (sscanf(cfg, "%127s %127s %127s %4s", user, host, pass, auth) < 3) |
if (sscanf(cfg, "%127s %127s %127s %4s", user, host, pass, auth) < 3) |