summaryrefslogtreecommitdiff
path: root/src/kbs.c
diff options
context:
space:
mode:
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++;