Re: [PATCH] emacs: functions to import sender or recipient into BBDB
authorTomi Ollila <tomi.ollila@iki.fi>
Sat, 20 Oct 2012 09:14:20 +0000 (12:14 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:49:53 +0000 (09:49 -0800)
90/ee918c7628022035f1fcd81ab4609e9f4a4cb2 [new file with mode: 0644]

diff --git a/90/ee918c7628022035f1fcd81ab4609e9f4a4cb2 b/90/ee918c7628022035f1fcd81ab4609e9f4a4cb2
new file mode 100644 (file)
index 0000000..8677cb5
--- /dev/null
@@ -0,0 +1,98 @@
+Return-Path: <tomi.ollila@iki.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 90104431FB6\r
+       for <notmuch@notmuchmail.org>; Sat, 20 Oct 2012 02:14:20 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id WZdtoh3gFw3L for <notmuch@notmuchmail.org>;\r
+       Sat, 20 Oct 2012 02:14:19 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+       by olra.theworths.org (Postfix) with ESMTP id 8DCB6431FAE\r
+       for <notmuch@notmuchmail.org>; Sat, 20 Oct 2012 02:14:19 -0700 (PDT)\r
+Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
+       by guru.guru-group.fi (Postfix) with ESMTP id 243A81000E5;\r
+       Sat, 20 Oct 2012 12:14:21 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: Daniel Bergey <bergey@alum.mit.edu>,\r
+       Notmuch Mail List <notmuch@notmuchmail.org>\r
+Subject: Re: [PATCH] emacs: functions to import sender or recipient into BBDB\r
+In-Reply-To: <87ipa66pne.fsf@betacantrips.com>\r
+References: <87lii62sk2.fsf@wonderlust.lan> <87ipa66pne.fsf@betacantrips.com>\r
+User-Agent: Notmuch/0.14+51~g62cd13b (http://notmuchmail.org) Emacs/24.2.1\r
+       (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+       $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+       !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Sat, 20 Oct 2012 12:14:20 +0300\r
+Message-ID: <m2bofxa4k3.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 20 Oct 2012 09:14:20 -0000\r
+\r
+On Sat, Oct 20 2012, Ethan Glasser-Camp wrote:\r
+\r
+> Daniel Bergey <bergey@alum.mit.edu> writes:\r
+>\r
+>> From a show buffer, bbdb/notmuch-snarf-from imports the sender into\r
+>> bbdb.  bbdb/notmuch-snarf-to attempts to import all recipients.  BBDB\r
+>> displays a buffer with each contact; C-g displays the next contact, or\r
+>> returns to the notmuch-show buffer.\r
+>>\r
+>> This is my first notmuch patch.  Comments very welcome.\r
+>\r
+> Hi!\r
+>\r
+>>  emacs/notmuch-show.el |   28 ++++++++++++++++++++++++++++\r
+>\r
+> I don't think this belongs in notmuch-show. My first inclination is that\r
+> this should go into a new file contrib/notmuch-bbdb.el (assuming there's\r
+> no other notmuch-bbdb integration stuff floating around).\r
+>\r
+>>  1 file changed, 28 insertions(+)\r
+>>\r
+>> diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
+>> index 6335d45..3bc1da0 100644\r
+>> --- a/emacs/notmuch-show.el\r
+>> +++ b/emacs/notmuch-show.el\r
+>> @@ -1895,6 +1895,34 @@ the user (see `notmuch-show-stash-mlarchive-link-alist')."\r
+>>                      (button-get button :notmuch-filename)\r
+>>                      (button-get button :notmuch-content-type)))))))\r
+>>\r
+>> +;; bbdb interaction functions, awaiting user keybindings\r
+>> +\r
+>> +(defun bbdb/snarf-between-commas ()\r
+>> +  ; What about names written "Surname, First M" <user@server.tld>?\r
+>\r
+> Most comments in emacslisp start with two semicolons.\r
+\r
+3 quick comments.\r
+\r
+I was thinking notmuch-bbdb.el but contrib/notmuch-bbdb.el could be\r
+good start.\r
+\r
+then functions like notmuch-bbdb/snarf-between-commas etc...\r
+\r
+and yes, ;; comments -- that also keeps indent-region happy.\r
+\r
+Tomi\r
+\r