RDCOMClient for RStudio Server

I've installed Rserver and RStudio server on linux and migrating some of the scripts to the server. Most of the scripts use RDCOMClient package as it works on email attachments.

I'm having issues installing RDCOMClient package on the server (I know it's windows based). But wondering if there is any alternative to this? How can I work with email items if running code from the R Server?

Many Thanks,