#include <pwd.h>
#include <errno.h>
#include <sys/types.h>
-#include <sys/time.h>
+
+#if TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# if HAVE_SYS_TIME_H
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
+
#include <sys/wait.h>
#include <ctype.h>
#include <string.h>
#include <limits.h>
#include "citadel.h"
#include "server.h"
-#include <time.h>
#include "sysdep_decls.h"
#include "citserver.h"
#include "support.h"
/* If the user is locally authenticated, FORCE the From: header to
* show up as the real sender. FIXME do we really want to do this?
+ * Probably should make it site-definable or even room-definable.
*/
if (CC->logged_in) {
if (msg->cm_fields['A'] != NULL) phree(msg->cm_fields['A']);
else {
/* Yes ... go ahead and post! */
if (msg != NULL) {
- CtdlSaveMsg(msg, "", "", 0);
+ CtdlSubmitMsg(msg, NULL, "");
}
cprintf("%s OK APPEND completed\r\n", parms[0]);
}