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

Diff for /src/usr.bin/vacation/vacation.c between version 1.26 and 1.27

version 1.26, 2007/02/23 15:26:52 version 1.27, 2007/02/23 15:55:17
Line 219 
Line 219 
                          * to any message which contains an Auto-Submitted                           * to any message which contains an Auto-Submitted
                          * header where the field has any value other than "no".                           * header where the field has any value other than "no".
                          */                           */
                         if (!*p)                          if ((p[0] == 'n' || p[0] == 'N') &&
                                 exit(0);                              (p[1] == 'o' || p[1] == 'O')) {
                         if (strlen(p) != 3 || strncasecmp(p, "no", 2))                                  for (p += 2; *p && isspace(*p); ++p)
                                 exit(0);                                          ;
                         break;                                  if (*p == '\0')
                                           break;  /* Auto-Submitted: no */
                           }
                           exit(0);
                 case 'F':               /* "From " */                  case 'F':               /* "From " */
                 case 'f':                  case 'f':
                         cont = 0;                          cont = 0;
Line 264 
Line 267 
                                 break;                                  break;
                         for (p = buf + 11; *p && isspace(*p); ++p)                          for (p = buf + 11; *p && isspace(*p); ++p)
                                 ;                                  ;
                         if (!*p)  
                                 break;  
                         if (!strncasecmp(p, "junk", 4) ||                          if (!strncasecmp(p, "junk", 4) ||
                             !strncasecmp(p, "bulk", 4) ||                              !strncasecmp(p, "bulk", 4) ||
                             !strncasecmp(p, "list", 4))                              !strncasecmp(p, "list", 4))

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27