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 diff
     1.1 --- a/src/get.c	Thu Jul 15 00:33:09 2010 +0200
     1.2 +++ b/src/get.c	Thu Jul 15 10:33:53 2010 +0200
     1.3 @@ -369,30 +369,4 @@
     1.4  	}
     1.5  }
     1.6  
     1.7 -gboolean
     1.8 -pop_before_smtp(gchar * fname)
     1.9 -{
    1.10 -	gboolean ok = FALSE;
    1.11 -	GList *resolve_list = NULL;
    1.12 -	get_conf *gc = read_get_conf(fname);
    1.13 -	guint flags = 0;
    1.14 -
    1.15 -#ifdef ENABLE_RESOLVER
    1.16 -	resolve_list = g_list_append(resolve_list, resolve_dns_a);
    1.17  #endif
    1.18 -	resolve_list = g_list_append(resolve_list, resolve_byname);
    1.19 -
    1.20 -	if (strcmp(gc->protocol, "pop3") == 0) {
    1.21 -		DEBUG(3) debugf("attempting to login for user %s, host = %s with pop3\n", gc->login_user, gc->server_name);
    1.22 -		ok = pop3_login(gc->server_name, gc->server_port, resolve_list, gc->login_user, gc->login_pass, flags);
    1.23 -	} else if (strcmp(gc->protocol, "apop") == 0) {
    1.24 -		DEBUG(3) debugf ("attempting to login for user %s, host = %s with apop\n", gc->login_user, gc->server_name);
    1.25 -		ok = pop3_login(gc->server_name, gc->server_port, resolve_list, gc->login_user,
    1.26 -		                gc->login_pass, flags | POP3_FLAG_APOP);
    1.27 -	} else {
    1.28 -		logwrite(LOG_ALERT, "get protocol %s unknown\n", gc->protocol);
    1.29 -	}
    1.30 -	return ok;
    1.31 -}
    1.32 -
    1.33 -#endif