From f94f93131f4e6caa7aa6629b1e657bc350d832b6 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Mon, 5 Jun 2006 10:12:27 +0000 Subject: [PATCH] Added warning log for messages >= 32768 bytes --- ChangeLog | 3 +++ mbfido/tosspkt.c | 10 ++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index b1af8516..5698f3d6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14,6 +14,9 @@ v0.83.20 27-May-2006 Check for stopped tasks reverted to the old method without signal handlers. + mbfido: + Added warning log for messages >= 32768 bytes. + v0.83.19 23-May-2006 - 27-May-2006 diff --git a/mbfido/tosspkt.c b/mbfido/tosspkt.c index d01fee7c..5c0e61d1 100644 --- a/mbfido/tosspkt.c +++ b/mbfido/tosspkt.c @@ -221,10 +221,12 @@ int importmsg(faddr *p_from, faddr *f, faddr *t, char *orig, char *subj, time_t FirstLine = FALSE; } /* end of checking kludges */ - if (echomail) { - Syslog('-', "Echo area %s from %s subj \"%s\" size %d", msgs.Tag, f->name, subj, size); - } else { - Syslog('-', "Net from %s subj \"%s\" size %d", f->name, subj, size); + if (size >= 32768) { + if (echomail) { + Syslog('!', "WARNING: Echo area %s from \"%s\" subj \"%s\" size %d", msgs.Tag, f->name, subj, size); + } else { + Syslog('!', "WARNING: Net from \"%s\" subj \"%s\" size %d", f->name, subj, size); + } } if (echomail) {