+05Feb05=======================================================================
+1. Fix a long standing (ie since the first bulletin was sent) bug with old
+mail not being deleted until a restart was done.
+2. As well as a duplicate check on existing bulletins, I have added a check
+the message is not (already) too old.
03Feb05=======================================================================
1. Added latest Spanish translations courtesy of Angel EA7WA.
2. Force all languages to use pr in en in Messages, as the prompt is
}
# clean the message queue
- clean_old() if $main::systime - $last_clean > 3600 ;
+ if ($main::systime >= $last_clean+3600) {
+ clean_old();
+ $last_clean = $main::systime;
+ }
# actual remove all the 'deleted' messages in one hit.
# this has to be delayed until here otherwise it only does one at
$_->del_msg;
}
- $last_clean = $main::systime;
}
# incoming message
$ref->store($ref->{lines});
} else {
+ # is it too old
+ if ($ref->{t}+$maxage < $main::systime ) {
+ $ref->stop_msg($fromnode);
+ dbg("old message from $ref->{from} -> $ref->{to} " . atime($ref->{t}) . " ignored") if isdbg('msg');
+ Log('msg', "old message from $ref->{from} -> $ref->{to} " . cldatetime($ref->{t}) . " ignored");
+ return;
+ }
+
# does an identical message already exist?
my $m;
for $m (@msg) {