[net.bugs.uucp] uuxqt mail-back bug

jim (03/29/83)

I just found yet another uucp bug, and I'll bet I'm the first to find
it.  Do I get a prize?  How about naming the bug after me?

Uuxqt mails back an acknowledgement after it executes a uux command on
the remote machine.  However, it does not terminate the message with a
newline.  Some mailers don't mind this and will add a newline for you.
But some (like our ethernet mailer) will truncate the mail at the last
line, and you lose the entire one line message.

While I was fixing this bug, I also added a header so you could tell
that the mail was coming from uucp.  If you are running delivermail,
the mail will appear to come from whoever executed the uucico that
executed the uuxqt.  Sometimes this is daemon, sometimes root, but
hardly ever is it uucp.

The fix, near the end of sdmail.c:

< 	fprintf(fp, "%s", str);
---
> 	fprintf(fp, "From: uucp\nTo: %s\n\n%s\n", user, str);