@@ -50,17 +50,17 @@ end
def work(line)
#put_log "GOT LINE: #{line}"
- line =~ /^\d+-\d+-\d+ \d+:\d+:\d+ \+\d+: (.+)$/
fromto = ""
from = ""
cmd = ""
payload = ""
- if not $& == nil
+ if line =~ /^\d+-\d+-\d+ \d+:\d+:\d+ \+\d+: (.+)$/
+
line = $1
- if line =~ /^(from|to):([a-zA-Z_]+): (.+)/
+ if line =~ /^(from|to):([a-zA-Z\._]+): (.+)/
fromto = $1
from = $2
line = $3