In the Zimbra mail server, there are blacklists and whitelists that determine whether to block or allow new incoming emails. However, the process of blocking an email this way can be inconvenient. I am interested in creating a plugin for the Zimbra mail server that filters emails into spam and non-spam categories based on a specific list.
The issue I am facing is obtaining information about a new incoming email address, including the email address itself and the header. I have explored tutorials on developing a Zimlet, but they mostly focus on performing actions rather than retrieving information.
Could someone please advise me on how to retrieve this information?
Thank you in advance :-)