salkind (06/23/82)
When using the -f option of inews, the fullname will not appear on the article header. This is because in the command line decoding loop, an extra space is stuck on the end of the username. The space causes the lookup routine fullname() to fail. You will run into this problem in particular if you are using the mail (recnews) interface to inews. A diff -c of one way to fix the problem follows. (For those familiar with the code, you could just change the filchar from ' ' to '\0', but then command lines like "inews -f user at site ...." would no longer work. This might be acceptable behavior, though) Lou Salkind *** inews.c.bak Tue Jun 22 00:32:18 1982 --- inews.c Tue Jun 22 16:23:04 1982 *************** *** 198,203 * ALL of the command line has now been processed. (!) */ if (!Dflag && mode != PROC) { if (recording(header.nbuf)) { if (!tty) --- 198,211 ----- * ALL of the command line has now been processed. (!) */ + if (strcmp(whatever, username)) { + /* remove the extra blank from the name */ + ptr = username; + while (*ptr++) ; + ptr -= 2; + if (ptr > username && *ptr == ' ') + *ptr = '\0'; + } if (!Dflag && mode != PROC) { if (recording(header.nbuf)) { if (!tty)