Converted citmail to the new setup:
authorArt Cancro <ajc@citadel.org>
Sun, 5 Jun 2022 17:05:38 +0000 (13:05 -0400)
committerArt Cancro <ajc@citadel.org>
Sun, 5 Jun 2022 17:05:38 +0000 (13:05 -0400)
citadel/Makefile
citadel/utils/citmail.c

index fa46fa7eaef99102921d6ceb347ffe4f6205d8b2..d6b2ba7056812753e6a36de0bac51a47c064cc92 100644 (file)
@@ -17,7 +17,7 @@
 # config.mk is generated by ./configure
 include config.mk
 
-all: citserver setup ctdlmigrate sendcommand
+all: citserver setup ctdlmigrate sendcommand citmail
 
 citserver: server/*.c server/modules/*/*.c config.mk server/*.h
        cc ${CFLAGS} \
@@ -34,6 +34,9 @@ ctdlmigrate: utils/ctdlmigrate.c server/citadel_dirs.c utils/*.h server/*.h
 sendcommand: utils/sendcommand.c server/citadel_dirs.c utils/*.h server/*.h
        cc ${CFLAGS} utils/sendcommand.c -lcitadel -o sendcommand
 
+citmail: utils/citmail.c server/citadel_dirs.c utils/*.h server/*.h
+       cc ${CFLAGS} utils/citmail.c -lcitadel -o citmail
+
 config.mk: configure
        ./configure
 
index 924b67571caccfd7daaeb54a0765fb70f7092e29..aef2589dd178df4cb3d396ecfdcf726b71691d26 100644 (file)
@@ -1,4 +1,4 @@
-// This program attempts to act like a local MDA if you're using sendmail or
+// This program attempts to act like a local MDA if you're using postfix or
 // some other non-Citadel MTA.  It basically just contacts the Citadel LMTP
 // listener on a unix domain socket and transmits the message.  Really though,
 // if your MTA supports LMTP then you definitely should be using that instead.
@@ -9,7 +9,6 @@
 // is subject to the terms of the GNU General Public License, version 3.
 // The program is distributed without any warranty, expressed or implied.
 
-#include "sysdep.h"
 #include <stdlib.h>
 #include <unistd.h>
 #include <ctype.h>
@@ -25,8 +24,9 @@
 #include <stdarg.h>
 #include <limits.h>
 #include <libcitadel.h>
-#include "citadel.h"
-#include "citadel_dirs.h"
+#include "../server/sysdep.h"
+#include "../server/citadel.h"
+#include "../server/citadel_dirs.h"
 
 int serv_sock;
 int debug = 0;