Mailing List Archive

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@myemaildomain.com

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
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@myemaildomain.com
>
> 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