������: tim (��俸�同��), ����: BBSDev
�� ��: �����霞��������
����站: �暇���学小�俸�站 (Sat Oct 30 09:50:34 1999), 站���偶�
�����习�B/b�����诙�一��选�:�����霞���
�����前�同����兀��������同���叻��������������一篇���樱����诒����诰���
��
������知�������胁��侔���喜�������鄣����路直���精����模������������
实�址���也���烦��
bbs.h�卸���
#define SR_BMCOMBINE (16)
read.c��s_read()����
if( !strncmp(title,"Re: ",4)|!strncmp(title,"RE: ",4))
{strcpy(title,title+4);}
memcpy(&SR_fptr,ptitle,sizeof(SR_fptr));
while(!istest){
switch(passonly)
{
......
C case SR_BMDEL:
C {//By Tim,���原���丫�mark��,��删��,���del_post����值�卸��欠���
删*/
C int ret;
if(digestmode)
return;
SR_BMDELFLAG=YEA;
C ret=del_post(locmem->crs_line,&SR_fptr,currdirect);
SR_BMDELFLAG=NA;
C if((sysconf_eval( "KEEP_DELETED_HEADER"
)<=0)&&(ret==DIRCHANGED))
{
last_line--;
locmem->crs_line--;
previous=locmem->crs_line;
}
C }
break;
case SR_BMMARK:
if(digestmode==2)
return;
mark_post(locmem->crs_line,&SR_fptr,currdirect);
break;
......
+ case SR_BMCOMBINE:
+ {//Added by Tim 1999.10.29
+ FILE *fp, *fp1;
+ char temp2[256];
+ int blankline=0;
+ sprintf(temp_buf, "tmp/combine_%s.%d",
currentuser.u
serid, getpid());
+ if ((fp=fopen(temp_buf, "at"))==NULL) {
+ prints("����失�埽�����站����映����
\n");
+ pressanykey();
+ istest=1; //Aborting...
+ }
+ setbfile(temp2, currboard, SR_fptr.filename);
+ if ((fp1=fopen(temp2, "rt"))!=NULL) {
+ char *s_ptr,*e_ptr;
+ if (fgets(temp2, 256, fp1)!=NULL)
+ {
+ e_ptr=strchr(temp2,',');
+ if (e_ptr!=NULL) *e_ptr='\0';
+ s_ptr=&temp2[8];
+ fprintf(fp, "%s ��",s_ptr);
+ }
+ fgets(temp2, 256, fp1);
+ if (fgets(temp2, 256, fp1)!=NULL)
+ {
+ e_ptr=strchr(temp2,',');
+ if (e_ptr!=NULL)
*(--e_ptr)='\0';
+ s_ptr=strchr(temp2,'(');
+ if (s_ptr==NULL) s_ptr=temp2;
+ else s_ptr++;
+ fprintf(fp, "%s�到��\n",
s_ptr);
+ }
+ while (!feof(fp1)) {
+ fgets(temp2, 256, fp1);
+ if ((unsigned)*temp2<'\x1b'){
+ if (blankline)
continue;
+ else
+ blankline=1;
+ }
+ else
+ blankline=0;
+ /*Keep all quotes-adivse by aha 1999.
10.30
+ if ((strstr(temp2, "��"))||
+ (*temp2==':'))
continue;*/
+ if (strncmp(temp2,"--",2)==0)
break;
+ fputs(temp2, fp);
+ }
+ fclose(fp1);
+ }
+ fputs("\n", fp);
+ fclose(fp);
+ }
+ break;
}
if(!isstart)
{
search_articles( locmem, title, isnext,auser+2 );
}
if(previous==locmem->crs_line)
{
+ if ((*temp_buf)&&(dashf(temp_buf)))
+ {
+ char buf[100];
+ sprintf(buf, "[�霞�]%s", title);
+ postfile(temp_buf,currboard,buf,2);
+ unlink(temp_buf);
+ *temp_buf='\0';
+ }
break;
}
if(uinfo.mode!=RMAIL)
setbfile( genbuf, currboard, SR_fptr.filename );
else
sprintf(genbuf,"mail/%c/%s/%s",toupper(currentuser.
userid[0]),cur
rentuser.userid,SR_fptr.filename);
previous=locmem->crs_line;
setquotefile(genbuf);
�������示也����应�母母��蕖�
--
[m[1;33m�� ��源:����园����BBS站 bbs.szu.edu.cn��[FROM: 192.168.8.98][m