Re: List mailboxes

"Paul van der Vlis via Info" <[email protected]>
Newsgroups gmane.mail.imap.cyrus
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.