summaryrefslogtreecommitdiff
path: root/src/kbs.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2004-08-22 19:03:21 +0000
committerIan C <ianc@noddybox.co.uk>2004-08-22 19:03:21 +0000
commit79ebb3ff33dbcf841194bbc0932c070b055b1907 (patch)
tree9361056b960eb485d334b0faa14628ac833207d2 /src/kbs.c
parent718b54c985aa2fe7146df39176796ce4d6580504 (diff)
Added dumpheaders variableHEADmaster
Diffstat (limited to 'src/kbs.c')
-rw-r--r--src/kbs.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/kbs.c b/src/kbs.c
index ef6ab1e..168793c 100644
--- a/src/kbs.c
+++ b/src/kbs.c
@@ -133,6 +133,22 @@ int main(int argc, char *argv[])
int tot=0;
int del=0;
+ if (ConfigInt(CONFIG_DUMPHEADERS))
+ {
+ Log(fp,"---- MESSAGE DUMP ----\n");
+
+ for(f=0;msg[f].to;f++)
+ {
+ Log(fp,"Message %d\n",f+1);
+ Log(fp,"From %s <%s@%s>\n",msg[f].from,
+ msg[f].from_uname,
+ msg[f].from_domain);
+ Log(fp,"Subject %.40s\n",msg[f].subject);
+ }
+
+ Log(fp,"---- END MESSAGE DUMP ----\n");
+ }
+
for(f=0;msg[f].to;f++)
{
tot++;