ossp-pkg/petidomo/hermes.c 1.1 -> 1.2
--- hermes.c 2000/12/13 13:19:23 1.1
+++ hermes.c 2000/12/13 15:35:14 1.2
@@ -1,18 +1,28 @@
/*
- * $Source: /v/ossp/cvs/ossp-pkg/petidomo/hermes.c,v $
- * $Revision: 1.1 $
- * $Date: 2000/12/13 13:19:23 $
- *
- * Copyright (C) 1996 by CyberSolutions GmbH.
- * All rights reserved.
- */
+ $Source: /v/ossp/cvs/ossp-pkg/petidomo/hermes.c,v $
+ $Revision: 1.2 $
+
+ Copyright (C) 2000 by CyberSolutions GmbH, Germany.
+
+ This file is part of OpenPetidomo.
+
+ OpenPetidomo is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ OpenPetidomo is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+*/
-#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <string.h>
-#include <text.h>
-#include <petidomo.h>
+#include "libtext/text.h"
+#include "petidomo.h"
int
hermes_main(char * incoming_mail, const char * listname)
@@ -51,6 +61,10 @@
/* Do sanity checks. */
+ if (MailStruct->Envelope == NULL) {
+ syslog(LOG_NOTICE, "Received mail without a valid envelope.");
+ return 0;
+ }
if (MailStruct->From == NULL) {
syslog(LOG_NOTICE, "Received mail without From: line.");
return 0;
|
|