afterlogic / webmail-lite

AfterLogic WebMail Lite PHP. Fast and easy-to-use webmail front-end for your existing IMAP mail server, Plesk or cPanel.
https://afterlogic.org/webmail-lite
GNU Affero General Public License v3.0
443 stars 120 forks source link

Is it possible to get specific from or to or even searching in subject #61

Closed abdelrahmanahmed closed 7 years ago

abdelrahmanahmed commented 7 years ago

How can i search and get list of to or from or searching in email subject?

afterlogic-support commented 7 years ago

Programmatically or in UI?

abdelrahmanahmed commented 7 years ago

Programmatically

afterlogic-support commented 7 years ago

Unfortunately, no ready examples available. You can use https://afterlogic.com/docs/webmail-pro/integration-and-development/getting-new-or-last-messages for start and extend it with specifying extra parameters of getMessageList function (in webmail/libraries/afterlogic/common/managers/mail/manager.php) which let you configure search. That's all we can suggest..

abdelrahmanahmed commented 7 years ago

I have noticed this in the UI image can you tell me what are the methods used in this search?

afterlogic-support commented 7 years ago

If you put a breakpoint in getMessageList function, you'll see which parameters are passed after you type them in search box in UI. With a bit of experimenting you should get the idea what to pass there.