Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Re: [anup123] limits_uploads_max error?

Quote Reply
Re: [anup123] limits_uploads_max error? In reply to
This patch should fix it up:

Code:
--- Attach.pm.orig Thu Oct 16 19:18:29 2003
+++ Attach.pm Thu Oct 16 19:17:46 2003
@@ -157,7 +157,7 @@
}

# Check max uploads allowed
- if ($num >= $CFG->{limits}->{uploads_max}) {
+ if ($num > $CFG->{limits}->{uploads_max}) {
unlink "$data_dir/$safe_file" or $self->error("UNLINK", "FATAL", "$data_dir/$safe_file", $!);
return $self->error('ATTACHERR_MAX', 'WARN', $CFG->{limits}->{uploads_max});
}
@@ -246,7 +246,7 @@
}

# Check max uploads allowed
- if ($num >= $CFG->{limits}->{uploads_max}) {
+ if ($num > $CFG->{limits}->{uploads_max}) {
return $self->error('ATTACHERR_MAX', 'WARN', $CFG->{limits}->{uploads_max});
}

This is to GMail::Email::Attach.pm

I've also attached the patch file to the post in case you want it. Make a backup of the original in case I messed something else up :)

~Charlie
Subject Author Views Date
Thread limits_uploads_max error? anup123 2398 Oct 16, 2003, 3:45 PM
Thread Re: [anup123] limits_uploads_max error?
Chaz 2336 Oct 16, 2003, 4:27 PM
Post Re: [Chaz] limits_uploads_max error?
brewt 2326 Oct 16, 2003, 6:55 PM