Log message size
This commit is contained in:
parent
725b68c22f
commit
e2a6902a4c
@ -319,7 +319,7 @@ int TossPkt(char *fn)
|
||||
int getmessage(FILE *pkt, faddr *p_from, faddr *p_to)
|
||||
{
|
||||
char buf[MAX_LINE_LENGTH +1], *orig = NULL, *p, *l, *r, *subj = NULL;
|
||||
int tmp, rc, maxrc = 0, result, flags, cost;
|
||||
int tmp, rc, maxrc = 0, result, flags, cost, size = 0;
|
||||
static faddr f, t;
|
||||
faddr *o;
|
||||
time_t mdate = 0L;
|
||||
@ -431,6 +431,7 @@ int getmessage(FILE *pkt, faddr *p_from, faddr *p_to)
|
||||
while (aread(buf,sizeof(buf)-1,pkt)) {
|
||||
|
||||
fputs(buf, fp);
|
||||
size += strlen(buf);
|
||||
|
||||
/*
|
||||
* Extract info from Origin line if found.
|
||||
@ -462,6 +463,8 @@ int getmessage(FILE *pkt, faddr *p_from, faddr *p_to)
|
||||
}
|
||||
}
|
||||
|
||||
Syslog('m', "message size %d", size);
|
||||
|
||||
rc = importmsg(p_from, &f, &t, orig, subj, mdate, flags, cost, fp, p_to->zone);
|
||||
if (rc)
|
||||
rc+=10;
|
||||
|
Reference in New Issue
Block a user