slightly improve logging of badword messages
[spider.git] / perl / DXMsg.pm
index 238bf1b3ddba2a5898d276b0d4d6d307c26438af..dc9aff9197548ec2ca8c2650746c6a79e7404c1a 100644 (file)
@@ -69,10 +69,10 @@ $importfn = "$msgdir/import";       # import directory
                  to => '0,To',
                  from => '0,From',
                  t => '0,Msg Time,cldatetime',
-                 private => '5,Private',
+                 private => '5,Private,yesno',
                  subject => '0,Subject',
                  linesreq => '0,Lines per Gob',
-                 rrreq => '5,Read Confirm',
+                 rrreq => '5,Read Confirm,yesno',
                  origin => '0,Origin',
                  lines => '5,Data',
                  stream => '9,Stream No',
@@ -305,8 +305,8 @@ sub process
                                                }
                                                push @words, BadWords::check($ref->{subject});
                                                if (@words) {
-                                                       dbg("message with badwords '@words' $ref->{from} -> $ref->{to} '$ref->{subject}' origin: $ref->{origin}") if isdbg('msg');
-                                                       Log('msg',"message with badwords '@words' $ref->{from} -> $ref->{to} origin: $ref->{origin}");
+                                                       dbg("message with badwords '@words' $ref->{from} -> $ref->{to} '$ref->{subject}' origin: $ref->{origin} via " . $self->call) if isdbg('msg');
+                                                       Log('msg',"message with badwords '@words' $ref->{from} -> $ref->{to} origin: $ref->{origin} via " . $self->call);
                                                        Log('msg',"subject: $ref->{subject}");
                                                        for (@{$ref->{lines}}) {
                                                                Log('msg', "line: $_");