From 2446aa6a6e98ca30137042273e9ad4b714fc904a Mon Sep 17 00:00:00 2001 From: David Belohrad Date: Thu, 12 Apr 2012 10:18:10 +0200 Subject: [PATCH] using bbdb with autocompletion --- b5/3a3c493f914e2978d0dd0c2b3c937f6de94af7 | 101 ++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 b5/3a3c493f914e2978d0dd0c2b3c937f6de94af7 diff --git a/b5/3a3c493f914e2978d0dd0c2b3c937f6de94af7 b/b5/3a3c493f914e2978d0dd0c2b3c937f6de94af7 new file mode 100644 index 000000000..a51e76c4b --- /dev/null +++ b/b5/3a3c493f914e2978d0dd0c2b3c937f6de94af7 @@ -0,0 +1,101 @@ +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 2B5A8431FAF + for ; Thu, 12 Apr 2012 01:19:30 -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 9uGb1Kiafpxa for ; + Thu, 12 Apr 2012 01:19:29 -0700 (PDT) +Received: from server.belohrad.ch (static-212-101-19-163.adsl.solnet.ch + [212.101.19.163]) + by olra.theworths.org (Postfix) with ESMTP id 309DC431FAE + for ; Thu, 12 Apr 2012 01:19:29 -0700 (PDT) +Received: from beesknees.cern.ch.belohrad.ch (beesknees.cern.ch + [137.138.197.99]) + (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) + (No client certificate requested) + by server.belohrad.ch (Postfix) with ESMTPSA id BE8E126334; + Thu, 12 Apr 2012 10:22:30 +0200 (CEST) +From: David Belohrad +To: notmuch@notmuchmail.org +Subject: using bbdb with autocompletion +Organization: David Belohrad +X-Operating-System: Debian Stable +X-Homepage: http://belohrad.ch +Date: Thu, 12 Apr 2012 10:18:10 +0200 +Message-ID: <87ehrt9xdp.fsf@beesknees.cern.ch> +User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +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: Thu, 12 Apr 2012 08:19:30 -0000 + + +Dear All, +before I was using gnus to read my emails. This was setup together with +bbdb such, that every email address I got an email delivered got stored +into the bbdb database. + +The config was following: + +--------------------------- +;; IF USING GNUS TO FETCH MAIL: +(if (locate-library "bbdb") + ;; bbdb to automatically create email address list + (progn + (require 'bbdb) + (bbdb-initialize) + (add-hook 'gnus-startup-hook 'bbdb-insinuate-gnus) + (add-hook 'gnus-startup-hook 'bbdb-insinuate-message) + (add-hook 'message-setup-hook 'bbdb-define-all-aliases) + + (setq bbdb/news-auto-create-p t) + (setq bbdb-complete-name-allow-cycling t) + (setq bbdb-complete-mail-allow-cycling t) + (setq bbdb-complete-name-full-completion t) + (setq bbdb-completion-type 'primary-or-name) + (setq bbdb-use-pop-up nil) + ;; set BBDB to AFS so we have the access from all computers to the same bbdb database! + (setq bbdb-file "/afs/cern.ch/user/b/belohrad/private/bbdb") + (setq bbdb-offer-save 1) + (setq bbdb-electric-p t) + (message "bbdb initialized") + ) + (message "bbdb is missing: address lookup will not work")) +-------------------------- + + +The problem I have with this now is, that when using notmuch to read +emails, the email addresses do not automatically add to bbdb. So when I +write an email, I can only choose 'To:' email address, which is already +in the bbdb from the times I was using gnus. But all new addresses are +not added. + + +How can I setup notmuch properly so with each email arrived it checks +against email address and stores it in the bbdb as in case of gnus? + +thanks for any help. + + +-- +.david. -- 2.26.2