From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Davour Subject: getting gnus contcats into org-contacts Date: Thu, 7 Nov 2013 07:22:43 -0800 (PST) Message-ID: <1383837763.52432.YahooMailNeo@web161304.mail.bf1.yahoo.com> Reply-To: Andreas Davour Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="-1488538659-385833779-1383837763=:52432" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VeRQ4-000301-Mg for emacs-orgmode@gnu.org; Thu, 07 Nov 2013 10:23:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VeRPx-00070X-5o for emacs-orgmode@gnu.org; Thu, 07 Nov 2013 10:22:52 -0500 Received: from nm38-vm1.bullet.mail.bf1.yahoo.com ([72.30.239.17]:36538) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VeRPw-00070M-Qs for emacs-orgmode@gnu.org; Thu, 07 Nov 2013 10:22:45 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode ---1488538659-385833779-1383837763=:52432 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable =0A=0AHi=0A=0AI've just started using gnus again, and since it seems like b= bdb is in a messy state someone suggested I try org-contacts as an address = book solution. It looks quite usable, but I have a few questions.=0A=0A1. W= hat is the function (org-contacts-gnus-insinuate) really used for? It sets = up some hooks and a keybinding is what I've read. But, what the use of thos= e hooks? Also, I have not found that keybinding to be active in any of my g= nus buffers. Am I missing something? I guess it leads into my next question= .=0A=0A=0A2. Can I get the email addresses of my contacts into org-contacts= automatically somehow? I have read about org-capture and written this snip= pet:=0A=0A(require 'org-contacts)=0A(setq org-contacts-files '("~/.org-cont= acts.org"))=0A(require 'org-capture)=0A(add-to-list 'org-capture-templates= =0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 '("c" "Contacts" entry (file "~/.or= g-contacts.org")=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 "* %(org-cont= acts-template-name)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 :PROPERTIES:=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0 =0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 := EMAIL: %(org-contacts-template-email)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 =0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 :END:"))=0A=0AUsing that I can now run M-x org-capture (bound to som= e suitable key) and populate my contacts list. After that I can hit TAB and= get my addresses in the To: fields and so on. Excellent!=0A=0A=0ABut, is t= here a way to get that done automatically? That process is totally predicta= ble. Way back when I used gnus/bbdb it picked up addresses by itself. =0A= =0A=0AI guess I'm crossing into org-capture territory here, but felt this w= as anyway a suitable place to ask. I'm not very good at elisp so I have no = idea how to do this myself, but thought that someone ought to have done thi= s before. Oddly, google could find nothing.=0A=0A=0AThanks for any suggesti= ons.=0A=0A=0A/andreas=0A=0A--=0A"My son has spoken the truth, and he has sa= crificed more than either the president of the United States or Peter King = have ever in their political careers or their American lives. So how they c= hoose to characterize him really doesn't carry that much weight with me." -= - Edward Snowden's Father=0A ---1488538659-385833779-1383837763=:52432 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable

Hi

I've just started using gnus again, and since it = seems like bbdb is in a messy state someone suggested I try org-contacts as= an address book solution. It looks quite usable, but I have a few question= s.

1. What is the function (org-contacts-gnus-insinuat= e) really used for? It sets up some hooks and a keybinding is what I've rea= d. But, what the use of those hooks? Also, I have not found that keybinding= to be active in any of my gnus buffers. Am I missing something? I guess it= leads into my next question.

2. Can I get the email addresses of my contacts into org-contacts auto= matically somehow? I have read about org-capture and written this snippet:<= /div>

<= div style=3D"color: rgb(0, 0, 0); font-size: 13px; font-family: monospace; = background-color: transparent; font-style: normal;">(require 'org-contacts)=
(setq org-contacts-files '("~/.org-contacts.org"))
(require 'org-cap= ture)
(add-to-list 'org-capture-templates
    &nb= sp;        '("c" "Contacts" entry (file = "~/.org-contacts.org")
        &= nbsp;      "* %(org-contacts-template-name) &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  
           &nbs= p;      :PROPERTIES:     =             &nb= sp;            =             &nb= sp;            =             &nb= sp;   
        &= nbsp;         :EMAIL: %(org-contact= s-template-email)         &nbs= p;            &= nbsp;           &nbs= p;          
           &nbs= p;      :END:"))

Using that I can now run M-x org-capture (bound to some suitab= le key) and populate my contacts list. After that I can hit TAB and get my = addresses in the To: fields and so on. Excellent!

But, is there a way to get that done automatically= ? That process is totally predictable. Way back when I used gnus/bbdb it picked up addresses by itself.

I guess I'm crossing into org-capture territory here, but felt this= was anyway a suitable place to ask. I'm not very good at elisp so I have n= o idea how to do this myself, but thought that someone ought to have done t= his before. Oddly, google could find nothing.

Thanks for any suggestions.

/andreas
--
"My son has spoken the = truth, and he has sacrificed more than either the president of the United S= tates or Peter King have ever in their political careers or their American = lives. So how they choose to characterize him really doesn't carry that muc= h weight with me." -- Edward Snowden's Father
---1488538659-385833779-1383837763=:52432--