Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Devel

If no email set it to username@domain.com

 

 

Request Tracker devel RSS feed   Index | Next | Previous | View Threaded


ajunpreet at gmail

Aug 17, 2012, 6:27 AM

Post #1 of 2 (430 views)
Permalink
If no email set it to username@domain.com

Im tring to make it so if user does not have an email address set it to
their username [at] myemaildomain

In users.pm i can set it so that $args{ ' EmailAddress ' } = $args{ 'Name'
} unless ($args{ ' EmailAddress ' })

but I need it so its their username followed by @something.com for all
users if email is not defined.

Is this possible?
Thanks


falcone at bestpractical

Aug 20, 2012, 7:45 AM

Post #2 of 2 (376 views)
Permalink
Re: If no email set it to username@domain.com [In reply to]

On Fri, Aug 17, 2012 at 09:27:16AM -0400, Ajunpreet Singh wrote:
> Im tring to make it so if user does not have an email address set it to
> their username [at] myemaildomain
>
> In users.pm i can set it so that $args{ ' EmailAddress ' } = $args{ 'Name'
> } unless ($args{ ' EmailAddress ' })
>
> but I need it so its their username followed by @something.com for all
> users if email is not defined.

You can use CanonicalizeUserInfo for this (Assuming you're not using
RT-Authen-ExternalAuth which makes use of this code).

-kevin

Request Tracker devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.