RT::Interface::Email::RequiredHeaders - only accept new tickets via email with a certain header
Used to enforce ticket-creation from a web-interface. Doesn't accept new emails to the support queue without a special header.
# etc/RT_SiteConfig.pm # Note: Must come before Filter::TakeAction in MailPlugins (if present) Set(@Plugins,(qw/ RT::Interface::Email::RequiredHeaders /)); Set(@MailPlugins, (qw/ Auth::MailFrom RequiredHeaders /)); Set(%Plugin_RequiredHeaders, ( "required" => [qw/X-RT-RequiredHeader/], # required is always required # "queues" => [qw/General/], # defaults to all queues # # change default rejection message: # "message" => "Error: You can only submit issues via the web.", ));
Alister West - http://alisterwest.com/
Copyright 2013, Alister West This module is free software; you can redistribute it and/or modify it under the same terms as Perl. See http://dev.perl.org/licenses/.
Returns: ($CurrentUser, $auth_level) - not-triggered passthough inputs. Returns: ($CurrentUser, -1 ) - halt further processing and send rejection notice. See RT::Interface::Email::GetAuthenticationLevel for more on $auth_level.
To install RT::Interface::Email::RequiredHeaders, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RT::Interface::Email::RequiredHeaders
CPAN shell
perl -MCPAN -e shell install RT::Interface::Email::RequiredHeaders
For more information on module installation, please visit the detailed CPAN module installation guide.