frankivo / scala-ms-exchange   1.2.2

GitHub

Scala wrapper for microsoft.exchange.webservices

Scala versions: 2.13 2.12 2.11

scala-ms-exchange

Scala wrapper for microsoft.exchange.webservices

Easy to use.

For example, this is how you delete all mails with subject "test" and older than 30 days:

import com.github.frankivo.Email.Actions
import com.github.frankivo.EmailList.Filters
import com.github.frankivo.Exchange

new Exchange("[email protected]", "pass", "https://server/EWS/Exchange.asmx")
      .getInboxItems
      .withSubject("test")
      .minAge(30)
      .foreach(_.delete())