From: Daniel Bergey <bergey@alum.mit.edu>
To: Jameson Graef Rollins <jrollins@finestructure.net>,
notmuch@notmuchmail.org
Subject: Re: notmuch-emacs and bbdb
Date: Thu, 12 Jul 2012 09:47:34 -0400 [thread overview]
Message-ID: <87txxdytu1.fsf@wonderlust.lan> (raw)
In-Reply-To: <87mx35pji9.fsf@servo.finestructure.net>
[-- Attachment #1: Type: text/plain, Size: 732 bytes --]
I hacked together the attached elisp yesterday. It provides bindings to
put sender or recipients into bbdb. (Recipients part needs more
testing.) It also colors the from line green if the sender is in bbdb,
or orange otherwise. When it's been through a bit more testing, I'll
submit at least the first part as a patch.
I prefer not to autocapture everything into bbdb, and for the same
reason, I don't want to use notmuch itself as my contacts DB. Mostly,
this is because I read lots of email on lists, sent by people I'm
unlikely to write back to. I don't like every John I've heard from
coming up on autocomplete. Other reasons include sync to phone and
adding contact information from channels other than email.
bergey
[-- Attachment #2: bbdb-notmuch.el --]
[-- Type: application/emacs-lisp, Size: 2764 bytes --]
[-- Attachment #3: Type: text/plain, Size: 1779 bytes --]
Jameson Graef Rollins <jrollins@finestructure.net> writes:
> On Tue, Jul 10 2012, Daniel Bergey <bergey@alum.mit.edu> wrote:
>> As far as I can tell, notmuch doesn't integrate as smoothly with bbdb as older
>> emacs mailclients. I'm especially looking for a snarf function that
>> distinguishes sender from recipient.
>>
>> How do other people use bbdb with notmuch?
>>
>> Does anyone have lisp code like that which ships with bbdb for other
>> clients?
>>
>> If I were to find time to write such code, what would you like it to do?
>
> Hey, Bergey. This is something that I think needs improvement as well.
> I've been just manually constructing the bbdb entries myself.
>
> But what I've really been meaning to get going is address
> auto-completion from the database, which I'm pretty sure could obviate
> my need for bbdb altogether:
>
> http://notmuchmail.org/emacstips/#index13h2
>
> Getting it working seems more difficult than it should be, though, and
> the existing solutions seem a bit slower than they need to be [0]. So I
> think there's also room for improvement here.
>
> For instance, I think it would be rad if notmuch provided this
> functionality natively, in the CLI, or even in the library [1]. I think
> it's definitely doable, and it would be a nice little project.
>
> The emacs integration could be a bit smoother as well. A single config
> option should either turn the functionality on or off. That would be
> very convenient [2].
>
> jamie.
>
> [0] id:"87r4xur3rv.fsf@plc.plecavalier.com"
> [1] For what it's worth, I would prefer a solution that didn't involve
> any caching of addresses outside of the database.
> [2] I also find it changes the behavior of the ido tab completion
> interface that I'm used to using in message mode.
next prev parent reply other threads:[~2012-07-12 13:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-10 19:48 notmuch-emacs and bbdb Daniel Bergey
2012-07-12 6:43 ` Jameson Graef Rollins
2012-07-12 13:47 ` Daniel Bergey [this message]
2012-07-12 16:11 ` Jameson Graef Rollins
2012-07-22 0:00 ` Daniel Reusche
2012-07-22 0:24 ` Daniel Bergey
2012-07-24 15:23 ` Daniel Reusche
2014-05-23 23:25 ` Wael Nasreddine
2014-05-26 15:29 ` Daniel Bergey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87txxdytu1.fsf@wonderlust.lan \
--to=bergey@alum.mit.edu \
--cc=jrollins@finestructure.net \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).