notmuch-emacs and bbdb
On 2014-05-23 at 23:25, Wael Nasreddine wrote: > On 22.07.2012 02:24, Daniel Bergey wrote: >>Glad to hear I have another user! >> >>My function bbdb/notmuch-snarf-to doesn't work yet on more than one >>recipient. Once I get that working, I'd like to do what you suggest, >>and have some hook call bbdb/notmuch-snarf-to every time I send an >>email. >> >>Probably not before late August, though. > > Hi David, > > Did you get a change to finish the notmuch/bbdb integration that you > were working on? Unfortunately, I haven't made any progress on the notmuch/bbdb integration. In fact, since notmuch has been moving along a fair bit, my code has stopped working. I still think it would be great if someone added this feature. Daniel
Re: notmuch-emacs and bbdb
On 2014-05-23 at 23:25, Wael Nasreddine wael.nasredd...@gmail.com wrote: On 22.07.2012 02:24, Daniel Bergey wrote: Glad to hear I have another user! My function bbdb/notmuch-snarf-to doesn't work yet on more than one recipient. Once I get that working, I'd like to do what you suggest, and have some hook call bbdb/notmuch-snarf-to every time I send an email. Probably not before late August, though. Hi David, Did you get a change to finish the notmuch/bbdb integration that you were working on? Unfortunately, I haven't made any progress on the notmuch/bbdb integration. In fact, since notmuch has been moving along a fair bit, my code has stopped working. I still think it would be great if someone added this feature. Daniel ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch
[PATCH] emacs: functions to import sender or recipient into BBDB
>From fbaf5c568876a6f1e3d8c02446bd83331b6325f0 Mon Sep 17 00:00:00 2001 From: Daniel Bergey <ber...@alum.mit.edu> Date: Thu, 26 Jul 2012 15:44:01 -0400 Subject: [PATCH] emacs: functions to import sender or recipients into BBDB >From a show buffer, notmuch-bbdb/snarf-from imports the sender into bbdb. notmuch-bbdb/snarf-to imports all recipients. Newly imported contacts are reported in the minibuffer / Messages buffer. Both functions use the BBDB parser to recognize email address formats. --- This differs from the last version of the patch only in whitespace. In addition to changes pointed out by Tomi Ollila, I fixed a ')' on a line alone, and aligned the lines of notmuch-bbdb/header-by-name. I've been using this code (prior to whitespace changes) for a month and a half, as far as testing goes. I wonder if I can get whitespace-mode to warn me about double-spacing emacs/notmuch-address.el | 41 + 1 file changed, 41 insertions(+) diff --git a/emacs/notmuch-address.el b/emacs/notmuch-address.el index 2bf762b..32c8490 100644 --- a/emacs/notmuch-address.el +++ b/emacs/notmuch-address.el @@ -96,6 +96,47 @@ line." (when (notmuch-address-locate-command notmuch-address-command) (notmuch-address-message-insinuate)) +;; functions to add sender / recipients to BBDB + +(defun notmuch-bbdb/snarf-headers (headers) + ;; Helper function to avoid code duplication in the two below + ;; headers should have the same format as bbdb-get-addresses-headers + + ;; bbdb-get-addresses reads these + ;; Ugh, pass-by-global + (let ((addrs (bbdb-get-addresses nil nil 'notmuch-bbdb/get-header-content)) + (bbdb-get-addresses-headers headers) ; headers to read + (bbdb-gag-messages t)) ; suppress m/n processed message) +(bbdb-update-records addrs t t)) + + (defun notmuch-bbdb/snarf-from () +"Import the sender of the current message into BBDB" +(interactive) +(notmuch-bbdb/snarf-headers + (list (assoc 'authors bbdb-get-addresses-headers + +(defun notmuch-bbdb/snarf-to () + "Import all recipients of the current message into BBDB" + (interactive) + (notmuch-bbdb/snarf-headers + (list (assoc 'recipients bbdb-get-addresses-headers + +(defvar notmuch-bbdb/header-by-name + ;; both are case sensitive + '( ("From" . :From) + ("To" . :To) + ("CC" . :Cc) + ("BCC" . :Bcc) + ("Resent-From" . nil) + ("Reply-To" . nil) + ("Resent-To" . nil) + ("Resent-CC" . nil)) + "Alist for dispatching header symbols as used by notmuch-show-get-header +from strings as used by bbdb-get-addresses") + +(defun notmuch-bbdb/get-header-content (name) + (notmuch-show-get-header (cdr (assoc name notmuch-bbdb/header-by-name + ;; (provide 'notmuch-address) -- 1.7.10.4
Re: [PATCH] emacs: functions to import sender or recipient into BBDB
From fbaf5c568876a6f1e3d8c02446bd83331b6325f0 Mon Sep 17 00:00:00 2001 From: Daniel Bergey ber...@alum.mit.edu Date: Thu, 26 Jul 2012 15:44:01 -0400 Subject: [PATCH] emacs: functions to import sender or recipients into BBDB From a show buffer, notmuch-bbdb/snarf-from imports the sender into bbdb. notmuch-bbdb/snarf-to imports all recipients. Newly imported contacts are reported in the minibuffer / Messages buffer. Both functions use the BBDB parser to recognize email address formats. --- This differs from the last version of the patch only in whitespace. In addition to changes pointed out by Tomi Ollila, I fixed a ')' on a line alone, and aligned the lines of notmuch-bbdb/header-by-name. I've been using this code (prior to whitespace changes) for a month and a half, as far as testing goes. I wonder if I can get whitespace-mode to warn me about double-spacing emacs/notmuch-address.el | 41 + 1 file changed, 41 insertions(+) diff --git a/emacs/notmuch-address.el b/emacs/notmuch-address.el index 2bf762b..32c8490 100644 --- a/emacs/notmuch-address.el +++ b/emacs/notmuch-address.el @@ -96,6 +96,47 @@ line. (when (notmuch-address-locate-command notmuch-address-command) (notmuch-address-message-insinuate)) +;; functions to add sender / recipients to BBDB + +(defun notmuch-bbdb/snarf-headers (headers) + ;; Helper function to avoid code duplication in the two below + ;; headers should have the same format as bbdb-get-addresses-headers + + ;; bbdb-get-addresses reads these + ;; Ugh, pass-by-global + (let ((addrs (bbdb-get-addresses nil nil 'notmuch-bbdb/get-header-content)) + (bbdb-get-addresses-headers headers) ; headers to read + (bbdb-gag-messages t)) ; suppress m/n processed message) +(bbdb-update-records addrs t t)) + + (defun notmuch-bbdb/snarf-from () +Import the sender of the current message into BBDB +(interactive) +(notmuch-bbdb/snarf-headers + (list (assoc 'authors bbdb-get-addresses-headers + +(defun notmuch-bbdb/snarf-to () + Import all recipients of the current message into BBDB + (interactive) + (notmuch-bbdb/snarf-headers + (list (assoc 'recipients bbdb-get-addresses-headers + +(defvar notmuch-bbdb/header-by-name + ;; both are case sensitive + '( (From . :From) + (To . :To) + (CC . :Cc) + (BCC . :Bcc) + (Resent-From . nil) + (Reply-To . nil) + (Resent-To . nil) + (Resent-CC . nil)) + Alist for dispatching header symbols as used by notmuch-show-get-header +from strings as used by bbdb-get-addresses) + +(defun notmuch-bbdb/get-header-content (name) + (notmuch-show-get-header (cdr (assoc name notmuch-bbdb/header-by-name + ;; (provide 'notmuch-address) -- 1.7.10.4 ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch
[PATCH] emacs: functions to import sender or recipient into BBDB
>From a show buffer, notmuch-bbdb/snarf-from imports the sender into bbdb. notmuch-bbdb/snarf-to imports all recipients. Newly imported concacts are reported in the minibuffer / Messages buffer. Both functions use the BBDB parser to recognize email address formats. --- Following discussion upthread, I put everything in notmuch-address. I renamed the functions to put notmuch before bbdb. And I replaced the horrid comma-splitting from my first version with the functions BBDB provides for parsing email headers. It looks as though Reply-To is not exposed in the :headers plist. I assume the Resent-* headers are not, either. Therefore none of these are imported (nil entries in notmuch-bbdb/header-by-name). They would be easy to add if the plist is expanded. Thanks, and sorry it's taken me so long to get back to this patch. emacs/notmuch-address.el | 43 +++ 1 file changed, 43 insertions(+) diff --git a/emacs/notmuch-address.el b/emacs/notmuch-address.el index 2bf762b..8d5f727 100644 --- a/emacs/notmuch-address.el +++ b/emacs/notmuch-address.el @@ -98,4 +98,47 @@ line." ;; +;; functions to add sender / recipients to BBDB + +(defun notmuch-bbdb/snarf-headers (headers) + ;; Helper function to avoid code duplication in the two below + ;; headers should have the same format as bbdb-get-addresses-headers + + ;; bbdb-get-addresses reads these + ;; Ugh, pass-by-global + (let ((addrs (bbdb-get-addresses nil nil 'notmuch-bbdb/get-header-content)) +(bbdb-get-addresses-headers headers) ; headers to read +(bbdb-gag-messages t) ; suppress m/n processed message +) +(bbdb-update-records addrs t t))) + +(defun notmuch-bbdb/snarf-from () + "Import the sender of the current message into BBDB" + (interactive) + (notmuch-bbdb/snarf-headers + (list (assoc 'authors bbdb-get-addresses-headers + +(defun notmuch-bbdb/snarf-to () + "Import all recipients of the current message into BBDB" + (interactive) + (notmuch-bbdb/snarf-headers + (list (assoc 'recipients bbdb-get-addresses-headers + +(defvar notmuch-bbdb/header-by-name + ;; both are case sensitive + '( ("From" . :From) + ("To" . :To) + ("CC" . :Cc) + ("BCC" . :Bcc) + ("Resent-From" . nil) + ("Reply-To" . nil) + ("Resent-To" . nil) + ("Resent-CC" . nil)) + "Alist for dispatching header symbols as used by notmuch-show-get-header +from strings as used by bbdb-get-addresses") + +(defun notmuch-bbdb/get-header-content (name) + (notmuch-show-get-header (cdr (assoc name notmuch-bbdb/header-by-name + + (provide 'notmuch-address) -- 1.7.10.4
Re: [PATCH] emacs: functions to import sender or recipient into BBDB
From a show buffer, notmuch-bbdb/snarf-from imports the sender into bbdb. notmuch-bbdb/snarf-to imports all recipients. Newly imported concacts are reported in the minibuffer / Messages buffer. Both functions use the BBDB parser to recognize email address formats. --- Following discussion upthread, I put everything in notmuch-address. I renamed the functions to put notmuch before bbdb. And I replaced the horrid comma-splitting from my first version with the functions BBDB provides for parsing email headers. It looks as though Reply-To is not exposed in the :headers plist. I assume the Resent-* headers are not, either. Therefore none of these are imported (nil entries in notmuch-bbdb/header-by-name). They would be easy to add if the plist is expanded. Thanks, and sorry it's taken me so long to get back to this patch. emacs/notmuch-address.el | 43 +++ 1 file changed, 43 insertions(+) diff --git a/emacs/notmuch-address.el b/emacs/notmuch-address.el index 2bf762b..8d5f727 100644 --- a/emacs/notmuch-address.el +++ b/emacs/notmuch-address.el @@ -98,4 +98,47 @@ line. ;; +;; functions to add sender / recipients to BBDB + +(defun notmuch-bbdb/snarf-headers (headers) + ;; Helper function to avoid code duplication in the two below + ;; headers should have the same format as bbdb-get-addresses-headers + + ;; bbdb-get-addresses reads these + ;; Ugh, pass-by-global + (let ((addrs (bbdb-get-addresses nil nil 'notmuch-bbdb/get-header-content)) +(bbdb-get-addresses-headers headers) ; headers to read +(bbdb-gag-messages t) ; suppress m/n processed message +) +(bbdb-update-records addrs t t))) + +(defun notmuch-bbdb/snarf-from () + Import the sender of the current message into BBDB + (interactive) + (notmuch-bbdb/snarf-headers + (list (assoc 'authors bbdb-get-addresses-headers + +(defun notmuch-bbdb/snarf-to () + Import all recipients of the current message into BBDB + (interactive) + (notmuch-bbdb/snarf-headers + (list (assoc 'recipients bbdb-get-addresses-headers + +(defvar notmuch-bbdb/header-by-name + ;; both are case sensitive + '( (From . :From) + (To . :To) + (CC . :Cc) + (BCC . :Bcc) + (Resent-From . nil) + (Reply-To . nil) + (Resent-To . nil) + (Resent-CC . nil)) + Alist for dispatching header symbols as used by notmuch-show-get-header +from strings as used by bbdb-get-addresses) + +(defun notmuch-bbdb/get-header-content (name) + (notmuch-show-get-header (cdr (assoc name notmuch-bbdb/header-by-name + + (provide 'notmuch-address) -- 1.7.10.4 ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch
[PATCH] emacs: functions to import sender or recipient into BBDB
On 2012-10-19 at 18:52, Ethan Glasser-Camp wrote: > Daniel Bergey writes: > >> From a show buffer, bbdb/notmuch-snarf-from imports the sender into >> bbdb. bbdb/notmuch-snarf-to attempts to import all recipients. BBDB >> displays a buffer with each contact; C-g displays the next contact, or >> returns to the notmuch-show buffer. >> >> This is my first notmuch patch. Comments very welcome. >> >> +(defun bbdb/snarf-between-commas () >> + ; What about names written "Surname, First M" ? > > I do think more sophisticated parsing is necessary. If you're lucky, > somebody else already has a library to parse email addresses in this > form. I spent the afternoon digging around in BBDB internals. They include a function that parses the contents of a header, and handles commas intelligently. It replaces essentially all the code in my small patch, so I won't respond to your detailed comments, much as I appreciated them. I have working code using bbdb-get-addresses, but I have a few questions before I email the revised patch. 1) Is there a canonical list of header names used by notmuch? I'm trying to fill in this alist to match the BBDB interface. It should be fine to leave blank any that notmuch doesn't handle. (defvar bbdb/notmuch-header-by-name ;; both are case sensitive '( ("From" . :From) ("To" . :To) ("CC" . :Cc) ("BCC" . :Bcc) ("Resent-From" . ) ("Reply-To" . ) ("Resent-To" . ) ("Resent-CC" . )) "Alist for dispatching header symbols as used by notmuch-show-get-header from strings as used by notmuch-show-get-header") 2) What's the consensus on naming conventions? BBDB has functions for other mail clients with names like bbdb/gnus-* and bbdb/vm-*. I imitated this convention, but maybe it's better to leave the bbdb/* namespace to BBDB itself, and use a prefix like notmuch-bbdb-* or notmuch-bbdb/* (Regardless, I moved everything to notmuch-address.el, as suggested) Thanks, Daniel
Bug (?) difference 24.1 and 23.3.1
Tomi Ollila writes: > On Fri, Aug 03 2012, Svend Sorensen wrote: > >> >> I was also getting an error about gnus-inhibit-images when running emacs >> 24. Adding (require 'gnus-art) to my emacs config fixed the problem. > > Where is your emacs24 from? From Debian sid? I've been having the gnus-inhibit-images problem with emacs24 from Debian sid. (require 'guns-art) appears to have fixed it, and may also have fixed the more serious problem that the property notmuch-message-extent was not being set. Now I just have to get used to pictures in my email bergey
[PATCH] emacs: functions to import sender or recipient into BBDB
>From a show buffer, bbdb/notmuch-snarf-from imports the sender into bbdb. bbdb/notmuch-snarf-to attempts to import all recipients. BBDB displays a buffer with each contact; C-g displays the next contact, or returns to the notmuch-show buffer. Both functions assume that email contacts are seperated by commas. If a comma is included in a name, it will try to make two separate contacts. --- This is my first notmuch patch. Comments very welcome. emacs/notmuch-show.el | 28 1 file changed, 28 insertions(+) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 6335d45..3bc1da0 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1895,6 +1895,34 @@ the user (see `notmuch-show-stash-mlarchive-link-alist')." (button-get button :notmuch-filename) (button-get button :notmuch-content-type))) +;; bbdb interaction functions, awaiting user keybindings + +(defun bbdb/snarf-between-commas () + ; What about names written "Surname, First M" ? + (goto-char (point-min)) + (let ((comma (point))) +(while (search-forward "," nil "end") + (bbdb-snarf-region comma (point)) + (setq comma (point))) +(bbdb-snarf-region comma (point)) ; last entry + )) + +(defun bbdb/notmuch-snarf-header (header) + (let ((text (notmuch-show-get-header header))) +(with-temp-buffer + (insert text) + (bbdb/snarf-between-commas + +(defun bbdb/notmuch-snarf-from () + "Import the sender of the current message into BBDB" + (interactive) + (bbdb/notmuch-snarf-header :From)) + +(defun bbdb/notmuch-snarf-to () + "Import all recipients of the current message into BBDB" + (interactive) + (bbdb/notmuch-snarf-header :To)) + ;; (provide 'notmuch-show) -- 1.7.10.4
[PATCH] emacs: functions to import sender or recipient into BBDB
From a show buffer, bbdb/notmuch-snarf-from imports the sender into bbdb. bbdb/notmuch-snarf-to attempts to import all recipients. BBDB displays a buffer with each contact; C-g displays the next contact, or returns to the notmuch-show buffer. Both functions assume that email contacts are seperated by commas. If a comma is included in a name, it will try to make two separate contacts. --- This is my first notmuch patch. Comments very welcome. emacs/notmuch-show.el | 28 1 file changed, 28 insertions(+) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 6335d45..3bc1da0 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1895,6 +1895,34 @@ the user (see `notmuch-show-stash-mlarchive-link-alist'). (button-get button :notmuch-filename) (button-get button :notmuch-content-type))) +;; bbdb interaction functions, awaiting user keybindings + +(defun bbdb/snarf-between-commas () + ; What about names written Surname, First M u...@server.tld? + (goto-char (point-min)) + (let ((comma (point))) +(while (search-forward , nil end) + (bbdb-snarf-region comma (point)) + (setq comma (point))) +(bbdb-snarf-region comma (point)) ; last entry + )) + +(defun bbdb/notmuch-snarf-header (header) + (let ((text (notmuch-show-get-header header))) +(with-temp-buffer + (insert text) + (bbdb/snarf-between-commas + +(defun bbdb/notmuch-snarf-from () + Import the sender of the current message into BBDB + (interactive) + (bbdb/notmuch-snarf-header :From)) + +(defun bbdb/notmuch-snarf-to () + Import all recipients of the current message into BBDB + (interactive) + (bbdb/notmuch-snarf-header :To)) + ;; (provide 'notmuch-show) -- 1.7.10.4 ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch
Re: notmuch-emacs and bbdb
Glad to hear I have another user! My function bbdb/notmuch-snarf-to doesn't work yet on more than one recipient. Once I get that working, I'd like to do what you suggest, and have some hook call bbdb/notmuch-snarf-to every time I send an email. Probably not before late August, though. bergey Daniel Reusche dani...@physik.tu-berlin.de writes: On 12.07.2012 15:47, Daniel Bergey wrote: I hacked together the attached elisp yesterday. It provides bindings to put sender or recipients into bbdb. Awesome, thats just what I was looking for. Also on topic: I was working on a script (more a really long regex), to import all the mail addresses from the notmuch db to bbdb, but as I just started learning emacs lisp, it does not really work yet. The point you brought up there, with probably not wanting everyone in the database could be an issue though. Maybe some hook, that adds all the contacts to the bbdb that you replied to by hand? best, dan ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch
notmuch-emacs and bbdb
Glad to hear I have another user! My function bbdb/notmuch-snarf-to doesn't work yet on more than one recipient. Once I get that working, I'd like to do what you suggest, and have some hook call bbdb/notmuch-snarf-to every time I send an email. Probably not before late August, though. bergey Daniel Reusche writes: > On 12.07.2012 15:47, Daniel Bergey wrote: >> I hacked together the attached elisp yesterday. It provides bindings to >> put sender or recipients into bbdb. > > Awesome, thats just what I was looking for. > > Also on topic: I was working on a script (more a really long regex), to > import all the mail addresses from the notmuch db to bbdb, but as I just > started learning emacs lisp, it does not really work yet. > > The point you brought up there, with probably not wanting everyone in > the database could be an issue though. > Maybe some hook, that adds all the contacts to the bbdb that you replied > to by hand? > > best, > dan
notmuch-emacs and bbdb
I hacked together the attached elisp yesterday. It provides bindings to put sender or recipients into bbdb. (Recipients part needs more testing.) It also colors the from line green if the sender is in bbdb, or orange otherwise. When it's been through a bit more testing, I'll submit at least the first part as a patch. I prefer not to autocapture everything into bbdb, and for the same reason, I don't want to use notmuch itself as my contacts DB. Mostly, this is because I read lots of email on lists, sent by people I'm unlikely to write back to. I don't like every John I've heard from coming up on autocomplete. Other reasons include sync to phone and adding contact information from channels other than email. bergey -- next part -- A non-text attachment was scrubbed... Name: bbdb-notmuch.el Type: application/emacs-lisp Size: 2689 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120712/37beab9d/attachment-0001.bin> -- next part -- Jameson Graef Rollins writes: > On Tue, Jul 10 2012, Daniel Bergey wrote: >> As far as I can tell, notmuch doesn't integrate as smoothly with bbdb as >> older >> emacs mailclients. I'm especially looking for a snarf function that >> distinguishes sender from recipient. >> >> How do other people use bbdb with notmuch? >> >> Does anyone have lisp code like that which ships with bbdb for other >> clients? >> >> If I were to find time to write such code, what would you like it to do? > > Hey, Bergey. This is something that I think needs improvement as well. > I've been just manually constructing the bbdb entries myself. > > But what I've really been meaning to get going is address > auto-completion from the database, which I'm pretty sure could obviate > my need for bbdb altogether: > > http://notmuchmail.org/emacstips/#index13h2 > > Getting it working seems more difficult than it should be, though, and > the existing solutions seem a bit slower than they need to be [0]. So I > think there's also room for improvement here. > > For instance, I think it would be rad if notmuch provided this > functionality natively, in the CLI, or even in the library [1]. I think > it's definitely doable, and it would be a nice little project. > > The emacs integration could be a bit smoother as well. A single config > option should either turn the functionality on or off. That would be > very convenient [2]. > > jamie. > > [0] id:"87r4xur3rv.fsf at plc.plecavalier.com" > [1] For what it's worth, I would prefer a solution that didn't involve > any caching of addresses outside of the database. > [2] I also find it changes the behavior of the ido tab completion > interface that I'm used to using in message mode.
Re: notmuch-emacs and bbdb
I hacked together the attached elisp yesterday. It provides bindings to put sender or recipients into bbdb. (Recipients part needs more testing.) It also colors the from line green if the sender is in bbdb, or orange otherwise. When it's been through a bit more testing, I'll submit at least the first part as a patch. I prefer not to autocapture everything into bbdb, and for the same reason, I don't want to use notmuch itself as my contacts DB. Mostly, this is because I read lots of email on lists, sent by people I'm unlikely to write back to. I don't like every John I've heard from coming up on autocomplete. Other reasons include sync to phone and adding contact information from channels other than email. bergey bbdb-notmuch.el Description: application/emacs-lisp Jameson Graef Rollins jroll...@finestructure.net writes: On Tue, Jul 10 2012, Daniel Bergey ber...@alum.mit.edu wrote: As far as I can tell, notmuch doesn't integrate as smoothly with bbdb as older emacs mailclients. I'm especially looking for a snarf function that distinguishes sender from recipient. How do other people use bbdb with notmuch? Does anyone have lisp code like that which ships with bbdb for other clients? If I were to find time to write such code, what would you like it to do? Hey, Bergey. This is something that I think needs improvement as well. I've been just manually constructing the bbdb entries myself. But what I've really been meaning to get going is address auto-completion from the database, which I'm pretty sure could obviate my need for bbdb altogether: http://notmuchmail.org/emacstips/#index13h2 Getting it working seems more difficult than it should be, though, and the existing solutions seem a bit slower than they need to be [0]. So I think there's also room for improvement here. For instance, I think it would be rad if notmuch provided this functionality natively, in the CLI, or even in the library [1]. I think it's definitely doable, and it would be a nice little project. The emacs integration could be a bit smoother as well. A single config option should either turn the functionality on or off. That would be very convenient [2]. jamie. [0] id:87r4xur3rv@plc.plecavalier.com [1] For what it's worth, I would prefer a solution that didn't involve any caching of addresses outside of the database. [2] I also find it changes the behavior of the ido tab completion interface that I'm used to using in message mode. ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch
notmuch-emacs and bbdb
As far as I can tell, notmuch doesn't integrate as smoothly with bbdb as older emacs mailclients. I'm especially looking for a snarf function that distinguishes sender from recipient. How do other people use bbdb with notmuch? Does anyone have lisp code like that which ships with bbdb for other clients? If I were to find time to write such code, what would you like it to do? cheers, bergey
notmuch-emacs and bbdb
As far as I can tell, notmuch doesn't integrate as smoothly with bbdb as older emacs mailclients. I'm especially looking for a snarf function that distinguishes sender from recipient. How do other people use bbdb with notmuch? Does anyone have lisp code like that which ships with bbdb for other clients? If I were to find time to write such code, what would you like it to do? cheers, bergey ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch