summaryrefslogtreecommitdiff
path: root/src/kbs.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2003-12-07 01:46:44 +0000
committerIan C <ianc@noddybox.co.uk>2003-12-07 01:46:44 +0000
commit787bb7625c9abc6b09efbc6bbe004a19d4b96166 (patch)
tree87b38cae639ced0b5a705a3d1e45d977ea419756 /src/kbs.c
parentf1658930db64af8fecff9c8697592f676114409c (diff)
Made RE compiled once and added memory release
Diffstat (limited to 'src/kbs.c')
-rw-r--r--src/kbs.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/kbs.c b/src/kbs.c
index f5f3aab..5c978b4 100644
--- a/src/kbs.c
+++ b/src/kbs.c
@@ -142,10 +142,13 @@ int main(int argc, char *argv[])
Log(fp,"From %s@%s\n",msg[f].from_uname,
msg[f].from_domain);
Log(fp,"Subject %.40s\n",msg[f].subject);
+ Log(fp,"Reason %s\n",DBBlockReason());
}
else
{
- Log(fp,"%s@%s\n",msg[f].from_uname,msg[f].from_domain);
+ Log(fp,"%s@%s (%s)\n",msg[f].from_uname,
+ msg[f].from_domain,
+ DBBlockReason());
}
if (!ConfigInt(CONFIG_TESTMODE))
@@ -172,6 +175,9 @@ int main(int argc, char *argv[])
fclose(fp);
}
+ DBClose();
+ ConfigClose();
+
return EXIT_SUCCESS;
}