#include <config.h>
#include <stdio.h>
+#include <fcntl.h>
+#include <sys/stat.h>
+#include <unistd.h>
#include "optlist.h"
#include "tel.h"
#include "prototypes.h"
return buf;
}
+/*
+ * Create an empty telegram file named MBOX.
+ */
+int
+mailbox_create(char *mbox)
+{
+ close(creat(mbox, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP));
+ return 0;
+}
+
/*
* Read telegram header from FP into TEL.
* MBOX is the file name, it is used for logging errors.