TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Plain text wrapping in Gmail

171 pointsby daw___almost 11 years ago

14 comments

pilifalmost 11 years ago
Google should sent plain text mail with format=flowed (<a href="http://www.ietf.org/rfc/rfc2646.txt" rel="nofollow">http:&#x2F;&#x2F;www.ietf.org&#x2F;rfc&#x2F;rfc2646.txt</a>) as that would fix the issue for both very old clients which profit from the hard line breaks while still providing word wrapping on mobile clients.<p>It&#x27;s ok if they don&#x27;t support it when displaying mail, but by just setting that flag on sending, people with good clients will get the best possible experience
评论 #7995190 未加载
userbinatoralmost 11 years ago
While I don&#x27;t agree with Gmail automatically inserting linebreaks, 78 is basically <i>the</i> convention for plaintext email (and mailing lists often enforce this rule), so I do keep my lines within 80 characters and don&#x27;t like it when others send everything on one line. The same applies to plaintext files, e.g. READMEs and related documentation, so I don&#x27;t see why it should be any different for email. If you want to do something more fancy, use HTML instead.<p>The other annoyance I have is with email clients that display plaintext emails in proportional font, which mangles ASCII art diagrams and nicely-aligned tables&#x2F;columns. The ones that attempt to &quot;rejoin&quot; lines and re-word-wrap also make a similar mess.
评论 #7994617 未加载
评论 #7994625 未加载
评论 #7994553 未加载
bobbyi_settvalmost 11 years ago
This misses the most annoying part of the line wrapping which is how it interacts with GMail&#x27;s &quot;Undo Send&quot; feature. If you notice an error in your email and click Undo, they bring you back to the compose mode with the hard newlines still inserted.<p>If you edit the email and send, they now add more hard newlines for where the new line endings are and you end up with a mix of tiny lines and normal lines looking like your email is written in free verse.
adamlafavealmost 11 years ago
This was a problem for me when I had to parse incoming emails. The solution I came up with was to ignore the text&#x2F;plain part and instead strip all HTML from the text&#x2F;html part, leaving you with the original text without all of the added newlines.<p>I wrote about this here: <a href="http://adamlafave.com/email-parsing-dont-parse-text-plain/" rel="nofollow">http:&#x2F;&#x2F;adamlafave.com&#x2F;email-parsing-dont-parse-text-plain&#x2F;</a>
4adalmost 11 years ago
Yes, plain text e-mail in Gmail is awful, absolutely unusable, fact recognised by many people, e.g. the Linux kernel people[1].<p>However, this article is hilariously bad, promotes bad practice concentrating on completely irrelevant issues and offering bad advice. Wrapped text is <i>good</i>, this has been talked to death so I won&#x27;t repeat it here. Beside being bad style is general, non-wrapped e-mails are very strongly correlated to bad messages. If someone posts non-wrapped e-mails, or worse, HTML on a mailing list it&#x27;s a very strong cue that person doesn&#x27;t know what he&#x27;s talking about, so it&#x27;s a great way to ignore useless e-mails.<p>Gmail is bad because you can&#x27;t turn wrapping off. On by default is a great default, it&#x27;s just awful you can&#x27;t turn it off when posting code or diffs.<p>Even worse, Gmails started converting tabs to spaces, and eliding leading indentation completely making it absolutely useless as a patch delivery mechanism. The new age auto-reflow stuff also interferes with this.<p>[1] <a href="https://www.kernel.org/doc/Documentation/email-clients.txt" rel="nofollow">https:&#x2F;&#x2F;www.kernel.org&#x2F;doc&#x2F;Documentation&#x2F;email-clients.txt</a>
partomniscientalmost 11 years ago
The problem with RFC2822 (as with all specifications) is that it failed to correctly predict this future (and ideally all other possible futures).
评论 #7994889 未加载
Chinasolalmost 11 years ago
It&#x27;s great to see the old 80-column punched card standard fossilised in these modern environments...
评论 #7994854 未加载
评论 #7994858 未加载
评论 #7994662 未加载
JetSpiegelalmost 11 years ago
It&#x27;s not like you can&#x27;t use a real email client. What&#x27;s this obsession with web apps for everything? Use thunderbird, or k9 on android.
评论 #7995065 未加载
qwertaalmost 11 years ago
Why you just do not use different email client?
lelfalmost 11 years ago
That “solution” won&#x27;t help at all. 78 limit is about the client UI and its inability to wrap[1] and the lines still will be longer than 78 chars after decoding. (How and why exactly this matters in 2014 is another story.)<p>[1] <a href="http://tools.ietf.org/html/rfc2822#section-2.1.1" rel="nofollow">http:&#x2F;&#x2F;tools.ietf.org&#x2F;html&#x2F;rfc2822#section-2.1.1</a>
评论 #7994381 未加载
zemalmost 11 years ago
i finally gave up and switched to sending html mail precisely because of this issue :(
mahousealmost 11 years ago
This post made me remember something: with the mail client which is built-in into Windows Phone, it&#x27;s impossible to send plain text mails, even when you use Gmail.<p>And, on top of that, the mails are sent with the Calibri font. (Sorry for the off-topic)
评论 #7994462 未加载
quasquealmost 11 years ago
The author hasn&#x27;t made a case for why he needs to send plain text emails.<p>Every mail client - including text mode ones like Pine - supports HTML formatted emails, even if they end up displaying them without formatting.
评论 #7994520 未加载
评论 #7994485 未加载
评论 #7994494 未加载
评论 #7994590 未加载
zorkedalmost 11 years ago
The point of the convention is making the text fit on a 80-character fixed-with screen. QP-encoding the text won&#x27;t solve that problem, as it will only create a very long line that is encoded in a way that has literal line breaks into it, which isn&#x27;t the point.<p>What should be done, I believe, is that e-mail _clients_ should detect the 78-character convention and rejoin the lines into paragraphs if they think it would be best.<p>What Gmail does when sending mail is right, and the alternative view is that this convention should be dead and they should just throw it away and send very long lines.
评论 #7994346 未加载
评论 #7994436 未加载
评论 #7994581 未加载
评论 #7994850 未加载