[imp] wrong attachment size, again

Michael M Slusarz slusarz at bigworm.colorado.edu
Sun Aug 3 14:31:28 PDT 2003


Quoting Martin Kaehmer <martink-ml at gmx.net>:

| Hi all,
|
| just found another bug in imp (cvs 29.07.2003). If you add an attachment,
| its size is calculated before it is mime-encoded. That way only a smaller
| total size of the mail is checked against attach_size_limit than it
| should.
| If you finally send that mail, all parts get encoded and the total size
| may grow over attach_size_limit.

No this is not a bug - this is expected behavior.  Telling the user they
have a 5MB limit, and they then upload a 4.9 MB file and it gets rejected,
would be completely unexpected.

If you want the attachment size to be factored by the size after MIME
encoding, simply reduce the maximum attachment size setting at your site by
33%.

michael

______________________________________________
Michael Slusarz [slusarz at bigworm.colorado.edu]
The University of Colorado at Boulder


More information about the imp mailing list