X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=options.c;h=5f1739c4f6e4cdbb50c2f1975f6367ca5ff0913b;hb=a23a8cf8ee1da51c4392b9f52e6b72b0c01e3b5e;hp=59674e6d5570796d7878eeb5f2a2d06b5be75bae;hpb=dbb179567dd2e850e0e8327a823d21ee311db823;p=~andy%2Ffetchmail diff --git a/options.c b/options.c index 59674e6d..5f1739c4 100644 --- a/options.c +++ b/options.c @@ -330,8 +330,6 @@ int parsecmdline (int argc /** argument count */, #endif /* SDPS_ENABLE */ else if (strcasecmp(optarg,"pop3") == 0) ctl->server.protocol = P_POP3; - else if (strcasecmp(optarg,"apop") == 0) - ctl->server.protocol = P_APOP; else if (strcasecmp(optarg,"kpop") == 0) { ctl->server.protocol = P_POP3; @@ -389,6 +387,8 @@ int parsecmdline (int argc /** argument count */, ctl->server.authenticate = A_ANY; else if (strcmp(optarg, "msn") == 0) ctl->server.authenticate = A_MSN; + else if (strcmp(optarg, "apop") == 0) + ctl->server.authenticate = A_APOP; else { fprintf(stderr,GT_("Invalid authentication `%s' specified.\n"), optarg); errflag++;