The emacs 30 Day Challenge: Using 'gnus' to read mail
mostlymaths.net
mostlymaths.net
My next project that I will likely never finish (but perhaps start!) is a Spotlight importer for Maildirs, as my baroque mail reading setup involves syncing all my various mail accounts via offlineimap to my local machine, where I run an IMAP server. It'd sure be nice to get the benefit of Spotlight indexing without having to have Apple's wretched mail client running all the time.
(eval-after-load
"message"
'(define-key message-mode-map [(tab)] 'eudc-expand-inline))
(eval-after-load
"sendmail"
'(define-key mail-mode-map [(tab)] 'eudc-expand-inline))
(require 'eudcb-mab nil t)
(setq eudc-server "localhost"
eudc-protocol 'mab)
(eudc-protocol-set 'eudc-inline-query-format
'((name)
(email))
'mab)
(eudc-protocol-set 'eudc-inline-expansion-format
'("%s <%s>" name email)
'mab)
EDIT: Oh yeah, you need the 'contacts' utility somewhere.I recently did some research on integrating Address Book.app with Emacs, and decided to use external-abook.el rather than the eudc-* stuff. It works great, so far. Did you know about it when you chose eudc-mab, and is there any particular reason you chose the latter instead?
At the moment I'm using external-abook.el along with bbdb, mostly because of bbdb's snarfing. I have to use C-c TAB to expand addresses with external-abook.el, which is a bit of a pain, because my muscle memory is wired to use plain old tab ala bbdb. I should figure out what I need to do to swap the expand keys.
edit: the latest version of external-abook.el that I can find is here:
http://www.emacswiki.org/emacs/external-abook.el
There's a git repo on Github somewhere, too, but the version on Emacswiki has some fixes that the Github one doesn't. Many developers of small, but useful, Emacs extensions have an unfortunate tendency to maintain their code on Emacswiki, rather than in a proper VCS. Oh well.
*edit2: typo fix in edit.
On the other hand, I use Gmail to archive some mailing lists (precisely because the search is so good -- almost always better than whatever archiving system the list maintainers are using), and my god is it slow! Slow to switch folders, slow to search.... So in that regard, I don't understand how people use Gmail as their primary MUA.
On occasion I hear a story about how someone complains that Gmail is slow, often in a public place like Twitter, and then some magical Gmail fairy moves their records to a less-contended shard/tablet/whatever, which improves things. Maybe I'm just unlucky.
Edited: Holy sh*t! Installed the latest GIT gnus... Blazingly fast!! I'll write about it this week, this is something that needs to be installed... I just can say WOW.
Too, there's no google in my life, and every other webmail interface I've seen is utter, utter pants.
The mailutils home page states "the utilities provided by Mailutils include imap4d and pop3d mail servers, mail reporting utility comsatd, general-purpose mail delivery agent maidag, mail filtering program sieve, and an implementation of MH message handling system."
I've always wanted to try this, but never found the time.
$ sudo port install valgrind gmime talloc xapian-core glib2It would monitor what you read and assign different weights to articles based on your habits: author of a post gets +10 points, keywords in a subject +2 points each, etc...
Then it reordered the newsgroup articles based on these weights.
After a week or so, you realize that when you enter a newsgroup, you will typically read the first 5-10 discussions that Gnus has put at the top of the list and just ignore the rest.
It was magical and I don't think any other newsreader has ever come close to that.
And yes, this sounds trollish but I honestly am interested in what applications promise new, interesting advances to computer interfaces. You can do do anything in EMACS, FORTH or MASM but the question is how easily and naturally.
In all of this the same basic keybindings work the same way. This reduces the context switching overhead as move from one task to another. Yeah it looks primitive, being text mode and all, but it's soooo productive.
Agreed with your "high productivity" statement. Being able to just write, kill and yank without even thinking what my fingers are doing feels so much better than context-switching to Cmd-C, Cmd-V, oh no this is in X11 Ctrl-C Ctrl-v....
Also, the unified UI of the emacs operating system[1] is hard to beat. Everything Is Text, so any portion of an interface can be copy-pasted and manipulated as text, sent through other commands, etc. (Again, using vi + screen and combinations of terminal commands can also achieve something like this.)
Lastly, the interface is not really 30 years old. I would never use the first edition of GNU EMACS -- it barely has any of the features I've become so dependent on. Would you use the first mouse-based Xerox UI? It's essentially the same as the mouse-based interfaces we have now...
[1] To me it feels like I'm running two operating systems at once: emacs, and Anything Else. But I hear some people just use it to edit text.
Gnus is a little overrated in my opinion.
http://homonculus.net/posts/nerdism/2009-10-08-attention_jap...
The notmuch application sounds very useful. Searching my mail has been the other big pain point which often leads me to resort to another client.
I have about 200 mail folders, and the dev version of gnus now starts up in about 5 seconds, whereas the version included in Emacs 23.2 took about 1 minute during IMAP session bring-up. Refreshing the group view is now quite fast for me, too.
I believe that nnir has been rewritten from scratch. Doing a 'G G' search against my dovecot server on a folder with several hundred messages takes only a couple of seconds. The new nnir also has support for various kinds of search filters, including a mode where you can type a raw IMAP search string, if the included filters aren't sophisticated enough for your queries. Unfortunately, it's not well-documented yet, so you have to search the mailing list or read the .el file to discover what it can do, at the moment.
Anyway, try the development version of gnus, and see if addresses any of your complaints.