From e2a6902a4cb51714c74baf07e4ac57f23bb64b9b Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Mon, 5 Jun 2006 09:26:17 +0000 Subject: [PATCH] Log message size --- mbfido/tosspkt.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mbfido/tosspkt.c b/mbfido/tosspkt.c index fb5b8e95..3bab8937 100644 --- a/mbfido/tosspkt.c +++ b/mbfido/tosspkt.c @@ -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;