From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 46C46431FB6 for ; Sat, 20 Oct 2012 12:35:29 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Y1jhdRfEhlHr for ; Sat, 20 Oct 2012 12:35:27 -0700 (PDT) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by olra.theworths.org (Postfix) with ESMTP id A4C31431FAE for ; Sat, 20 Oct 2012 12:35:27 -0700 (PDT) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 3E2101000E5; Sat, 20 Oct 2012 22:35:29 +0300 (EEST) From: Tomi Ollila To: Jameson Graef Rollins , Daniel Bergey , Notmuch Mail List Subject: Re: [PATCH] emacs: functions to import sender or recipient into BBDB In-Reply-To: <876265kno7.fsf@servo.finestructure.net> References: <87lii62sk2.fsf@wonderlust.lan> <87ipa66pne.fsf@betacantrips.com> <876265kno7.fsf@servo.finestructure.net> User-Agent: Notmuch/0.14+51~g62cd13b (http://notmuchmail.org) Emacs/24.2.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Oct 2012 19:35:29 -0000 On Sat, Oct 20 2012, Jameson Graef Rollins wrote: > On Sat, Oct 20 2012, Tomi Ollila 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