2 RT-Extension-AttachmentFilter - Set forbidden attachments file names or
6 Ses RT extension allows to forbid some files names or extensions from
9 It's use may be to match an existing mail policy.
11 The filter can be defined per queue so queues that do not have outgoing
12 emails configured can have less restrictions.
14 See the configuration example under "INSTALLATION".
20 May need root permissions
22 Edit your /opt/rt4/etc/RT_SiteConfig.pm
23 If you are using RT 4.2 or greater, add this line:
25 Plugin('RT::Extension::AttachmentFilter');
27 For RT 4.0, add this line:
29 Set(@Plugins, qw(RT::Extension::AttachmentFilter));
31 or add "RT::Extension::AttachmentFilter" to your existing @Plugins
34 Then configure the limits using the $AttachmentFilter config option.
35 This option takes the generic form of:
37 Set( $AttachmentFilter,
42 which allows to set limit per queue. '*' means for all queues that
43 do not have a specific filter.
45 'regexp' is a perl regular expression against the filename.
47 Clear your mason cache
48 rm -rf /opt/rt4/var/mason_data/obj
50 Restart your webserver
52 IMPLEMENTATION DETAILS
55 This is the main routine, it takes an attachment file name and an
56 optional queue (name, id or object) and validate it against RT
57 $AttachmentFilter configuration.
59 Returns undef if allowed, (1, error message) else.
62 Dynamic enforcement using javascript
65 Emmanuel Lacour, <elacour@home-dn.net>
68 All bugs should be reported via email to
70 L<bug-RT-Extension-AttachmentFilter@rt.cpan.org|mailto:bug-RT-Extension-AttachmentFilter@rt.cpan.org>
74 L<rt.cpan.org|http://rt.cpan.org/Public/Dist/Display.html?Name=RT-Extension-AttachmentFilter>.
77 This software is Copyright (c) 2016 by Emmanuel Lacour
80 This is free software, licensed under:
82 The GNU General Public License, Version 2, June 1991