changeset 415:06ef8e85dd50

Never ever discard stuff from the queue/. Let the admin worry about that.
author mmj
date Fri, 14 Jan 2005 09:06:41 +1100
parents 8e19d05d7a72
children 50453b42e0a0
files src/mlmmj-maintd.c
diffstat 1 files changed, 0 insertions(+), 31 deletions(-) [+]
line wrap: on
line diff
--- a/src/mlmmj-maintd.c	Fri Jan 14 08:37:34 2005 +1100
+++ b/src/mlmmj-maintd.c	Fri Jan 14 09:06:41 2005 +1100
@@ -250,38 +250,7 @@
 		mailname = concatstr(3, listdir, "/queue/", dp->d_name);
 
 		fromname = concatstr(2, mailname, ".mailfrom");
-		if(stat(fromname, &st) < 0) {
-			if(errno == ENOENT) {
-				discardedname = concatstr(4,
-						listdir, "/queue/discarded/",
-						dp->d_name, ".by-maintd");
-				discarded = discardmail(mailname,
-							discardedname,
-							3600);
-				myfree(discardedname);
-			} else {
-				log_error(LOG_ARGS, "Could not stat(%s)",
-						dp->d_name);
-			}
-		}
-		
-
 		toname = concatstr(2, mailname, ".reciptto");
-		if(!discarded && stat(toname, &st) < 0) {
-			if(errno == ENOENT) {
-				discardedname = concatstr(4,
-						listdir, "/queue/discarded/",
-						dp->d_name, ".by-maintd");
-				discarded = discardmail(mailname,
-							discardedname,
-							3600);
-				myfree(discardedname);
-			} else {
-				log_error(LOG_ARGS, "Could not stat(%s)",
-						dp->d_name);
-			}
-		}
-
 		reptoname = concatstr(2, mailname, ".reply-to");
 
 		fromfd = open(fromname, O_RDONLY);