--- tools/mailbbs.c 2006-05-02 19:41:00.000000000 +0200 +++ tools/mailbbs.c 2006-06-11 21:57:29.000000000 +0200 @@ -512,6 +512,7 @@ writebbs(fd, buf, strlen(buf), verbose); /* Send text */ + if (filename) if (sendfile(fd, filename, paclen, verbose) < 0) { close(fd); @@ -523,6 +524,7 @@ writebbs(fd, buf, strlen(buf), verbose); phase = WAITLASTPROMPT; + break; } else {