Mercurial > masqmail
comparison src/pop3_in.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 | 2685e59f6f43 |
children |
comparison
equal
deleted
inserted
replaced
188:bfa7a8b566da | 189:dc89737b27aa |
---|---|
778 } | 778 } |
779 | 779 |
780 return ok; | 780 return ok; |
781 } | 781 } |
782 | 782 |
783 /* function just to log into a pop server, | |
784 for pop_before_smtp (or is it smtp_after_pop?) | |
785 */ | |
786 | |
787 gboolean | |
788 pop3_login(gchar * host, gint port, GList * resolve_list, gchar * user, gchar * pass, guint flags) | |
789 { | |
790 gboolean ok = FALSE; | |
791 pop3_base *popb; | |
792 | |
793 signal(SIGCHLD, SIG_IGN); | |
794 | |
795 if ((popb = pop3_in_open(host, port, resolve_list, flags))) { | |
796 if (pop3_in_init(popb)) { | |
797 if (pop3_in_login(popb, user, pass)) | |
798 ok = TRUE; | |
799 else | |
800 logwrite(LOG_ALERT | LOG_VERBOSE, "pop3 login failed for user %s, host = %s\n", user, host); | |
801 } | |
802 pop3_in_close(popb); | |
803 } | |
804 return ok; | |
805 } | |
806 | |
807 #endif | 783 #endif |