com.liferay.mail.dependencies.fedora.cyrus.cyrus_adduser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of portal-impl Show documentation
Show all versions of portal-impl Show documentation
Contains implementation for the portal services.
#!/usr/bin/expect -f
set password [lindex $argv 0]
set username [lindex $argv 1]
set hostname localhost
spawn /usr/lib/cyrus-imapd/cyradm --user cyrus $hostname
expect "IMAP Password:"
send "$password\r"
expect "$hostname>"
send "cm user.$username\r"
expect "$hostname>"
send "quit\r"
expect eof