From: nishi Date: Sat, 27 Jan 2024 01:28:06 +0000 (+0000) Subject: pop3 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=fbb0eb361de229bed0d2192baebc0bf025fb8631;p=libw3.git pop3 git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@103 d27a3e52-49c5-7645-884c-6793ebffc270 --- diff --git a/Library/POP3.c b/Library/POP3.c index ee691ff..ff5c9ae 100644 --- a/Library/POP3.c +++ b/Library/POP3.c @@ -11,6 +11,11 @@ void __W3_POP3_Request(struct W3* w3) { if(__W3_Get_Prop(w3, "POP3_USERNAME") == NULL || __W3_Get_Prop(w3, "POP3_PASSWORD") == NULL){ __W3_Debug("LibW3-POP3", "Set the username/password"); + void* funcptr = __W3_Get_Event(w3, "error"); + if(funcptr != NULL){ + void(*func)(struct W3*, const char*) = (void(*)(struct W3*, const char*))funcptr; + func(w3, "did-not-auth"); + } return; } char* buf = malloc(w3->readsize); @@ -41,6 +46,7 @@ void __W3_POP3_Request(struct W3* w3) { if(login == 2){ /* Login success */ login = 3; + __W3_Debug("LibW3-POP3", "Login successful"); }else{ } }else if(phase == 4){