From: minima Date: Thu, 7 Nov 2002 19:26:13 +0000 (+0000) Subject: change the default store for deletetime X-Git-Tag: PRE-1-52~109 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=218a6c34b28e608ee0dd1b2af76360826d7e31ce;p=spider.git change the default store for deletetime --- diff --git a/perl/DXMsg.pm b/perl/DXMsg.pm index 43a1207b..e90a6bb1 100644 --- a/perl/DXMsg.pm +++ b/perl/DXMsg.pm @@ -522,7 +522,7 @@ sub store my $rr = $ref->{rrreq} ? '1' : '0'; my $priv = $ref->{private} ? '1': '0'; my $del = $ref->{delete} ? '1' : '0'; - my $delt = $ref->{deletetime} || '0'; + my $delt = $ref->{deletetime} || ($ref->{t} + $maxage); my $keep = $ref->{keep} || '0'; print $fh "=== $ref->{msgno}^$ref->{to}^$ref->{from}^$ref->{t}^$priv^$ref->{subject}^$ref->{origin}^$ref->{'read'}^$rr^$del^$delt^$keep\n"; print $fh "=== ", join('^', @{$ref->{gotit}}), "\n";