[rt-users] Limiting Who Can Open Tickets
Senoner Samuel
Samuel.Senoner at eurac.edu
Mon Oct 6 11:30:56 EDT 2003
Here a very simple diff, to accept tickets by mail only from users
already in the user DB.
I added some lines as comment to explain how and what is done here.
I will made other changes (include the template autoreject) and post
them.
It works from 3.0.5 on, or 3.0.4 with change 196 or edit 26 on file
mail.pm
If not, there is no response for the deleted mail.
--- /usr/share/perl5/RT/Interface/Email/Auth/MailFrom.pm
2003-09-30 15:18:59.000000000 +0200
+++ /usr/share/perl5/RT/Interface/Email/Auth/MailFrom_Local.pm
2003-10-06 18:23:45.000000000 +0200
@@ -47,8 +47,13 @@
if ( $CurrentUser->Id ) {
return ( $CurrentUser, 1 );
}
-
+ # here we just checked if the e-mail addres corresponds to an
existent user
+ # If there was one auth is set to 1 and the ticket is created
+ # In the next part a new user is created, if another did'nt exist
+ # If you don't want new users to be created on submission of
tickets
+
+ return ( $args{'CurrentUser'}, -1 );
# If the user can't be loaded, we may need to create one. Figure
out the acl situation.
my $unpriv = RT::Group->new($RT::SystemUser);
Samuel
-----Original Message-----
From: Stevo [mailto:checkpoint at ozbergs.com]
Sent: Tuesday,30 September,2003 22:51
To: rt-users at lists.fsck.com
Hey All,
Is there a way to limit who can create a ticket via email?? Right now I
have an email address that people use to create tickets and it gets a
little bit of spam and each time I get spam it opens a new ticket. I'd
like to be able to restrict the opening of tickets from people who are
either at a specific domain or have accounts on our RT system.
More information about the rt-users
mailing list