changeset 481:3d3c60ef5667

Clean up after us when we have successfully parsed DSN mail
author mmj
date Thu, 28 Apr 2005 04:35:18 +1000
parents e47f5d7b8ddd
children 101cec1dc992
files src/mlmmj-bounce.c
diffstat 1 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/mlmmj-bounce.c	Thu Apr 28 04:02:10 2005 +1000
+++ b/src/mlmmj-bounce.c	Thu Apr 28 04:35:18 2005 +1000
@@ -302,12 +302,14 @@
 
 	if(dsnbounce) {
 		address = dsnparseaddr(mailname);
-		if(address == NULL) {
-			/* not parseable, so unlink and clean up */
+
+		/* Delete the mailfile, no need for it anymore */
 			if(mailname)
 				unlink(mailname);
+
+		if(address == NULL)
 			exit(EXIT_SUCCESS);
-		}
+
 		a = strrchr(address, '@');
 		*a = '=';
 	}