main.c (110560) | main.c (111823) |
---|---|
1/* | 1/* |
2 * Copyright (c) 1998-2002 Sendmail, Inc. and its suppliers. | 2 * Copyright (c) 1998-2003 Sendmail, Inc. and its suppliers. |
3 * All rights reserved. 4 * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved. 5 * Copyright (c) 1988, 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * By using this file, you agree to the terms and conditions set 9 * forth in the LICENSE file which can be found at the top level of 10 * the sendmail distribution. --- 9 unchanged lines hidden (view full) --- 20SM_UNUSED(static char copyright[]) = 21"@(#) Copyright (c) 1998-2001 Sendmail, Inc. and its suppliers.\n\ 22 All rights reserved.\n\ 23 Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved.\n\ 24 Copyright (c) 1988, 1993\n\ 25 The Regents of the University of California. All rights reserved.\n"; 26#endif /* ! lint */ 27 | 3 * All rights reserved. 4 * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved. 5 * Copyright (c) 1988, 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * By using this file, you agree to the terms and conditions set 9 * forth in the LICENSE file which can be found at the top level of 10 * the sendmail distribution. --- 9 unchanged lines hidden (view full) --- 20SM_UNUSED(static char copyright[]) = 21"@(#) Copyright (c) 1998-2001 Sendmail, Inc. and its suppliers.\n\ 22 All rights reserved.\n\ 23 Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved.\n\ 24 Copyright (c) 1988, 1993\n\ 25 The Regents of the University of California. All rights reserved.\n"; 26#endif /* ! lint */ 27 |
28SM_RCSID("@(#)$Id: main.c,v 8.887.2.12 2002/12/05 17:38:44 ca Exp $") | 28SM_RCSID("@(#)$Id: main.c,v 8.887.2.20 2003/02/07 17:57:44 ca Exp $") |
29 30 31#if NETINET || NETINET6 32# include <arpa/inet.h> 33#endif /* NETINET || NETINET6 */ 34 35/* for getcfname() */ 36#include <sendmail/pathnames.h> --- 35 unchanged lines hidden (view full) --- 72** Eric Allman, UCB/INGRES (until 10/81). 73** Britton-Lee, Inc., purveyors of fine 74** database computers (11/81 - 10/88). 75** International Computer Science Institute 76** (11/88 - 9/89). 77** UCB/Mammoth Project (10/89 - 7/95). 78** InReference, Inc. (8/95 - 1/97). 79** Sendmail, Inc. (1/98 - present). | 29 30 31#if NETINET || NETINET6 32# include <arpa/inet.h> 33#endif /* NETINET || NETINET6 */ 34 35/* for getcfname() */ 36#include <sendmail/pathnames.h> --- 35 unchanged lines hidden (view full) --- 72** Eric Allman, UCB/INGRES (until 10/81). 73** Britton-Lee, Inc., purveyors of fine 74** database computers (11/81 - 10/88). 75** International Computer Science Institute 76** (11/88 - 9/89). 77** UCB/Mammoth Project (10/89 - 7/95). 78** InReference, Inc. (8/95 - 1/97). 79** Sendmail, Inc. (1/98 - present). |
80** The support of the my employers is gratefully acknowledged. | 80** The support of my employers is gratefully acknowledged. |
81** Few of them (Britton-Lee in particular) have had 82** anything to gain from my involvement in this project. 83** 84** Gregory Neil Shapiro, 85** Worcester Polytechnic Institute (until 3/98). 86** Sendmail, Inc. (3/98 - present). 87** 88** Claus Assmann, --- 4147 unchanged lines hidden (view full) --- 4236 else if (sm_strcasecmp(&line[1], "parse") == 0) 4237 { 4238 if (*p == '\0') 4239 { 4240 (void) sm_io_fprintf(smioout, SM_TIME_DEFAULT, 4241 "Usage: /parse address\n"); 4242 return; 4243 } | 81** Few of them (Britton-Lee in particular) have had 82** anything to gain from my involvement in this project. 83** 84** Gregory Neil Shapiro, 85** Worcester Polytechnic Institute (until 3/98). 86** Sendmail, Inc. (3/98 - present). 87** 88** Claus Assmann, --- 4147 unchanged lines hidden (view full) --- 4236 else if (sm_strcasecmp(&line[1], "parse") == 0) 4237 { 4238 if (*p == '\0') 4239 { 4240 (void) sm_io_fprintf(smioout, SM_TIME_DEFAULT, 4241 "Usage: /parse address\n"); 4242 return; 4243 } |
4244 q = crackaddr(p); | 4244 q = crackaddr(p, e); |
4245 (void) sm_io_fprintf(smioout, SM_TIME_DEFAULT, 4246 "Cracked address = "); 4247 xputs(q); 4248 (void) sm_io_fprintf(smioout, SM_TIME_DEFAULT, 4249 "\nParsing %s %s address\n", 4250 bitset(RF_HEADERADDR, tryflags) ? 4251 "header" : "envelope", 4252 bitset(RF_SENDERADDR, tryflags) ? --- 102 unchanged lines hidden --- | 4245 (void) sm_io_fprintf(smioout, SM_TIME_DEFAULT, 4246 "Cracked address = "); 4247 xputs(q); 4248 (void) sm_io_fprintf(smioout, SM_TIME_DEFAULT, 4249 "\nParsing %s %s address\n", 4250 bitset(RF_HEADERADDR, tryflags) ? 4251 "header" : "envelope", 4252 bitset(RF_SENDERADDR, tryflags) ? --- 102 unchanged lines hidden --- |