Mercurial > masqmail
comparison src/get.c @ 189:dc89737b27aa
removed the pop-before-smtp (smtp-after-pop) function
this kind of authentication is superseded by SMTP AUTH today
removing it is a step towards removing the POP stuff completely
If you still rely on pop-before-smtp, stay with 0.2.x
or run an arbitrary pop client before
author | meillo@marmaro.de |
---|---|
date | Thu, 15 Jul 2010 10:33:53 +0200 |
parents | f671821d8222 |
children |
comparison
equal
deleted
inserted
replaced
188:bfa7a8b566da | 189:dc89737b27aa |
---|---|
367 } | 367 } |
368 } | 368 } |
369 } | 369 } |
370 } | 370 } |
371 | 371 |
372 gboolean | 372 #endif |
373 pop_before_smtp(gchar * fname) | |
374 { | |
375 gboolean ok = FALSE; | |
376 GList *resolve_list = NULL; | |
377 get_conf *gc = read_get_conf(fname); | |
378 guint flags = 0; | |
379 | |
380 #ifdef ENABLE_RESOLVER | |
381 resolve_list = g_list_append(resolve_list, resolve_dns_a); | |
382 #endif | |
383 resolve_list = g_list_append(resolve_list, resolve_byname); | |
384 | |
385 if (strcmp(gc->protocol, "pop3") == 0) { | |
386 DEBUG(3) debugf("attempting to login for user %s, host = %s with pop3\n", gc->login_user, gc->server_name); | |
387 ok = pop3_login(gc->server_name, gc->server_port, resolve_list, gc->login_user, gc->login_pass, flags); | |
388 } else if (strcmp(gc->protocol, "apop") == 0) { | |
389 DEBUG(3) debugf ("attempting to login for user %s, host = %s with apop\n", gc->login_user, gc->server_name); | |
390 ok = pop3_login(gc->server_name, gc->server_port, resolve_list, gc->login_user, | |
391 gc->login_pass, flags | POP3_FLAG_APOP); | |
392 } else { | |
393 logwrite(LOG_ALERT, "get protocol %s unknown\n", gc->protocol); | |
394 } | |
395 return ok; | |
396 } | |
397 | |
398 #endif |