Write Gmail in Emacs the Easy Way: gmail-message-mode
endlessparentheses.com
endlessparentheses.com
That aside, I can understand the frustration with web interfaces, and if committed to using gmail, why not have a nice interface for composing mails at least?
My current pet peeve with google interfaces, are the text-editing boxes on g+ -- which are not text-boxes, and so doesn't work with "it's all text" -- and also breaks cut'n'paste for long sections of text. So I end up editing a text-file in vim, then copying section by section in ordert to post into g+ communities. Sigh.
[1] https://addons.mozilla.org/en-US/firefox/addon/its-all-text/
I thought this would be a problem, but frankly piping in everything into w3m makes it surprisingly easy to stay plain text only if desired.
I think you are setting the bar a little too high. It seems to me like there is quite a bit of mail that benefits from HTML. Superscripts, subscripts, italics, bold and colored text (used in moderation), inline images (used in moderation) can be really useful when discussing concepts that aren't easily reduced to characters.
Suppose your email would benefit from some mathematical formulas. You can do the old standby and drop into latex math mode, but the person on the other end of the email might not understand what you mean by
\sum_{n=1}^k\,\frac{1}{n} \;=\; \ln k + \gamma + \varepsilon_k < \ln k + 1
much easier and clearer to use LaTeXiT or something similar and copy/paste in an inline image with the formula correctly formatted.
Or, say you are a taxonomist. Italics in species names are not just a stylistic choice, they also convey additional meaning. For example in
Epilobium ciliatum Raf. subsp. watsonii (Barbey) Hoch & P.H. Raven f. rosa
the italics show what parts of the full scientific name refer to the species and what parts refer to authors or levels of taxonomic organization (subspecies and form). You can't do that with plain text (you could of course do it with markdown, though)...
plain text is sufficient of course; but sometimes the additional bells and whistles of HTML really are useful.
Formulas an illustrations can usually just be appended (and while they won't be shown in-line most clients will display images (and those choosing clients that don't won't really complain), but yeah, if you need multimedia you need multimedia.
Now, I don't really see how an image of an equation is really enough -- if you're working with someone, you'd want them to be able to quote you, reply to you -- and most importantly, tweak your work (edit your equations). I'd argue such (genuinely rich documents) don't really belong in email. Use a wiki or something (and then you can email wiki-markup...).
In short, I'm not convinced all the down sides and added complexity of html mail is worth the hassle.
Are rich documents and hypertext (hypermedia) a good idea? Yes. Does it imply a truly object oriented system, essentially mailing each other runnable smalltalk code? Yes. Will that be secure? No. Will that be standardized? Not by the looks of things. This is essentially why office suites are a source of security holes and incompatibilities. And web apps (though differently).
_underlined text_, bold text
* bulleted * list
titles ======
Many email clients will actually add the bolding and underlining to the above styled markup.
But yeah, most of the time text I think that plain text works better.
* use plaintext
* bullets
(I suppose I could use some crazy utf-8 characters, but I generally don't).More to the point - if layout is important, I'm more likely to mail someone a pdf - but I usually don't because I usually expect people to read mail in their mail reader. And that means respecting however they prefer to read mail (eg: background/foreground colour, font, quote-styling etc).
Then again, that used to be the way of the web too -- and now all browsers have basically given up on user stylesheets (and we all know we need to "reset" the CSS for a baseline for our "fancy" web page layouts...).
All that said, I'm not horribly against simple html in mail: No css, em/strong, h1..6, in-line images (with images bundled with the mail for privacy and off-line reasons) -- basically "rich text". But with a text/plain part!
(The blog post mentions my patch, but it was actually Github user patjak who got IAT! working with non-textareas, all I did was remove a bit of patjak's code to make the HTML passthrough unmodified to the editor.)
Thanks for pointing it out! (I do have some bad memories with things like these trying to keep up with a non-published, no-promisies-against-change, defacto-api like g+ edit-fields though...)
It would be possible to eliminate the back-and-forth jumping, just doing everything in Emacs, using the recently-announced Gmail API[1]. To the author, is this something you've considered doing? I'd use something like that.
So yes, it is something I've considered, but I wouldn't hold my breath if I were you.
Me too. Sounds like a great side project for somebody.
I'm still really interested in a full mail client that supports all of gmail's features (labels, archiving, etc), and works well with Emacs.
I've been working with the maildirroot branch [0] which mimics the IMAP installation of GMail, so you can use a standard OfflineIMAP to sync between your computer and GMail, and still use all the power of tagging/archiving/searching on your computer.
Oh and it has a few niceties, the most important one to me being native support of gpg.
Disclaimer: I'm one of the maintainers.
But you can achieve a local setup which rivals with Gmail by combining mutt and/or notmuch/mu and isync (mbsync). And it's quite possible to keep it sync'ed with Gmail, although there might be some rough edges.
Personally, I don't thing tags are that useful if you have a fast and expressive local search engine like notmuch or mu (xapian-based), but YMMV.
https://github.com/agpchil/mu4e-maildirs-extension
It didn't work quite like I wished right "out of the box", but it wasn't too hard to hack it to behave more according to my wishes. Three cheers for open source software!
It's a tiny C utility written by the mutt creator, Theodore Tso and others, so it's very good as expected.
Anyway. It's a great piece of invisible, blue-collar software.
Notmuch, on the other hand, lacks contact search. This is a bit silly, given that both are frontends to xapian.
The main difference is in data models: mu uses Maildirs for message filing, while notmuch uses the Xapian db for message tagging. mu uses a traditional file-into-folders paradigm, where the folders are on-disk Maildir folders. You file messages by moving them. notmuch on the other hand uses a Gmail-style message-tags paradigm, where tags are stored in the Xapian db and the original files are treated as immutable. Messages on disk are never touched/moved; all changes to message state (even "deleting") are just tags in the db.
IMO that makes notmuch more flexible: a tag can be anything, with user-defined tags and "built-in" tags like sender and subject being treated similarly. mu on the other hand treats the Maildir files as the canonical db, so its index includes only data from there: the message headers and content, the folder, etc. (no user-defined tags). An advantage of that is that it makes mu more interoperable, since other clients can read the Maildir structure without having to know about mu. It also makes mu feel a bit "safer" to me, since the Xapian db is purely a search index that can be regenerated at any time from the Maildir files with no data loss. On the other hand, notmuch's choice to never modify/delete/touch your original mail files is safer in a different way.
Other differences:
- mu is mainly developed by one developer (HN user djcb), while notmuch is more of a group effort. Some pros and cons to each there.
- mu has a very nice proper manual. notmuch's documentation isn't bad, but it's not a nice proper manual.
- mu collects a contact db by default. I believe there's also a solution for notmuch to do that though.
- notmuch has a procmail-replacement story, https://github.com/teythoon/afew, whereas many mu users still use procmail for initial message handling
- I like mu4e, the emacs mail client that's developed together with mu. I haven't tried integrating either mu or notmuch with mutt or another client, though, so I don't know how they compare on that.