[BACK]Return to collect.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mail

Diff for /src/usr.bin/mail/collect.c between version 1.10 and 1.11

version 1.10, 1997/07/22 18:26:24 version 1.11, 1997/07/22 18:54:36
Line 152 
Line 152 
         longline = 0;          longline = 0;
   
         if (!sigsetjmp(colljmp, 1)) {          if (!sigsetjmp(colljmp, 1)) {
                 if (getsub && grabh(hp, GSUBJECT) == SIGINT) {                  if (getsub)
                         fflush(stdout);                          gethfromtty(hp, GSUBJECT);
                         fputs("\n(Interrupt -- one more to kill letter)\n",  
                             stderr);  
                         if (grabh(hp, GSUBJECT) == SIGINT) {  
                                 hadintr++;  
                                 collint(SIGINT);  
                                 exit(1);  
                         }  
                 }  
         } else {          } else {
                 /*                  /*
                  * Come here for printing the after-signal message.                   * Come here for printing the after-signal message.
Line 401 
Line 393 
                         goto cont;                          goto cont;
                 }                  }
         }          }
   
           if (value("interactive") != NULL) {
                   if (value("askcc") != NULL || value("askbcc") != NULL) {
                           if (value("askcc") != NULL)
                                   gethfromtty(hp, GCC);
                           if (value("askbcc") != NULL)
                                   gethfromtty(hp, GBCC);
                   } else {
                           puts("EOT");
                           (void)fflush(stdout);
                   }
           }
         goto out;          goto out;
 err:  err:
         if (collf != NULL) {          if (collf != NULL) {
Line 435 
Line 439 
 {  {
         register FILE *of;          register FILE *of;
         register int c;          register int c;
         long cc;          ssize_t cc, lc;
         int lc;  
         struct stat junk;          struct stat junk;
   
         if (f) {          if (f) {
Line 467 
Line 470 
                 }                  }
         }          }
         (void)Fclose(of);          (void)Fclose(of);
         printf("%d/%ld\n", lc, cc);          printf("%d/%d\n", lc, cc);
         fflush(stdout);          fflush(stdout);
         return(0);          return(0);
 }  }
Line 677 
Line 680 
                 (void)putc(c, dbuf);                  (void)putc(c, dbuf);
         (void)Fclose(dbuf);          (void)Fclose(dbuf);
         rewind(fp);          rewind(fp);
   }
   
   void
   gethfromtty(hp, gflags)
           struct header *hp;
           int gflags;
   {
           if (grabh(hp, gflags) == SIGINT) {
                   fflush(stdout);
                   fputs("\n(Interrupt -- one more to kill letter)\n",
                       stderr);
                   if (grabh(hp, gflags) == SIGINT) {
                           hadintr++;
                           collint(SIGINT);
                           exit(1);
                   }
           }
 }  }

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11