5 * Revision 1.1 1995/02/15 17:45:29 adam
6 * First version of email gateway kernel. Email requests are read
7 * from stdin. The output is transferred to an MTA if 'From' is
8 * found in the header - or stdout if absent. No Z39.50 client is used.
19 FILE *reply_fd = stdout;
21 int main (int argc, char **argv)
27 kernel_res = gw_res_init ();
28 bibset = ccl_qual_mk ();
37 bib_fname = argv[0]+2;
45 gw_log (GW_LOG_FATAL, "main", "missing bib filename");
48 bib_inf = fopen (bib_fname, "r");
51 gw_log (GW_LOG_FATAL, "main", "cannot open %s", bib_fname);
54 ccl_qual_file (bibset, bib_inf);
58 gw_log (GW_LOG_FATAL, "main", "unknown option %s", *argv);
65 r = gw_res_merge (kernel_res, *argv);
68 gw_log (GW_LOG_FATAL, "main", "failed to read resource "