4 ms·
Please do no encourage admins to replace useful debugging output with useless HTML shiny. But, by all means, improve the text itself.
by sneak 15y ago
Please do no encourage admins to replace useful debugging output with useless HTML shiny.
But, by all means, improve the text itself.
- fredoliveira 15y agoWhat you call debugging output frequently isn't really debugging output - it's frequently a bunch of convoluted text that says 1 of 2 things, in 90% of cases: a) target email doesn't exist; b) your email was too large, dummy The text can and should be improved and be void of HTML shiny - the mail client itself could parse the new, slimmer, standard error text and make it pleasing.
- dholowiski 15y agoAs somebody who administers an exchange server I see dozens of different types of failure messages and they are incredibly useful for troubleshooting. Lets please not dumb them down. As somebody who spent 13 years doing tech support I can tell you that the vast majority of users don't read error messages no matter how shiny or well written they are.
- scott_w 15y agoThe problem isn't the failure messages per se, it's the failure messages regarding user error. If the user has made a mistake somewhere, the client should try to understand the error message and, if it's user error (email address doesn't exist, attachment too big), it should suggest solutions to the problem in a language the user can understand. If the system itself has an issue, the client should provide enough information to tell the user either: a) How they can resolve it b) How they can contact whoever needs to resolve it
- TazeTSchnitzel 15y agoYou can have both. Easy-to-read message at the top, debug output underneath. Simple.
- tedunangst 15y agoThat's exactly what we have today. Bounce message on top, details of conversation underneath.
- gauravk92 15y agoHTML definitely sucks to parse but it's definitely better then plain text. At least it's a standardized format, as well that it allows for a much better interpretation in terms of visuals without convoluting the DOM for a parser. Sort of the best of both worlds, again I know using any HTML lib sucks to a degree, even with xpath, but wouldn't it still be a step forward. Let's standardize all email error messages to HTML. At least then a standard exists even though it will suck, most standards suck in many ways. But it's a total nightmare without any.
- quanticle 15y agoNo, no, no, a thousand times, no. HTML is not easier to parse than plain text. Plain text is easily transferred, stored, parsed (with grep, or whatever you use for regular expressions), and, as a bonus, is easy for humans to look at. HTML helps with exactly none of those things. There's a reason that Erik S. Raymond emphasizes the power of plain text in The Art of Unix Programming. There's a reason that The Pragmatic Programmer has a chapter devoted to it. That's because plain text (more specifically plain ASCII text) is the closest thing we have to a universally understood format in computing. For something like e-mail, plain text is by far preferable to HTML, XML, JSON or some other structured format. You can't know that your target will have a parser for a structured format. The only thing you can assume is that your target is capable of reading and transferring plain text.
- qznc 15y agoWe could settle with markdown? Does any mail client handle the mime-type text/markdown or text/x-markdown [0] or text/x-web-markdown [1] or something? [0] http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg00976.html http://www.mail-archive.com/markdown-discuss@six.pairlist.ne... [1] http://codecraft.io/2011/07/18/ubuntu-markdown-files-mime-type-and-association/ http://codecraft.io/2011/07/18/ubuntu-markdown-files-mime-ty...
- hartror 15y agoYou can use multipart/alternative emails to send HTML and Text in the same email. This means the OP's solution can leave useful debugging in place while providing the user with the HTML shiny they've come to expect.
- spoondan 15y agoYou missed a crucial part of the post: Machines can read [these error messages] just fine, though. Here's an idea: machines shouldn’t slap us in the face. They should help us along if they fail to do our bidding. He's not encouraging admins to replace useful debugging output. In fact, it's the opposite: he's encouraging email client designers to actually use the debugging output to let people know what went wrong. His mockup is quite clearly of an email client showing users relevant recovery options based on an underlying error message the client has parsed. In other words, he's proposing that email clients treat MTA error messages precisely as they already handle raw headers. Full headers contain useful debugging information, but you aren't normally debugging.
- ori_b 15y agoNo, they can't. There's no standard format for these error messages that I know of. Maybe there should be, but that's a problem that has to be solved before the shiny UI can be placed over it.
- fleitz 15y agoThere's no standard format for email either, but that doesn't stop it from working. Email is worse than HTML in terms of what is expected to work. You're lucky if an email is all in one character set, and even luckier if that character set is the one it says it is. If you've written many systems that deal with email you know that you could be processing almost anything. Sure, there might not be a 'standard' format for email, but you can return a multipart message that perserves the ugly text messages and includes an HTML message for the rest of us. Note, that by standard I mean most emails violate any particular email RFC in some egregious way, similar to the way most HTML pages are invalid, for example the page for this comment has no less than 20 errors.
- dfox 15y agoThere is no standard format for the plain text part of bounce that your MUA shows to you as it's just that: plaintext part to show when MUA knows nothing better to do. RFC 3464 specifies format of additional MIME parts of message that specify what happened in machine readable format. It's interesting to note that it's exactly same mechanism as is used for sender-requested notifications for delivered email in which case these messages are processed by MUAs just fine.