This patch should fix it up:
+++ 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
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