Categories

A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. Nulla nulla lorem, suscipit in posuere in, interdum non magna.

Request Tracker email auto completion

This is a very cool plugin for Request Tracker (RT) that will help your users write the right e-mail address and will avoid the administrators those annoying bounces when e-mails are sent from RT to wrong e-mail addresses.

I used RT 3.8.8 and RTx::EmailCompletion 0.06.

Installation

perl -MCPAN -e shell
 cpan> install RTx::EmailCompletion
 cpan> exit

When asked for the RT module location, write the path:

/opt/rt-3.8.8/lib

Add the plugin to the RT configuration

In the file “RT_SiteConfig.pm”, add the plugin to the “@Plugins” definition:

Set(@Plugins,(qw(RTx::EmailCompletion)));

Add the plugin configuration

Add the following text to the “RT_SiteConfig.pm”:

 # RTx::EmailCompletion
 #
 # Referencia:
 # http://search.cpan.org/~nchuche/RTx-EmailCompletion-0.06/lib/RTx/EmailCompletion.pm
 #
 # Para que busque los e-mails que comienzan con el texto ingresado:
 Set($EmailCompletionSearch, "STARTSWITH");
 # Campos de la tabla "Users" donde buscará el plugin:
 Set($EmailCompletionSearchFields, [qw(RealName Name)]);
 #
 # LDAP
 #
 Set($EmailCompletionLdapServer, "ldap.ces.edu.uy");
 Set($EmailCompletionLdapBase, "ou=hosting,o=ces");
 Set($EmailCompletionLdapFilter, "(&(objectClass=JammMailAccount)(accountActive=TRUE)(delete=FALSE))");
 # Atributos del LDAP en los que se hace la busqueda
 Set($EmailCompletionLdapAttrSearch, [qw/mail cn/]);
 Set($EmailCompletionLdapAttrShow, "mail");
 # Largo mínimo del texto para que se mande una consulta al LDAP
 Set($EmailCompletionLdapMinLength, 4);
 # Para mostrar los usuarios del LDAP:
 Set($EmailCompletionUnprivileged,"everybody");
 #
 # Deshabilito la busqueda en los usuario del RT. Solo buscara en el LDAP.
 # Esto es porque el RT tiene muchos Requestors mal escritos.
 Set($EmailCompletionRdbmsDisabled, 1);

Restart the web server

service httpd restart

Enjoy this plugin!

  • Delicious
  • Facebook
  • Digg
  • Reddit
  • StumbleUpon
  • Twitter

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>