NAME RT-Extension-MessageSizeLimit - Force web message size limit on ticket create/update DESCRIPTION This RT extension enforces a certain message size limit when a user create a ticket or make a comment/correspondance on it. It uses a guess of outgoing mail size based on subject/content/attachments. It may miss a few bytes from mail headers, templates contents. You would typically set the limit a little bit lower than your outgoing MTA limit. See the configuration example under "INSTALLATION". INSTALLATION "perl Makefile.PL" "make" "make install" May need root permissions Edit your /opt/rt4/etc/RT_SiteConfig.pm If you are using RT 4.2 or greater, add this line: Plugin('RT::Extension::MessageSizeLimit'); For RT 4.0, add this line: Set(@Plugins, qw(RT::Extension::MessageSizeLimit)); or add "RT::Extension::MessageSizeLimit" to your existing @Plugins line. Then configure the limit (default 9MB) using the $MessageSizeLimit config option. This option takes the generic form of: Set( $MessageSizeLimit, BYTES ); Clear your mason cache rm -rf /opt/rt4/var/mason_data/obj Restart your webserver TODO Dynamic enforcement using javascript Allow translation of size units AUTHOR Emmanuel Lacour, BUGS All bugs should be reported via email to L or via the web at L. LICENSE AND COPYRIGHT This software is Copyright (c) 2016 by Emmanuel Lacour This is free software, licensed under: The GNU General Public License, Version 2, June 1991