-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
Timo Sirainen wrote:
| printf "1 select $mailbox\n2 search text x93hgdgd\n3 logout\n" |
| dovecot --exec-mail imap
|
| For getting the list of mailboxes:
|
| mailboxes=printf "1 list "" *\n" | dovecot --exec-mail imap | perl magic
Ok, looks easy. But I can't find information anywhere on how to specify the user. I tried with 'USER=username' in front of the dovecot call, and dovecot then said 'Logged in as username' instead of 'Logged in as root', but a list command doesn't show the mailboxes, so I think it's not accessing the maildir of that user. I guess it's because the users are not system users, and dovecot needs to retrieve info from the LDAP directory first. But how do I tell it to do that?
Logging in via netcat / telnet works, but then I don't know how to proceed...
Thanks for your help! Patrick.
STAR Software (Shanghai) Co., Ltd. http://www.star-group.net/ Phone: +86 (21) 3462 7688 x 826 Fax: +86 (21) 3462 7779
PGP key: https://stshacom1.star-china.net/keys/patrick_nagel.asc Fingerprint: E09A D65E 855F B334 E5C3 5386 EF23 20FC E883 A005 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFIkqF+7yMg/OiDoAURAii6AKCOpl9mSq8eWdwFEj4/LUOf4I3yEwCfcydS IOBDO6Q05JIARK9Cg/bbSlo= =kk4r -----END PGP SIGNATURE-----