autologin

P

Pet Farrari

HI,

I want to use a perl script to add email folder, but the script I wrote
doesnt seem right.

Here is the code:

line 1: open(CYRADMIN, "| /usr/local/bin/cyradm --user testuser -s
testserver");
line 2: print CYRADMIN $password;
line 3: print CYRADMIN "\n";
line 4: close(CYRADMIN);

when I execute the above code, it shown me a "Password:" prompt waiting
for me to enter a password. But line 2 of the code is already written a
password to it. Can anyone tell me how to correct this error?


Thanks
S
 
L

Lars Haugseth

* Pet Farrari said:
HI,

I want to use a perl script to add email folder, but the script I
wrote doesnt seem right.

Here is the code:

line 1: open(CYRADMIN, "| /usr/local/bin/cyradm --user testuser -s
testserver");
line 2: print CYRADMIN $password;
line 3: print CYRADMIN "\n";
line 4: close(CYRADMIN);

when I execute the above code, it shown me a "Password:" prompt
waiting for me to enter a password. But line 2 of the code is already
written a password to it. Can anyone tell me how to correct this error?

Use the Cyrus::IMAP::Admin module.
 
P

Pet Farrari

Lars said:
Use the Cyrus::IMAP::Admin module.
This is a bad module and I have numerous issues when running this
module. The right one should be IMAP::Admin. The problem had been resolved.

Thanks
Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top