Mercurial > masqmail
diff 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 |
line wrap: on
line diff
--- a/src/get.c Thu Jul 15 00:33:09 2010 +0200 +++ b/src/get.c Thu Jul 15 10:33:53 2010 +0200 @@ -369,30 +369,4 @@ } } -gboolean -pop_before_smtp(gchar * fname) -{ - gboolean ok = FALSE; - GList *resolve_list = NULL; - get_conf *gc = read_get_conf(fname); - guint flags = 0; - -#ifdef ENABLE_RESOLVER - resolve_list = g_list_append(resolve_list, resolve_dns_a); #endif - resolve_list = g_list_append(resolve_list, resolve_byname); - - if (strcmp(gc->protocol, "pop3") == 0) { - DEBUG(3) debugf("attempting to login for user %s, host = %s with pop3\n", gc->login_user, gc->server_name); - ok = pop3_login(gc->server_name, gc->server_port, resolve_list, gc->login_user, gc->login_pass, flags); - } else if (strcmp(gc->protocol, "apop") == 0) { - DEBUG(3) debugf ("attempting to login for user %s, host = %s with apop\n", gc->login_user, gc->server_name); - ok = pop3_login(gc->server_name, gc->server_port, resolve_list, gc->login_user, - gc->login_pass, flags | POP3_FLAG_APOP); - } else { - logwrite(LOG_ALERT, "get protocol %s unknown\n", gc->protocol); - } - return ok; -} - -#endif