Opened 3 years ago
Last modified 3 years ago
#1486389 new Feature Requests
Cumulative attachment size limit
| Reported by: | JohnDoh | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | later |
| Component: | User Interface | Version: | git-master |
| Severity: | normal | Keywords: | |
| Cc: | m.duelli@…, timo.kousa@… |
Description
As well as a restriction on the size of each file that can be attached when composing an email would it be possible to have a restriction on the total size of all attachments added together?
I think that would actually be more useful than a per file limit since it is the overall size of the email which will be restricted by the server.
Change History (5)
comment:1 Changed 3 years ago by duelli
- Cc m.duelli@… added
comment:2 Changed 3 years ago by timo
- Cc timo.kousa@… added
comment:3 Changed 3 years ago by nick.lock
Timo, your plugin works perfectly for me. Thank you!
comment:4 Changed 3 years ago by JohnDoh
Great plugin thanks, I think this ticket can be closed now! Please consider adding your plugin to the list here http://trac.roundcube.net/wiki/Plugin_Repository
ps. there is an $attachmentsize? variable now (since 0.4b), and in the $args too, so the size does not need to be calculated every time.
comment:5 Changed 3 years ago by JohnDoh
that should of said $attachment[ 'size' ]

I tried to make a plugin that achieves this functionality. If you want to try it out you can find it here http://koti.welho.com/timkousa/roundcube/total_attachment_size_limit.tar.gz
This is my first plugin for Roundcube so it would be nice to hear from someone more experienced if this is the correct way to do this.
p.s. The error message is not shown properly becouse of ticket #1486725