changeset 141:8ae0a10588e4

mlmmj-maintd testet, and works
author mmj
date Wed, 02 Jun 2004 08:49:58 +1000
parents a79d22b050e6
children 67eadb823b92
files src/mlmmj-maintd.c
diffstat 1 files changed, 4 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/mlmmj-maintd.c	Wed Jun 02 08:12:46 2004 +1000
+++ b/src/mlmmj-maintd.c	Wed Jun 02 08:49:58 2004 +1000
@@ -125,6 +125,7 @@
 		free(dirname);
 		return 1;
 	}
+		
 	if((queuedir = opendir(dirname)) == NULL) {
 		log_error(LOG_ARGS, "Could not opendir(%s)", dirname);
 		free(dirname);
@@ -134,6 +135,7 @@
 	while((dp = readdir(queuedir)) != NULL) {
 		if(strchr(dp->d_name, '.'))
 			continue;
+
 		if(stat(dp->d_name, &st) < 0) {
 			log_error(LOG_ARGS, "Could not stat(%s)",dp->d_name);
 			continue;
@@ -219,10 +221,7 @@
 		pid = fork();
 
 		if(pid == 0) {
-			if(repto) {
-				printf("%s -l %s -m %s -F %s -T %s -R %s -a\n",
-						mlmmjsend, "1", mailname, from,
-						to, repto);
+			if(repto)
 				execlp(mlmmjsend, mlmmjsend,
 						"-l", "1",
 						"-m", mailname,
@@ -230,9 +229,7 @@
 						"-T", to,
 						"-R", repto,
 						"-a", 0);
-			} else {
-				printf("%s -l %s -m %s -F %s -T %s -a\n",
-						mlmmjsend, "1", mailname, from, to);
+			else
 				execlp(mlmmjsend, mlmmjsend,
 						"-l", "1",
 						"-m", mailname,
@@ -241,7 +238,6 @@
 						"-a", 0);
 			}
 		}
-	}
 
 	return 0;
 }