Re: List mailboxes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Niels, Nic, and others,

Thanks for your help. I've created something simples, what does the job for me:

#!/bin/bash
#/usr/local/sbin/lm
lm2 | grep -v 'localhost> ' | cut -d/ -f2 | cut -d' ' -f1 | grep '@'

#!/usr/bin/expect -f
#/usr/local/sbin/lm2
spawn -noecho cyradm -u cyrus localhost
log_user 0
expect "*assword: " {send "[exec cat /usr/local/sbin/cpw]\r"}
expect "*> "        {log_user 1; send "\n"}
expect "*> "        {send "lm user/% \n"}
expect "*> "        {log_user 0; send "\n"}
expect "*> "        {send "exit\n"}

Maybe there is somebody who likes my cyrus-cli script:

#!/usr/bin/expect -f
#/usr/local/sbin/cyrus-cli
spawn -noecho cyradm -u cyrus localhost
log_user 0
expect "*assword: " {send "[exec cat /usr/local/sbin/cpw]\r"}
expect "*> "        {log_user 1; send "\n"}
log_user 1
expect "*> "
interact

With regards,
Paul


--
Paul van der Vlis Linux systeembeheer Groningen
https://vandervlis.nl/

------------------------------------------
Cyrus: Info
Permalink: https://cyrus.topicbox.com/groups/info/T5c3b723599f1c213-M3542b2000fab05567a47d92c
Delivery options: https://cyrus.topicbox.com/groups/info/subscription




[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]
  Powered by Linux