[Dovecot] FTS/squat search indexes built when?

Timo Sirainen tss at iki.fi
Thu Jul 31 13:19:50 EEST 2008


On Jul 26, 2008, at 9:45 AM, Patrick Nagel wrote:

>> I should
>> think it's a one line to type in the IMAP search command and have it
>> execute?
>
> But I don't know how to wait for / react to answers from the IMAP  
> server
> (after listing mailboxes, selecting the mailbox, etc.) in shell (bash)
> script, which would be my preferred choice as scripting language. Is  
> it
> possible? How?

I don't think you need to do any of that. Just:

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`

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080731/f7a75eef/attachment-0001.bin 


More information about the dovecot mailing list