From: Tomi Ollila Date: Sat, 20 Oct 2012 19:35:28 +0000 (+0300) Subject: Re: [PATCH] emacs: functions to import sender or recipient into BBDB X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=1d6a7d83df44f1b4c49a30a680f8d8412616290c;p=notmuch-archives.git Re: [PATCH] emacs: functions to import sender or recipient into BBDB --- diff --git a/cc/79976339d9978f9aa90793b53caf47f4c6d299 b/cc/79976339d9978f9aa90793b53caf47f4c6d299 new file mode 100644 index 000000000..a58b61592 --- /dev/null +++ b/cc/79976339d9978f9aa90793b53caf47f4c6d299 @@ -0,0 +1,104 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +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