void login_handler(struct W3* w3) {
printf("Logged in\n");
- W3_Set_Method(w3, "RETR");
- W3_Set_Path(w3, "98");
+ W3_Set_Method(w3, "LIST");
W3_POP3_Send_Request(w3);
}
void (*func)(struct W3*, bool, char*) = (void (*)(struct W3*, bool, char*))funcptr;
func(w3, true, message);
}
+ funcptr = __W3_Get_Event(w3, "pop3finish");
+ if(funcptr != NULL) {
+ void (*func)(struct W3*) = (void (*)(struct W3*))funcptr;
+ func(w3);
+ }
}
} else if(phase == 4) {
/* ERR */
void (*func)(struct W3*, bool, char*) = (void (*)(struct W3*, bool, char*))funcptr;
func(w3, false, message);
}
+ funcptr = __W3_Get_Event(w3, "pop3finish");
+ if(funcptr != NULL) {
+ void (*func)(struct W3*) = (void (*)(struct W3*))funcptr;
+ func(w3);
+ }
}
}
}