Hello,
I am looking at adding address book 'quick search'/auto-complete functionality, amongst other enhancements, to the advanced_search plugin for the email relevant fields (To, From, etc). This will allow for quick and easy entry of email addresses that are in the address book.
Looking at the functionality in the compose, simply adding this JS snippit to the input seems to work:
<code> var ac_props; rcmail.init_address_input_events(row_input, ac_props); </code>
The problem being that this wraps the email address with "<>", prepends the display name and appends ", " to the data. Trying to just use this and filtering the email our with a regex in the backend is problematic due to the "<email>" being removed via the XSS HTML tag filtering protection. Disabling this is also not desirable.
What I would like is to have the same type of functionality but choosing only to place the email address in the field. I have done a little digging through the JS code but did not quickly find something that matched my requirements.
Can someone point me in the right direction or do I need to try to trace what is happening all through app.js.src. I would like to reuse as much of the core code as possible.
Regards,
Chris