@@ -547,7 +547,7 @@ fi
#Clean up IO redirection
exec 1>&6 6>&- # Restore stdout and close file descriptor #6.
-exec 1>&7 7>&- # Restore stdout and close file descriptor #7.
+exec 2>&7 7>&- # Restore stdout and close file descriptor #7.
if [ "$MAILCONTENT" = "files" ]
then