cli-microsoft365 icon indicating copy to clipboard operation
cli-microsoft365 copied to clipboard

Does anyone know of other applications that build off these CLI apps?

Open rudolphpienaar opened this issue 3 years ago • 2 comments

Hi all --

I have been searching to little avail for client apps that might use/interface with these? For example, a CLI email app that uses m365 outlook as backend? It would be amazing if mutt was able to leverage this.

Does anyone know of any such apps?

rudolphpienaar avatar Sep 13 '22 15:09 rudolphpienaar

Hey @rudolphpienaar, CLI is used by a few tools that I know of, like the Viva Connections Toolkit VS Code extension, and Angular schematic for Microsoft Teams. We expose an API that apps can use to integrate with the CLI. Is there anything specific that you're interested in?

waldekmastykarz avatar Sep 17 '22 10:09 waldekmastykarz

Ideally I'd like to use a standard 3rd party client (like Thunderbird or mutt) to leverage this. In the vein of "If you have an itch, scratch it", I implemented a first-pass solution here:

https://github.com/FNNDSC/mbox2m365

It needs some additional internediate "stuff" -- like a lightly configured postfix server that the email client uses instead of Outlook. This server simply dumps emails to file (mbox) and then a small python "bridge" parses the mbox for any new arrivals, figures out compound "to" recipients, and then calls m365. It currently works for me, with the notable exception of attachments since m365 does not currently cater for this. At the moment mbox2m365 will mostly construct a conformant MIME body with any attachment base 64 encoded, however, since I can't modify the "content-type" I can't communicate to Outlook to treat this as a MIME transmission. Right now emails with attachments sent via this mechanism have the base64 body parts front and center in the email itself.

Ideally thus, being able to edit the content-type header and/or support attachments would be stunning.

Best

rudolphpienaar avatar Sep 22 '22 17:09 rudolphpienaar

Interesting scenario. Just to see if I understand it correctly, you're proposing to extend the m365 outlook mail send command with defining the content-type header and supporting attachments? If that's indeed the case, let's create a new issue with the proposal and take it from there! Great suggestion 👏

waldekmastykarz avatar Sep 23 '22 18:09 waldekmastykarz

Attachments is already being worked on by the way. That will probably be launched In the beta version soon.

martinlingstuyl avatar Sep 23 '22 19:09 martinlingstuyl

oh sweet!

rudolphpienaar avatar Sep 28 '22 15:09 rudolphpienaar