*** [-.news_v60-3_src]news.hlp --- [-.news_src]news.hlp ************** *** 1782,1788 /SELF ! Sends a copy of the message back to yourself. /HEADERS --- 1782,1790 ----- /SELF ! By default a copy of the mail message will sent to yourself if your mail ! profile specifies "copy_self forward". The /SELF (or /NOSELF) qualifier ! overrides this default. /HEADERS ************** *** 1913,1919 /SELF ! Sends a copy of the message back to yourself. /HEADERS --- 1915,1923 ----- /SELF ! By default a copy of the mail message will sent to yourself if your mail ! profile specifies "copy_self forward". The /SELF (or /NOSELF) qualifier ! overrides this default. /HEADERS ************** *** 2998,3004 NEWS will prompt for a Subject: field. /SELF - /NOSELF [default] This is a mail qualifier which will forward a copy of the outgoing mail item back to the sender. --- 3002,3007 ----- NEWS will prompt for a Subject: field. /SELF By default a copy of the mail message will sent to yourself if your mail profile specifies "copy_self reply". The /SELF (or /NOSELF) qualifier ************** *** 3000,3007 /SELF /NOSELF [default] ! This is a mail qualifier which will forward a copy of the outgoing mail ! item back to the sender. 1 REPOST --- 3003,3011 ----- /SELF ! By default a copy of the mail message will sent to yourself if your mail ! profile specifies "copy_self reply". The /SELF (or /NOSELF) qualifier ! overrides this default. 1 REPOST ************** *** 3406,3413 /SELF ! By default a copy of the mail message will NOT be sent to yourself. The ! /SELF qualifier overrides this default. /SUBJECT /SUBJECT="subject-string" --- 3410,3418 ----- /SELF ! By default a copy of the mail message will sent to yourself if your mail ! profile specifies "copy_self send". The /SELF (or /NOSELF) qualifier ! overrides this default. /SUBJECT /SUBJECT="subject-string" *** [-.news_v60-3_src]newsadd.c --- [-.news_src]newsadd.c ************** *** 831,837 int i; while (*p != ':' && isprint(*p)) p++; ! if ((*p == ':') && (isspace(*(p+1)))) { *p = '\0'; strcpy(h,s); *p++ = ':'; --- 831,837 ----- int i; while (*p != ':' && isprint(*p)) p++; ! if (*p == ':') { *p = '\0'; strcpy(h,s); *p++ = ':'; ************** *** 950,956 do *(c - 1) = *c; while (*c++); } if (c = strchr(add_inline,'\n')) *c = '\0'; ! if ((*add_inline == ' ') || (*add_inline == '\'t')) { if (scan_res) { strcat(scanline,"\n"); append_line(scanline); --- 950,956 ----- do *(c - 1) = *c; while (*c++); } if (c = strchr(add_inline,'\n')) *c = '\0'; ! if ((*add_inline == ' ') || (*add_inline == '\t')) { if (scan_res) { strcat(scanline,"\n"); append_line(scanline); *** [-.news_v60-3_src]newsmenu.c --- [-.news_src]newsmenu.c ************** *** 227,233 { /* other commands from level 1 MENU 6 */ ! { 7 },{ "Quit" , 0 , 'q' , 0 , "QUIT" , -1 , "Finish using NEWS and do not keep a record of items read", "sHell" , 0 , 'h' , 1 , "" , 17 , --- 227,233 ----- { /* other commands from level 1 MENU 6 */ ! { 5 },{ "Quit" , 0 , 'q' , 0 , "QUIT" , -1 , "Finish using NEWS and do not keep a record of items read", "sHell" , 0 , 'h' , 1 , "" , 17 , ************** *** 285,291 "Post" , 0 , 'p' , 0 , "POST/HEADER" , -1 , "Add an item to NEWS", "Reply" , 0 , 'r' , 0 , "REPLY/HEADERS" , -1 , ! " ." } }, /* add options for level 2 */ --- 285,291 ----- "Post" , 0 , 'p' , 0 , "POST/HEADER" , -1 , "Add an item to NEWS", "Reply" , 0 , 'r' , 0 , "REPLY/HEADERS" , -1 , ! "Send EMAIL to the author of the current item" } }, /* add options for level 2 */ ************** *** 309,315 { /* others options from level 2 MENU 11 */ ! { 9 },{ "Clear" , 0 , 'c' , 0 , "" , 12 , "Remove kill filters or marks {}", "eXport" , 0 , 'x' , 1 , "" , 8 , --- 309,315 ----- { /* others options from level 2 MENU 11 */ ! { 6 },{ "Clear" , 0 , 'c' , 0 , "" , 12 , "Remove kill filters or marks {}", "eXport" , 0 , 'x' , 1 , "" , 8 , ************** *** 394,400 { /* others options from level 2 MENU 16 */ ! { 8 },{ "Exit" , 0 , 'e' , 0 , "EXIT" , -1 , "Finish using NEWS", "See" , 0 , 's' , 0 , "" , 18 , --- 394,400 ----- { /* others options from level 2 MENU 16 */ ! { 9 },{ "Exit" , 0 , 'e' , 0 , "EXIT" , -1 , "Finish using NEWS", "See" , 0 , 's' , 0 , "" , 18 , ************** *** 778,785 SMG$CREATE_VIRTUAL_DISPLAY( c$rfi(menu_rows) , c$rfi(devcol) , &my_pb , 0 , 0 , 0 ); ! smg$put_chars( &trailer_vd , c$dsc("Waikato Menus - Press ESC at NEWS> prompt"), ! c$rfi(3),c$rfi(40) ); }; --- 778,785 ----- SMG$CREATE_VIRTUAL_DISPLAY( c$rfi(menu_rows) , c$rfi(devcol) , &my_pb , 0 , 0 , 0 ); ! smg$put_chars( &trailer_vd , c$dsc(" Waikato Menus - Press F11 at NEWS> prompt"), ! c$rfi(3),c$rfi(38) ); }; *** [-.news_v60-3_src]newspost.c --- [-.news_src]newspost.c ************** *** 412,418 int postfile, crosspost; { char ngroup[512], ! post_dist[512], post_path[512], s[512], infile[256], loc_id[IDLEN], --- 412,418 ----- int postfile, crosspost; { char ngroup[512], ! post_path[512], s[512], infile[256], loc_id[IDLEN], ************** *** 445,451 $DESCRIPTOR(infile_dsc,infile); itm_approved = 0; ! *post_dist = *follow_groups = *followup_groups = *xnewsgroups = *xfollowgroups = '\0'; if (crosspost) { use_default = 1; --- 445,451 ----- $DESCRIPTOR(infile_dsc,infile); itm_approved = 0; ! *follow_groups = *followup_groups = *xnewsgroups = *xfollowgroups = '\0'; if (crosspost) { use_default = 1; ************** *** 1003,1009 if ((status & 1) && (usr_inp_l)) { usr_inp[usr_inp_l] = '\0'; lower_case(usr_inp); ! strcpy(post_dist,usr_inp); fprintf(fpw,"Distribution: %s\n",usr_inp); } } --- 1003,1009 ----- if ((status & 1) && (usr_inp_l)) { usr_inp[usr_inp_l] = '\0'; lower_case(usr_inp); ! strcpy(distribution,usr_inp); fprintf(fpw,"Distribution: %s\n",usr_inp); } } ************** *** 1020,1026 } clear_err_line(); ! if (!sys_local_accept(ngroup,post_dist)) { err_line("Post - Distribution of item not accepted by local news filter"); } sprintf(err_oline,"Post to %s [y]:",ngroup); --- 1020,1026 ----- } clear_err_line(); ! if (!sys_local_accept(ngroup,distribution)) { err_line("Post - Distribution of item not accepted by local news filter"); } sprintf(err_oline,"Post to %s [y]:",ngroup); ************** *** 1110,1116 net_news = 0; auto_cre_grp = 1; c$cks(1); ! if (!sys_local_accept(ngroup,post_dist)) err_line("Post - item NOT locally posted (filter rejection) - forwarded"); else { do_new_group(ngroup,1,cre_grp); --- 1110,1116 ----- net_news = 0; auto_cre_grp = 1; c$cks(1); ! if (!sys_local_accept(ngroup,distribution)) err_line("Post - item NOT locally posted (filter rejection) - forwarded"); else { do_new_group(ngroup,1,cre_grp); ************** *** 1132,1138 /* check to see what else should be done with this posting */ if (forward_posting) ! sys_remote_send(post_path,ngroup,post_dist,Post_file,loc_id,0); } /* now look up news_manager:newspost.cc and then news_post_cc for more --- 1132,1138 ----- /* check to see what else should be done with this posting */ if (forward_posting) ! sys_remote_send(post_path,ngroup,distribution,Post_file,loc_id,0); } /* now look up news_manager:newspost.cc and then news_post_cc for more *** [-.news_v60-3_src]newsrc.c --- [-.news_src]newsrc.c ************** *** 1122,1128 } } else { ! for (i = d_itm[j].fitm ; i <= d_itm[j].litm; ++j) { mark_set(ga[sg]->grp_num,i,tag); if (!count++) si = i; } --- 1122,1129 ----- } } else { ! if (!d_itm[j].litm) d_itm[j].litm = d_itm[j].fitm; ! for (i = d_itm[j].fitm ; i <= d_itm[j].litm; ++i) { mark_set(ga[sg]->grp_num,i,tag); if (!count++) si = i; } ************** *** 1174,1180 } } else { ! for (i = d_itm[j].fitm ; i <= d_itm[j].litm; ++j) { mark_del(ga[sg]->grp_num,i,tag_param); if (!count++) si = i; } --- 1175,1182 ----- } } else { ! if (!d_itm[j].litm) d_itm[j].litm = d_itm[j].fitm; ! for (i = d_itm[j].fitm ; i <= d_itm[j].litm; ++i) { mark_del(ga[sg]->grp_num,i,tag_param); if (!count++) si = i; } *** [-.news_v60-3_src]newsread.c --- [-.news_src]newsread.c ************** *** 687,693 int do_readfollow(rheader,rot13,new_qual) int rheader, rot13, new_qual; { ! char title[SUBJLEN], tmp_title[SUBJLEN], *cp; int i, unupd, s_i; ITM_PTR iap; --- 687,693 ----- int do_readfollow(rheader,rot13,new_qual) int rheader, rot13, new_qual; { ! char title[SUBJLEN+1], tmp_title[SUBJLEN+1], *cp; int i, unupd, s_i; ITM_PTR iap; ************** *** 768,774 int do_readprevstream(rheader,rot13) int rheader, rot13; { ! char title[SUBJLEN+1], tmp_title[SUBJLEN+1], *cp; int i, unupd, s_i; ITM_PTR iap; --- 768,774 ----- int do_readprevstream(rheader,rot13) int rheader, rot13; { ! char title[SUBJLEN], tmp_title[SUBJLEN], *cp; int i, unupd, s_i; ITM_PTR iap; *** [-.news_v60-3_src]newsrtl.c --- [-.news_src]newsrtl.c ************** *** 294,301 char *result, *input; { ! strncpy(result,input,IDLEN-1); ! result[IDLEN-1] = '\0'; } /* * util_fromcpy --- 294,304 ----- char *result, *input; { ! int i, ! j; ! ! j = min(strlen(input),IDLEN); ! for (i = 0 ; i < IDLEN ; ++i) result[i] = (i < j) ? input[i] : '\0'; } /* * util_fromcpy ************** *** 307,313 char *result, *input; { ! strncpy(result,input,FROMLEN-1); result[FROMLEN - 1] = '\0'; } --- 310,320 ----- char *result, *input; { ! int i, ! j; ! ! j = min(strlen(input),FROMLEN); ! for (i = 0 ; i < FROMLEN ; ++i) result[i] = (i < j) ? input[i] : '\0'; result[FROMLEN - 1] = '\0'; } ************** *** 321,328 char *result, *input; { ! strncpy(result,input,SUBJLEN-1); ! result[SUBJLEN-1] = '\0'; } char *quotes(s) --- 328,338 ----- char *result, *input; { ! int i, ! j; ! ! j = min(strlen(input),SUBJLEN); ! for (i = 0 ; i < SUBJLEN ; ++i) result[i] = (i < j) ? input[i] : '\0'; } char *quotes(s) *** [-.news_v60-3_src]newssite.h --- [-.news_src]newssite.h ************** *** 16,22 #define NEWS_VERSION "VMS News - V6.0-3" #define NEWS_VDATE "14-Mar-1991" ! #define NEWS_DDATE "14/03/90" /* * EXP_TIME --- 16,22 ----- #define NEWS_VERSION "VMS News - V6.0-3" #define NEWS_VDATE "14-Mar-1991" ! #define NEWS_DDATE "14/03/91" /* * EXP_TIME ************** *** 276,282 * is appropriate for your system before accepting this default setting. */ ! #ifdef NOALLOW_USER_FROM #define ALLOW_USER_FROM 1 #else #define ALLOW_USER_FROM 0 --- 276,282 ----- * is appropriate for your system before accepting this default setting. */ ! #ifndef NOALLOW_USER_FROM #define ALLOW_USER_FROM 1 #else #define ALLOW_USER_FROM 0 *** [-.news_v60-3_src]newsutility.c --- [-.news_src]newsutility.c ************** *** 34,39 #include "newsinclude.h" #include "newsextern.h" #if vax11c globalref int newscmd; --- 34,40 ----- #include "newsinclude.h" #include "newsextern.h" + #include #if vax11c globalref int newscmd; ************** *** 1059,1065 ×tr[20],×tr[4],×tr[8], ×tr[11],×tr[14],×tr[17], seq, ! Node_address); cp = &genid[8]; if (*cp == ' ') { do *cp = *(cp + 1); while (*cp++); --- 1060,1066 ----- ×tr[20],×tr[4],×tr[8], ×tr[11],×tr[14],×tr[17], seq, ! news_node); cp = &genid[8]; if (*cp == ' ') { do *cp = *(cp + 1); while (*cp++); ************** *** 1847,1853 smg$create_pasteboard(&pid,c$dsc("SYS$OUTPUT"),&devrow,&devcol,c$ac(0)); pid_created = 1; _c$cks(smg$get_pasteboard_attributes(&pid,&pb_info,c$ac(sizeof pb_info))); ! if (!pb_info.SMG$W_SPEED) { printf("\n\tNEWS: Not a terminal - /NOSCREEN mode used\n"); pid_created = 0; } --- 1848,1854 ----- smg$create_pasteboard(&pid,c$dsc("SYS$OUTPUT"),&devrow,&devcol,c$ac(0)); pid_created = 1; _c$cks(smg$get_pasteboard_attributes(&pid,&pb_info,c$ac(sizeof pb_info))); ! if (pb_info.SMG$B_DEVCLASS != DC$_TERM) { printf("\n\tNEWS: Not a terminal - /NOSCREEN mode used\n"); pid_created = 0; } ************** *** 2093,2099 lower_case(cp1); if (!strcmp(cp1,"subject")) util_subjcpy(newsitm.itm_title,cp3); else if (!strcmp(cp1,"from")) util_fromcpy(newsitm.itm_from,cp3); ! else if (!strcmp(cp1,"message-id")) util_fromcpy(newsitm.itm_id,cp3); else if (!strcmp(cp1,"lines")) { if (sscanf(cp3,"%d",&(newsitm.itm_lines)) == 1) newsitm.itm_flags |= NEWS_M_LINESVALID; --- 2094,2100 ----- lower_case(cp1); if (!strcmp(cp1,"subject")) util_subjcpy(newsitm.itm_title,cp3); else if (!strcmp(cp1,"from")) util_fromcpy(newsitm.itm_from,cp3); ! else if (!strcmp(cp1,"message-id")) util_idcpy(newsitm.itm_id,cp3); else if (!strcmp(cp1,"lines")) { if (sscanf(cp3,"%d",&(newsitm.itm_lines)) == 1) newsitm.itm_flags |= NEWS_M_LINESVALID; *** [-.news_v60-3_src]nntp_server.c --- [-.news_src]nntp_server.c ************** *** 143,149 **/ #if vax11c ! #module NNTP_SERVER "V6.0" #endif /* system definitions */ --- 143,149 ----- **/ #if vax11c ! #module NNTP_SERVER "V6.0-3" #endif /* system definitions */ ************** *** 180,186 #include "newsdefine.h" /* NEWS and NNTP version identification */ ! #define nntp_version "6.0" /* set to 1 to produce LOGGING output to logical NEWS_NNTP_LOG file */ #define LOGGING 1 --- 180,186 ----- #include "newsdefine.h" /* NEWS and NNTP version identification */ ! #define nntp_version "6.0-3" /* set to 1 to produce LOGGING output to logical NEWS_NNTP_LOG file */ #define LOGGING 1 ************** *** 401,407 ihave_size = 0; #if LEAVE_SPOOL_OPEN ! int batch_size, static FILE *fpb = 0; --- 401,407 ----- ihave_size = 0; #if LEAVE_SPOOL_OPEN ! int batch_size; static FILE *fpb = 0; ************** *** 407,412 FILE *fpb = 0; #endif sysprv() { return(1); --- 407,414 ----- FILE *fpb = 0; #endif + extern FILE *dbgout; + sysprv() { return(1); ************** *** 576,582 while (*p != ':' && isprint(*p)) p++; if (*p != ':') return(0); if (!*(p+1)) return(1); - if (!isspace(*(p+1))) return(0); *p = '\0'; strcpy(h,s); --- 578,583 ----- while (*p != ':' && isprint(*p)) p++; if (*p != ':') return(0); if (!*(p+1)) return(1); *p = '\0'; strcpy(h,s); ************** *** 2638,2644 if (!strcmp(argv[1],"active")) list_sw = 1; else if (!strcmp(argv[1],"newsgroups")) list_sw = 2; else if (!strcmp(argv[1],"distributions"))list_sw = 3; ! else return(write_net(msg[501],stm)); } if (list_sw == 3) { FILE *fpr; --- 2639,2645 ----- if (!strcmp(argv[1],"active")) list_sw = 1; else if (!strcmp(argv[1],"newsgroups")) list_sw = 2; else if (!strcmp(argv[1],"distributions"))list_sw = 3; ! else return(write_net(msg[M501],stm)); } if (list_sw == 3) { FILE *fpr; *** [-.news_v60-3_src]nntp_tcpcmu.c --- [-.news_src]nntp_tcpcmu.c ************** *** 321,327 #endif if (!logged) log_to_file(1); sys$cancel(f); - log_to_file(1); cks(sys$qiow(0,f,IO$_DELETE,iosb,0,0,0,0,0,0,0,0)); cks(*i_o_sts); sys$dassgn(f); --- 321,326 ----- #endif if (!logged) log_to_file(1); sys$cancel(f); cks(sys$qiow(0,f,IO$_DELETE,iosb,0,0,0,0,0,0,0,0)); cks(*i_o_sts); sys$dassgn(f);