Skip to content
Snippets Groups Projects
Commit 4bb57a9b authored by rswindell's avatar rswindell
Browse files

Now logs port number, host name, and IP address for POP3 sessions where...

Now logs port number, host name, and IP address for POP3 sessions where messages are either downloaded or deleted.
parent f5c56dc5
Branches
Tags
No related merge requests found
......@@ -510,6 +510,7 @@ static void pop3_thread(void* arg)
char* msgtxt;
int i;
int rd;
BOOL activity=FALSE;
ulong l;
ulong lines;
ulong msgs,bytes,msgnum,msgbytes;
......@@ -825,6 +826,7 @@ static void pop3_thread(void* arg)
sockprintf(socket,".");
continue;
}
activity=TRUE;
if(!strnicmp(buf, "RETR ",5) || !strnicmp(buf,"TOP ",4)) {
sprintf(str,"POP3: %s", user.alias);
status(str);
......@@ -973,6 +975,10 @@ static void pop3_thread(void* arg)
} while(0);
if(activity)
lprintf("%04d POP3 %s logged out from port %u on %s [%s]"
,socket, user.alias, ntohs(pop3.client_addr.sin_port), host_name, host_ip);
status(STATUS_WFC);
/* Free up resources here */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment