nylas-mail-lives / nylas-mail

:love_letter: An extensible desktop mail app built on the modern web.
MIT License
474 stars 63 forks source link

Plain text mode #82

Open robertfoss opened 7 years ago

robertfoss commented 7 years ago

As a developer who does a fair amount of old-school mailing list based development, it would be nice to see support for plain text only emails.

Thanks!

dweremeichik commented 7 years ago

@simonft is working on this.

simonft commented 7 years ago

I've got a commit that adds a plain-text only version generated from the html: https://github.com/simonft/nylas-mail/commit/8054109c0841433c88522648d645bcc0ca828bd2

@robertfoss is that enough for your needs? Or are you looking for an editing mode that's html only?

mikeseese commented 7 years ago

dont submit the PR until Sunday :P

mikeseese commented 7 years ago

@simonft I think @robertfoss is looking for a button to press to switch the email to plain-text rather than supporting both content types in the sent email. At lease that's what I'd expect. I think when you said "editing mode that's html only" you meant "plain text only", right?

See the interface that switches this in Outlook:

image

robertfoss commented 7 years ago

I would hope for a plaintext by default when replying to received plaintext, plus an option to force the mode.

dweremeichik commented 7 years ago

We should be able to send both text/HTML and text/plain in the same message as a multipart/alternative (what @simonft is working on). Per RFC 2046 it's up to the client to figure out what format it wants. I'm kind of against the interface switches that Outlook has. It's more interface clutter, and is liable to confuse users. Your mailing list is at fault here if it is accepting HTML and not rendering it back to you. Are you sure that if it sees a text/plain multipart it won't use that?