Re: [PATCH] emacs: functions to import sender or recipient into BBDB

Subject: Re: [PATCH] emacs: functions to import sender or recipient into BBDB

Date: Sat, 20 Oct 2012 22:35:28 +0300

To: Jameson Graef Rollins, Daniel Bergey, Notmuch Mail List

Cc:

From: Tomi Ollila


On Sat, Oct 20 2012, Jameson Graef Rollins <jrollins@finestructure.net> wrote:

> On Sat, Oct 20 2012, Tomi Ollila <tomi.ollila@iki.fi> wrote:
>> I was thinking notmuch-bbdb.el but contrib/notmuch-bbdb.el could be
>> good start.
>
> I find this functionality to be really useful.  I don't know if we have
> a method of distributing/packaging stuff in contrib, and since I would
> prefer to see this actually integrated, lets just put it in
> emacs/notmuch-bbdb.el.

Fine by me. I suggest:

file emacs/notmuch-bbdb.el

functions

 notmuch-bbdb/snarf-between-commas
 notmuch-bbdb/snarf-header

 notmuch-bbdb/snarf-from
 notmuch-bbdb/snarf-to

(or if the format in origina patch is in line what has been done elsewhere, then:)

 bbdb/notmuch-snarf-header

 bbdb/notmuch-snarf-from
 bbdb/notmuch-snarf-to

(and, with Ethan's comments addressed)

And then, to notmuch.el or notmuch-show.el:

(autoload 'notmuch-bbdb/snarf-from "notmuch-bbdb" 
          "Import the sender of the current message into BBDB" t)
(autoload 'notmuch-bbdb/snarf-to "notmuch-bbdb" 
          "Import all recipients of the current message into BBDB" t)






>
> jamie.
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch

Thread: