Current time: 05-03-2024, 11:16 PM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED] Dovecot, traffic problem
Author Message
macbishop Offline
Junior Member
*

Posts: 68
Joined: Feb 2007
Reputation: 7
Post: #2
RE: [SOLVED] Dovecot, traffic problem
1. The script not read mail.log because empty the first line.
Thanks to kilburn.

2. Change:
Code:
$rs = sys_command("$cat $rlog|$grep 'POP3'| $grep 'Disconnected: Logged out' |"
            ."$awk '/POP3/ {split(\$10,array,\"\/\"); print \"user=\"substr(\$6,6,length(\$6)-7) "
            ."\", top=\"substr(array[2],0,length(array[2])) \", "
            ."retr=\"substr(\$11,index(\$11,\"/\")+1,length(\$11)-1) ;}'"
            ." 1>>$pop3_log");
to:
Code:
$rs = sys_command("$cat $rlog|$grep 'POP3'| $grep 'Disconnected: Logged out' |"
            ."$awk '/POP3/ {split(\$10,array,\"\/\"); print \"user=\"substr(\$6,6,length(\$6)-7) "
            ."\", top=\"substr(array[2],0,length(array[2])) \" retr=\"substr(\$13,6,length(\$13)) ;}'"
            ." 1>$pop3_log");
Thanks to aseques - http://isp-control.net/forum/thread-5000.html
06-10-2010 08:00 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [SOLVED] Dovecot, traffic problem - macbishop - 06-10-2010 08:00 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)