Deleted Added
full compact
vacation.c (203004) vacation.c (249729)
1/*
2 * Copyright (c) 1999-2002, 2009 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
4 * Copyright (c) 1983, 1987, 1993
5 * The Regents of the University of California. All rights reserved.
6 * Copyright (c) 1983 Eric P. Allman. All rights reserved.
7 *
8 * By using this file, you agree to the terms and conditions set

--- 6 unchanged lines hidden (view full) ---

15
16SM_IDSTR(copyright,
17"@(#) Copyright (c) 1999-2002, 2009 Sendmail, Inc. and its suppliers.\n\
18 All rights reserved.\n\
19 Copyright (c) 1983, 1987, 1993\n\
20 The Regents of the University of California. All rights reserved.\n\
21 Copyright (c) 1983 Eric P. Allman. All rights reserved.\n")
22
1/*
2 * Copyright (c) 1999-2002, 2009 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
4 * Copyright (c) 1983, 1987, 1993
5 * The Regents of the University of California. All rights reserved.
6 * Copyright (c) 1983 Eric P. Allman. All rights reserved.
7 *
8 * By using this file, you agree to the terms and conditions set

--- 6 unchanged lines hidden (view full) ---

15
16SM_IDSTR(copyright,
17"@(#) Copyright (c) 1999-2002, 2009 Sendmail, Inc. and its suppliers.\n\
18 All rights reserved.\n\
19 Copyright (c) 1983, 1987, 1993\n\
20 The Regents of the University of California. All rights reserved.\n\
21 Copyright (c) 1983 Eric P. Allman. All rights reserved.\n")
22
23SM_IDSTR(id, "@(#)$Id: vacation.c,v 8.146 2009/08/07 21:28:39 ca Exp $")
23SM_IDSTR(id, "@(#)$Id: vacation.c,v 8.147 2013/03/12 15:24:56 ca Exp $")
24
25
26#include <ctype.h>
27#include <stdlib.h>
28#include <syslog.h>
29#include <time.h>
30#include <unistd.h>
31#ifdef EX_OK

--- 472 unchanged lines hidden (view full) ---

504{
505 bool tome, cont;
506 register char *p;
507 register ALIAS *cur;
508 char buf[MAXLINE];
509
510 cont = false;
511 tome = alwaysrespond;
24
25
26#include <ctype.h>
27#include <stdlib.h>
28#include <syslog.h>
29#include <time.h>
30#include <unistd.h>
31#ifdef EX_OK

--- 472 unchanged lines hidden (view full) ---

504{
505 bool tome, cont;
506 register char *p;
507 register ALIAS *cur;
508 char buf[MAXLINE];
509
510 cont = false;
511 tome = alwaysrespond;
512 while (sm_io_fgets(smioin, SM_TIME_DEFAULT, buf, sizeof(buf)) &&
512 while (sm_io_fgets(smioin, SM_TIME_DEFAULT, buf, sizeof(buf)) >= 0 &&
513 *buf != '\n')
514 {
515 switch(*buf)
516 {
517 case 'F': /* "From " */
518 cont = false;
519 if (strncmp(buf, "From ", 5) == 0)
520 {

--- 428 unchanged lines hidden (view full) ---

949static void
950xclude(f)
951 SM_FILE_T *f;
952{
953 char buf[MAXLINE], *p;
954
955 if (f == NULL)
956 return;
513 *buf != '\n')
514 {
515 switch(*buf)
516 {
517 case 'F': /* "From " */
518 cont = false;
519 if (strncmp(buf, "From ", 5) == 0)
520 {

--- 428 unchanged lines hidden (view full) ---

949static void
950xclude(f)
951 SM_FILE_T *f;
952{
953 char buf[MAXLINE], *p;
954
955 if (f == NULL)
956 return;
957 while (sm_io_fgets(f, SM_TIME_DEFAULT, buf, sizeof buf))
957 while (sm_io_fgets(f, SM_TIME_DEFAULT, buf, sizeof buf) >= 0)
958 {
959 if ((p = strchr(buf, '\n')) != NULL)
960 *p = '\0';
961 setreply(buf, ONLY_ONCE);
962 }
963}
964
965/*

--- 78 unchanged lines hidden (view full) ---

1044# else /* WAITUNION */
1045 auto int st;
1046# endif /* WAITUNION */
1047#endif /* _FFR_VAC_WAIT4SM */
1048
1049 (void) sm_io_fprintf(sfp, SM_TIME_DEFAULT, "To: %s\n", From);
1050 (void) sm_io_fprintf(sfp, SM_TIME_DEFAULT,
1051 "Auto-Submitted: auto-replied\n");
958 {
959 if ((p = strchr(buf, '\n')) != NULL)
960 *p = '\0';
961 setreply(buf, ONLY_ONCE);
962 }
963}
964
965/*

--- 78 unchanged lines hidden (view full) ---

1044# else /* WAITUNION */
1045 auto int st;
1046# endif /* WAITUNION */
1047#endif /* _FFR_VAC_WAIT4SM */
1048
1049 (void) sm_io_fprintf(sfp, SM_TIME_DEFAULT, "To: %s\n", From);
1050 (void) sm_io_fprintf(sfp, SM_TIME_DEFAULT,
1051 "Auto-Submitted: auto-replied\n");
1052 while (sm_io_fgets(mfp, SM_TIME_DEFAULT, buf, sizeof buf))
1052 while (sm_io_fgets(mfp, SM_TIME_DEFAULT, buf, sizeof buf) >= 0)
1053 (void) sm_io_fputs(sfp, SM_TIME_DEFAULT, buf);
1054 (void) sm_io_close(mfp, SM_TIME_DEFAULT);
1055 (void) sm_io_close(sfp, SM_TIME_DEFAULT);
1056#if _FFR_VAC_WAIT4SM
1057 (void) wait(&st);
1058#endif /* _FFR_VAC_WAIT4SM */
1059 }
1060 else

--- 137 unchanged lines hidden ---
1053 (void) sm_io_fputs(sfp, SM_TIME_DEFAULT, buf);
1054 (void) sm_io_close(mfp, SM_TIME_DEFAULT);
1055 (void) sm_io_close(sfp, SM_TIME_DEFAULT);
1056#if _FFR_VAC_WAIT4SM
1057 (void) wait(&st);
1058#endif /* _FFR_VAC_WAIT4SM */
1059 }
1060 else

--- 137 unchanged lines hidden ---