has anybody experience with filtering / searching folder contents from within a zimlet (not the find e-mail messages functionality), i.e.:

- drag and drop message from inbox to zimlet
- pop-up zimlet, collecting additional search parameters
- filtering inbox according with search parameters and displaying filtered inbox after closing zimlet pop-up.

Is there an API (JavaScript ?) for the User Interface?