2 # Functions for parsing this module's logs
6 # parse_webmin_log(user, script, action, type, object, ¶ms)
7 # Converts logged information from this module into human-readable form
10 local ($user, $script, $action, $type, $object, $p, $long) = @_;
11 if ($action eq 'delmail') {
12 return &text("log_delmail", $p->{'count'}, "<tt>$p->{'from'}</tt>");
14 elsif ($action eq 'movemail') {
15 return &text("log_movemail", $p->{'count'}, "<tt>$p->{'from'}</tt>",
16 "<tt>$p->{'to'}</tt>");
18 elsif ($action eq 'copymail') {
19 return &text("log_copymail", $p->{'count'}, "<tt>$p->{'from'}</tt>",
20 "<tt>$p->{'to'}</tt>");
22 elsif ($action eq 'send') {
23 return &text('log_send', &html_escape(&extract_email($p->{'to'})));
25 elsif ($action eq 'read') {
26 return &text('log_read', &html_escape($object));
35 if ($_[0] =~ /([^<>"' \(\)]+\@[^<>"' \(\)]+)/) {
38 elsif ($_[0] =~ /<(\S+)>/) {