pnp / cli-microsoft365

Manage Microsoft 365 and SharePoint Framework projects on any platform
https://aka.ms/cli-m365
MIT License
896 stars 318 forks source link

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

Closed rudolphpienaar closed 1 year ago

rudolphpienaar commented 1 year ago

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?

waldekmastykarz commented 1 year ago

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?

rudolphpienaar commented 1 year ago

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

waldekmastykarz commented 1 year ago

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 👏

martinlingstuyl commented 1 year ago

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

rudolphpienaar commented 1 year ago

oh sweet!