From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Colin Baxter Newsgroups: gmane.emacs.help Subject: Re: bbdbv3 with rmail Date: Thu, 06 Dec 2018 08:16:48 +0000 Message-ID: <87tvjr2hov.fsf@yandex.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1544084132 5915 195.159.176.226 (6 Dec 2018 08:15:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 6 Dec 2018 08:15:32 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: , help-gnu-emacs@gnu.org To: Xavier Maillard Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 06 09:15:27 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gUooh-0001Pd-3f for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Dec 2018 09:15:27 +0100 Original-Received: from localhost ([::1]:39536 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUoqm-0006uJ-F1 for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Dec 2018 03:17:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUoqB-0006tu-OL for help-gnu-emacs@gnu.org; Thu, 06 Dec 2018 03:17:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gUoq7-00036d-2L for help-gnu-emacs@gnu.org; Thu, 06 Dec 2018 03:16:59 -0500 Original-Received: from forward104o.mail.yandex.net ([37.140.190.179]:55645) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gUoq6-00033P-Ds for help-gnu-emacs@gnu.org; Thu, 06 Dec 2018 03:16:54 -0500 Original-Received: from mxback16g.mail.yandex.net (mxback16g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:316]) by forward104o.mail.yandex.net (Yandex) with ESMTP id D47B8940E61; Thu, 6 Dec 2018 11:16:50 +0300 (MSK) Original-Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback16g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id nmw2Q9eHQv-GoKKAPE0; Thu, 06 Dec 2018 11:16:50 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1544084210; bh=XkZH0zLnxDMlw/pcnU6862DaILceQmcHwQxq5qGAPCw=; h=From:To:Cc:Cc:Subject:References:Date:In-Reply-To:Message-ID; b=HqC2RIbADkYBODFIFnbCQRDIw0lV1Rkr6St+lhAFkbJ4ouX13pTWiza+OYdYp9Yc0 rjt9wsEwNp/MSBpJ+WYP22VWs0C49C21xLmm/ASB7aNGDc8BACiUHfJOhWHWs0UJQY rHciZ9+kzHWsK6OPQX6eEDLTlKRHAW4cNsLCDx+Y= Original-Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 6gEFpFFylH-GnBaSvvt; Thu, 06 Dec 2018 11:16:49 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1544084209; bh=XkZH0zLnxDMlw/pcnU6862DaILceQmcHwQxq5qGAPCw=; h=From:To:Cc:Cc:Subject:References:Date:In-Reply-To:Message-ID; b=NAkL/NHuCcLOhyQsXeT60u/wliJ86ZhJUzxJI9cYF1pBS3eMnAZebc4eUb/5i520T Sm6JMF8uBwCZXkNOtE6lOEN92vwb3Dpsht6Y8a5hGLvnXGL6YrYrg0p0J2nRmpAu38 w6vmiTa78so9YYr+IinUrzp2dYJXWr1C5igxkWSE= Authentication-Results: smtp2o.mail.yandex.net; dkim=pass header.i=@yandex.com X-Face: -P+89ASh_wrs;AUGm`!l[}/o-lyK}5W.gq\fkJ{#d6Gu,hWrZNz::iMm5PJb} __A96]-LUrl)X=uF=V|\3-\9/sXvBs/H In-Reply-To: (Xavier Maillard's message of "Thu, 06 Dec 2018 07:00:15 +0100") Face: iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAIAAAC0tAIdAAAABmJLR0QA/wD/AP+gvaeTAAAA iUlEQVQokZXSwQ2EMAxE0VFkyY3SAFRAKblBAVDf30PYXZI4SES+5Y1kjSwkzNh3Ht62YYYKfQ58 KWbiOHBHIiVybmnOpISEO+cpYBioKaDrow909KabwDT1tNb3QJmadhqY579eluaz1r9dy3QtKaDu rGvYkgJado1q1aisMKAhjQJv7+TNDX4AoCLhoeOQ2P0AAAAASUVORK5CYII= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 37.140.190.179 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118884 Archived-At: Dear Xavier, >>>>> Xavier Maillard writes: > Hello, I am looking for a way to manage my contacts (basically, it > consists of email addresses, a few phone numbers and eventually > some notes) efficently. Eventually, it would integrate (very) well > with rmail (alias expansion, adding timestamps as a note, etc.) > BBDB seems a good candidate but dunno if v3 is ok (there is really > poor litterature with it) > Thank you for your help -- Xavier Maillard e/j:xavier@maillard.im > w:www.maillard.im m: 06 52 18 63 43 (old) m: 06 49 60 48 56 (NEW) > GPG: 9983 DCA1 1FAC 8DA7 653A F9AA BA49 09B7 8F04 DE1B I use bbdb v3.2 with RMAIL and with gnus. I find it's excellent. I have bbdb settings in both my ~/.emacs and ~/.gnus.el, which I've given below. They work for me, but, of course, use at your own risk. ;;; My ~/.emacs settings ;;;;;;;; (require 'bbdb-loaddefs "~/path/to/bbdb/lisp/bbdb-loaddefs.el") ;;; Set bbdb file (setq bbdb-file "~/path/to/bbdb") ;; en clair; Not encrypted. chmod 700. ;;; Initailise for message-mode (gnus outgoing) and mail-mode (rmail outgoing). (bbdb-initialize 'gnus 'message 'pgp 'mail) ;; Add 'rmail if you wish. ;;; Auto saving of email addresses - Two methods. ;; ;;; METHOD 1 - I use this. ;;; Prompt for message-mode (gnus outgoing), mail-mode (rmail outgoing). ;;; No prompt for rmail-mode (incoming), gnus (incoming). (bbdb-mua-auto-update-init 'message ;; message-mode is gnus outgoing ;; 'rmail ;; No rmail-mode (incoming) 'mail) ;; mail-mode is "rmail" outgoing. (setq bbdb-mua-update-interactive-p '(query . create) bbdb-message-all-addresses t ;; To: is 2nd line mail-mode. Default: nil. bbdb-update-records-p 'query bbdb-mua-auto-update-p 'query) (add-hook 'bbdb-notice-mail-hook 'bbdb-auto-notes) ;;; BBDB Pop window. Toggle 't' or 'T' in bbdb buffer to expand lines. (setq bbdb-mua-pop-up-window-size 3 bbdb-layout 'one-line ;; one-line, multi-line, full-multi-line (t or T) bbdb-pop-up-window-size 5 bbdb-complete-mail-allow-cycling t) ;;; ;;; Method 2 - I don't use this, but it does work. ;; Pop window. Toggle 't' or 'T' in bbdb buffer to expand lines. ;(setq bbdb-mua-pop-up-window-size 3 ; bbdb-layout 'one-line ;; one-line, multi-line, full-multi-line (t or T) ; bbdb-pop-up-window-size 5 ; bbdb-complete-mail-allow-cycling nil) ;; Default ;;; ;(bbdb-mua-auto-update-init 'message 'rmail) ;; rmail & message only. ;(setq bbdb-message-all-addresses nil) ;; t, nil - only 1st if nil (default). ;;;(setq bbdb-update-records-p 'create) ;; Create without query. ;(setq bbdb-update-records-p 'query) ;; Query then create on yes. ;;; ;;; Automatically save bbdb file after a change. (add-hook 'bbdb-after-change-hook 'bbdb-save) ;; I use this. ;;; bbdb-after-change-hook runs with one argument, the record that was ;;; changed. The first arg of bbdb-save is the optional arg PROMPT. So ;;; this arg is always non-nil when called by the hook (thus prompting ;;; before saving). Otherwise use ;(add-hook 'bbdb-after-change-hook (lambda (arg) (bbdb-save))) ;; ANNOYING! ;;; for saving without prompting (but not if gpg password is required). ;;; bbdb telephone setting defaults to US style ;(setq bbdb-north-american-phone-numbers-p nil) ;; nil to format non-US style. ;; Above line no longer seems to work. Use next line: (setq bbdb-phone-style 'nil) ;; Free-style numbering. Default 'nanp ;;; nanp = "North American Numbering Plan". ;;; My ~/.gnus.el settings ;;;;;;; (add-hook 'gnus-startup-hook 'bbdb-insinuate-gnus) (add-hook 'gnus-startup-hook 'bbdb-insinuate-message) Hope this helps. Best wishes, Colin Baxter m43cap@yandex.com --------------------------------------------------------------------- GnuPG fingerprint: 68A8 799C 0230 16E7 BF68 2A27 BBFA 2492 91F5 41C8 --------------------------------------------------------------------- Since mathematicians have invaded the theory of relativity, I do not understand it myself. A. Einstein