head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	2001.08.14.17.45.27;	author kmaples;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Strip references to domain, since domain is now handled internally by IZ
when performing mail.
@
text
@# Update the initialowner, qa_contact fields for subcomponents to work with
# current system for handling usernames (which handles email prefixing and
# domain suffixing when sending mail):

# Get rid of mail prefix:
UPDATE subcomponents 
SET initialqacontact = trim(
	leading '__MAIL_PREFIX__' 
	FROM initialqacontact);
    
UPDATE subcomponents 
SET initialowner = trim(
	leading '__MAIL_PREFIX__' 
	FROM initialowner);
    
# Get rid of domain; this will occur in either the form
# user@@{domain}, or user@@{project}.{domain}:
UPDATE subcomponents 
SET initialqacontact = trim(
    trailing '@@__DOMAIN__' 
    FROM initialqacontact);
UPDATE subcomponents 
SET initialowner = trim(
    trailing '@@__DOMAIN__' 
    FROM initialowner); 

UPDATE subcomponents
SET initialqacontact = trim(
    trailing '.__DOMAIN__'
    FROM initialqacontact);
UPDATE subcomponents
SET initialowner = trim(
    trailing '.__DOMAIN__'
    FROM initialowner);

@
