Deleted Added
full compact
headers.c (111826) headers.c (112813)
1/*
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.
11 *
1/*
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.
11 *
12 * $FreeBSD: head/contrib/sendmail/src/headers.c 112813 2003-03-29 19:18:07Z gshapiro $
13 *
12 */
13
14#include <sendmail.h>
15
14 */
15
16#include <sendmail.h>
17
16SM_RCSID("@(#)$Id: headers.c,v 8.266.4.4 2003/01/18 00:41:48 gshapiro Exp $")
18SM_RCSID("@(#)$Id: headers.c,v 8.266.4.5 2003/03/12 22:42:52 gshapiro Exp $")
17
18static size_t fix_mime_header __P((HDR *, ENVELOPE *));
19static int priencode __P((char *));
20static void put_vanilla_header __P((HDR *, char *, MCI *));
21
22/*
23** SETUPHEADERS -- initialize headers in symbol table
24**

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

766 if (sm_strcasecmp(p, "urgent") == 0)
767 e->e_timeoutclass = TOC_URGENT;
768 else if (sm_strcasecmp(p, "normal") == 0)
769 e->e_timeoutclass = TOC_NORMAL;
770 else if (sm_strcasecmp(p, "non-urgent") == 0)
771 e->e_timeoutclass = TOC_NONURGENT;
772 }
773
19
20static size_t fix_mime_header __P((HDR *, ENVELOPE *));
21static int priencode __P((char *));
22static void put_vanilla_header __P((HDR *, char *, MCI *));
23
24/*
25** SETUPHEADERS -- initialize headers in symbol table
26**

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

768 if (sm_strcasecmp(p, "urgent") == 0)
769 e->e_timeoutclass = TOC_URGENT;
770 else if (sm_strcasecmp(p, "normal") == 0)
771 e->e_timeoutclass = TOC_NORMAL;
772 else if (sm_strcasecmp(p, "non-urgent") == 0)
773 e->e_timeoutclass = TOC_NONURGENT;
774 }
775
776#if _FFR_QUEUERETURN_DSN
777 /* If no timeoutclass picked and it's a DSN, use that timeoutclass */
778 if (e->e_timeoutclass == TOC_NORMAL && bitset(EF_RESPONSE, e->e_flags))
779 e->e_timeoutclass = TOC_DSN;
780#endif /* _FFR_QUEUERETURN_DSN */
781
774 /* date message originated */
775 p = hvalue("posted-date", e->e_header);
776 if (p == NULL)
777 p = hvalue("date", e->e_header);
778 if (p != NULL)
779 macdefine(&e->e_macro, A_PERM, 'a', p);
780
781 /* check to see if this is a MIME message */

--- 1214 unchanged lines hidden ---
782 /* date message originated */
783 p = hvalue("posted-date", e->e_header);
784 if (p == NULL)
785 p = hvalue("date", e->e_header);
786 if (p != NULL)
787 macdefine(&e->e_macro, A_PERM, 'a', p);
788
789 /* check to see if this is a MIME message */

--- 1214 unchanged lines hidden ---