head	1.5;
access;
symbols
	NEWHELM:1.1.1.1
	TIGRIS_NOV_12_2000:1.1.1
	OLDHELM:1.3.0.4
	TIGRIS_NOV_11_2000:1.3
	TIGRIS_SEP_13_2000:1.3.0.2
	TIGRIS_BASELINE:1.3;
locks; strict;
comment	@# @;


1.5
date	2000.11.16.04.31.15;	author edk;	state dead;
branches;
next	1.4;

1.4
date	2000.11.12.22.57.33;	author dlr;	state Exp;
branches;
next	1.3;

1.3
date	2000.08.01.23.26.29;	author kmaples;	state Exp;
branches;
next	1.2;

1.2
date	2000.05.08.21.28.16;	author manoj;	state Exp;
branches;
next	1.1;

1.1
date	2000.04.29.00.04.10;	author jrobbins;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2000.11.12.21.17.43;	author dlr;	state Exp;
branches;
next	;


desc
@@


1.5
log
@these are obsoleted by anzu & eyebrowse
@
text
@#!/usr/bin/perl -w

# ================================================================
# Copyright (c) 2000 Collab.Net.  All rights reserved.
# 
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# 
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 
# 3. The end-user documentation included with the redistribution, if
# any, must include the following acknowlegement: "This product includes
# software developed by Collab.Net (http://www.Collab.Net/)."
# Alternately, this acknowlegement may appear in the software itself, if
# and wherever such third-party acknowlegements normally appear.
# 
# 4. The hosted project names must not be used to endorse or promote
# products derived from this software without prior written
# permission. For written permission, please contact info@@collab.net.
# 
# 5. Products derived from this software may not use the "Tigris" name
# nor may "Tigris" appear in their names without prior written
# permission of Collab.Net.
# 
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL COLLAB.NET OR ITS CONTRIBUTORS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# ====================================================================
# 
# This software consists of voluntary contributions made by many
# individuals on behalf of Collab.Net.
#


# qmail-user-delete
# $Id: qmail-user-delete,v 1.4 2000/11/12 22:57:33 dlr Exp $
# --------------------

# Provides functions to update the qmail aliases to match the user list;
# forward all the email addrs to the proper place.  Also, update the config
# files used by qmail to do virtual hosting.


use strict;

# Process arguments
my $sandbox      = $ARGV[0];
my $user_login_id = $ARGV[1];
my $domain_name   = $ARGV[2];

my $cmd = "unix command line";

my $qmailroot = "$sandbox/tigrisq";
my $user_dotqmail = "$qmailroot/.qmail-$user_login_id";

my $sorry_address = "jrobbins-sorry\@@collab.net";

print "qmail: redirect forwarding files for $user_login_id in $domain_name to $sorry_address\n";

# TODO: write a script to bounce back a sorry message

open USERDOTQMAIL, ">$user_dotqmail" or die "open $user_dotqmail failed: $!";
print USERDOTQMAIL $sorry_address;
close USERDOTQMAIL or die "close $user_dotqmail failed: $!";

@


1.4
log
@Resolved merge conflicts.
@
text
@d51 1
a51 1
# $Id: qmail-user-delete,v 1.1.1.1 2000/11/12 21:17:43 dlr Exp $
@


1.3
log
@Fixed typos in perl.
@
text
@d51 1
a51 1
# $Id: qmail-user-delete,v 1.2 2000/05/08 21:28:16 manoj Exp $
@


1.2
log
@Untested first attempts at qmail user management that will probably be
removed when we switch to remote maintanence anyway.
@
text
@d51 1
a51 1
# $Id: qmail-user-delete,v 1.1 2000/04/29 00:04:10 jrobbins Exp $
d77 1
a77 1
open USERDOTQMAIL ">$user_dotqmail" or die "open $user_dotqmail failed: $!";
@


1.1
log
@initial checkin
@
text
@d51 1
a51 1
# $Id: qmail.pm,v 1.1 2000/03/24 20:33:58 jrobbins Exp $
a65 5

print "qmail: remove fowarding files for $user_login_id in $domain_name\n";



d68 1
a68 1
my $qmailroot = "/home/tigrisq";
d72 3
d77 3
a79 2
$cmd = "echo '" . $sorry_address . "' >  $user_dotqmail";
print "Running: $cmd\n";
@


1.1.1.1
log
@Merging newhelm tree into helm, as per IZ issue #557.  Previous major version of helm is tagged TIGRIS_NOV_11_2000.
@
text
@d51 1
a51 1
# $Id: qmail-user-delete,v 1.1 2000/10/05 20:05:49 jrobbins Exp $
d66 5
d73 1
a73 1
my $qmailroot = "$sandbox/tigrisq";
a76 3

print "qmail: redirect forwarding files for $user_login_id in $domain_name to $sorry_address\n";

d79 2
a80 3
open USERDOTQMAIL, ">$user_dotqmail" or die "open $user_dotqmail failed: $!";
print USERDOTQMAIL $sorry_address;
close USERDOTQMAIL or die "close $user_dotqmail failed: $!";
@


