#!/usr/bin/perl
# $Revision: 1.1 $
# $Date: 2003/03/03 14:45:40 $

use Tie::Persistent;

my $user	= shift;
my $pass	= shift;

tie %data, 'Tie::Persistent', '/tmp/imap.db', 'rw';
$data{'users'}{$user}{'password'}	= $pass;
$data{'users'}{$user}{'subscriptions'}	= [] unless (@{$data{'users'}{$user}{'subscriptions'}});
untie %data;

__END__

 $Log: adduser.pl,v $
 Revision 1.1  2003/03/03 14:45:40  greg
 - moved scripts into a 'bin/' directory
 - can now specify server port as an argument to imap.pl

 Revision 1.2  2003/03/03 14:10:14  greg
 - added PREREQ_PM to makefile
 - command tag is now an instance variable
 - command tag is no longer passed to cmd_* and send_* functions
 - rid code of unused Switch references
 - added CVS Revision, Date, and Log tags

