Minor changes.
[egate.git] / kernel / urp.c
index 0e2e4d6..b6c4d90 100644 (file)
@@ -1,8 +1,14 @@
 /* Gateway kernel
  * Europagate, 1995
  *
- * $Log: urp.c,v $
- * Revision 1.11  1995/02/22 15:22:33  adam
+ * urp.c,v
+ * Revision 1.13  1995/02/22  16:54:42  adam
+ * Qualifiers of LOC target updated. More logging messages.
+ *
+ * Revision 1.12  1995/02/22  15:51:51  adam
+ * Bug fix: swap of parameter number and offset in function present.
+ *
+ * Revision 1.11  1995/02/22  15:22:33  adam
  * Much more checking of run-time state. Show command never retrieves
  * more records than indicated by the previous search request. Help
  * command available. The maximum number of records retrieved can be
@@ -364,7 +370,7 @@ struct command_word show_tab [] =
 {   NULL, NULL }
 };
 
-static void present (const char *set, int number, int offset,
+static void present (const char *set, int offset, int number,
                      struct ccl_token *format_token)
 {
     const struct zass_presentent *zp;
@@ -688,6 +694,7 @@ int urp (FILE *inf)
                                                    "gw.msg.subject",
                                                    "Your Query"));
         fprintf (reply_fd, "\n");
+        gw_log (GW_LOG_DEBUG, "urp", "Mail from %s", from_str);
     }
     else
         gw_log (GW_LOG_WARN, "urp", "No From in email header");
@@ -731,6 +738,7 @@ int urp (FILE *inf)
             gw_log (GW_LOG_FATAL, "urp", "Reply '%s' got exit code %d",
                     cmd, mta_code);
         unlink (reply_fname);        
+        gw_log (GW_LOG_DEBUG, "urp", "Normal session end of %s", from_str);
     }
     return 0;
 }