SCCS-vsn: usr.sbin/sendmail/src/headers.c 8.64
-static char sccsid[] = "@(#)headers.c 8.63 (Berkeley) %G%";
+static char sccsid[] = "@(#)headers.c 8.64 (Berkeley) %G%";
#endif /* not lint */
# include <errno.h>
#endif /* not lint */
# include <errno.h>
** Parameters:
** e -- the envelope to process.
** full -- if set, do full processing (e.g., compute
** Parameters:
** e -- the envelope to process.
** full -- if set, do full processing (e.g., compute
+** message priority). This should not be set
+** when reading a queue file because some info
+** needed to compute the priority is wrong.
if (tTd(32, 1))
printf("----- collected header -----\n");
if (tTd(32, 1))
printf("----- collected header -----\n");
for (h = e->e_header; h != NULL; h = h->h_link)
{
if (h->h_value == NULL)
for (h = e->e_header; h != NULL; h = h->h_link)
{
if (h->h_value == NULL)
}
/* save the message-id for logging */
}
/* save the message-id for logging */
- if (full && strcasecmp(h->h_field, "message-id") == 0)
+ if (strcasecmp(h->h_field, "message-id") == 0)
{
msgid = h->h_value;
while (isascii(*msgid) && isspace(*msgid))
{
msgid = h->h_value;
while (isascii(*msgid) && isspace(*msgid))
p = hvalue("precedence", e->e_header);
if (p != NULL)
e->e_class = priencode(p);
p = hvalue("precedence", e->e_header);
if (p != NULL)
e->e_class = priencode(p);
+ if (e->e_class < 0)
+ e->e_timeoutclass = TOC_NONURGENT;
+ else if (e->e_class > 0)
+ e->e_timeoutclass = TOC_URGENT;
if (full)
{
e->e_msgpriority = e->e_msgsize
- e->e_class * WkClassFact
+ e->e_nrcpts * WkRecipFact;
if (full)
{
e->e_msgpriority = e->e_msgsize
- e->e_class * WkClassFact
+ e->e_nrcpts * WkRecipFact;
- if (e->e_class < 0)
- e->e_timeoutclass = TOC_NONURGENT;
- else if (e->e_class > 0)
- e->e_timeoutclass = TOC_URGENT;
}
/* message timeout priority */
p = hvalue("priority", e->e_header);
}
/* message timeout priority */
p = hvalue("priority", e->e_header);
{
/* (this should be in the configuration file) */
if (strcasecmp(p, "urgent"))
{
/* (this should be in the configuration file) */
if (strcasecmp(p, "urgent"))