I posted a perl script some time ago to the Imail list
that allows you to change the imail flags from the
command line. That would allow you to convert a
user into a host adminsitrator. Attached is a copy
of the message in case it helps in your case.
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Torbj�rn Larsson
Sent: Friday, August 04, 2000 11:10 AM
To: [EMAIL PROTECTED]
Subject: [imail]

Hi
 
Is there anyone that knows howto add a host administrator from a command promt or a asp page using Imail database?
 
Thanks
 
Torbjorn Larsson
 
 


Attached are two short Perl scripts to retrieve or change
the Imail user flags on the registry from the command line.
Usage examples are as follows:

    perl setflags.pl admin mail.domain.com 1414

        Set flags for [EMAIL PROTECTED] to 1414 which is
                1024 (List administrator) +
                 256 (Host administrator) +
                 128 (Enable web access) +
                    4 (user can not change password) +
                    2 (hide from information services)

    perl getflags.pl fred mail.domain.com

        Gets flags for [EMAIL PROTECTED]

'sefflags.pl' should be helpful to administrators that want to set
the host admin and other flags from a batch procedure.
Documentation for Imail flags can be found at
    support.ipswitch.com/kb/IM-19990609-DM02.htm
(also within the script files) . The scripts were tested using Imail
6.02 and Perl 5.22e for NT from www.activestate.com . Send
suggestions, comments and/or problem reports to [EMAIL PROTECTED] .

getflags.pl

setflags.pl



Reply via email to