Deleted Added
full compact
parseaddr.c (223067) parseaddr.c (244833)
1/*
2 * Copyright (c) 1998-2006 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.
11 *
12 */
13
14#include <sendmail.h>
15
1/*
2 * Copyright (c) 1998-2006 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.
11 *
12 */
13
14#include <sendmail.h>
15
16SM_RCSID("@(#)$Id: parseaddr.c,v 8.404 2010/07/27 03:35:42 ca Exp $")
16SM_RCSID("@(#)$Id: parseaddr.c,v 8.405 2012/02/27 22:49:08 ca Exp $")
17
18#include <sm/sendmail.h>
19#include "map.h"
20
21static void allocaddr __P((ADDRESS *, int, char *, ENVELOPE *));
22static int callsubr __P((char**, int, ENVELOPE *));
23static char *map_lookup __P((STAB *, char *, char **, int *, ENVELOPE *));
24static ADDRESS *buildaddr __P((char **, ADDRESS *, int, ENVELOPE *));

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

237
238 return a;
239}
240/*
241** INVALIDADDR -- check for address containing characters used for macros
242**
243** Parameters:
244** addr -- the address to check.
17
18#include <sm/sendmail.h>
19#include "map.h"
20
21static void allocaddr __P((ADDRESS *, int, char *, ENVELOPE *));
22static int callsubr __P((char**, int, ENVELOPE *));
23static char *map_lookup __P((STAB *, char *, char **, int *, ENVELOPE *));
24static ADDRESS *buildaddr __P((char **, ADDRESS *, int, ENVELOPE *));

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

237
238 return a;
239}
240/*
241** INVALIDADDR -- check for address containing characters used for macros
242**
243** Parameters:
244** addr -- the address to check.
245** note: this is the complete address (including display part)
245** delimptr -- if non-NULL: end of address to check, i.e.,
246** a pointer in the address string.
247** isrcpt -- true iff the address is for a recipient.
248**
249** Returns:
250** true -- if the address has characters that are reservered
251** for macros or is too long.
252** false -- otherwise.

--- 3111 unchanged lines hidden ---
246** delimptr -- if non-NULL: end of address to check, i.e.,
247** a pointer in the address string.
248** isrcpt -- true iff the address is for a recipient.
249**
250** Returns:
251** true -- if the address has characters that are reservered
252** for macros or is too long.
253** false -- otherwise.

--- 3111 unchanged lines hidden ---