On Sat, Oct 20 2012, Jameson Graef Rollins <jrollins at finestructure.net> wrote:
> On Sat, Oct 20 2012, Tomi Ollila <tomi.ollila at 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 at notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch