all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Colin Baxter <m43cap@yandex.com>
To: Xavier Maillard <xavier@maillard.im>
Cc: , help-gnu-emacs@gnu.org
Subject: Re: bbdbv3 with rmail
Date: Thu, 06 Dec 2018 08:16:48 +0000	[thread overview]
Message-ID: <87tvjr2hov.fsf@yandex.com> (raw)
In-Reply-To: <E1gUmhx-0001NA-Nn@eggs.gnu.org> (Xavier Maillard's message of "Thu, 06 Dec 2018 07:00:15 +0100")

Dear Xavier,
>>>>> Xavier Maillard <xavier@maillard.im> 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
;;; <http://stackoverflow.com/questions/11991940/auto-create-entries-for-all-email-addresses-in-bbdb3>
;(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



  reply	other threads:[~2018-12-06  8:16 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-06  6:00 bbdbv3 with rmail Xavier Maillard
2018-12-06  8:16 ` Colin Baxter [this message]
2018-12-06  9:57   ` Eric S Fraga
2018-12-07  6:41     ` Colin Baxter
2018-12-07  6:58       ` Eric S Fraga
2018-12-07 10:55         ` Colin Baxter
2018-12-07 15:43           ` Eric S Fraga
2018-12-07 22:16 ` Bob Newell
2018-12-11  5:10   ` Xavier Maillard
2018-12-11 19:43   ` Stefan Monnier
     [not found]   ` <mailman.5599.1544557447.1284.help-gnu-emacs@gnu.org>
2018-12-14 10:05     ` Michael Welle
2018-12-14 17:32       ` Eric Abrahamsen
2018-12-16 16:25         ` Xavier Maillard
2018-12-16 16:58           ` Eric Abrahamsen
2018-12-16 22:00             ` Xavier Maillard
2018-12-17  1:08               ` Eric Abrahamsen
2018-12-18  5:36                 ` Xavier Maillard
2018-12-18 23:13                   ` Eric Abrahamsen
2018-12-19  5:30                     ` Xavier Maillard
     [not found]               ` <mailman.5830.1545008946.1284.help-gnu-emacs@gnu.org>
2018-12-17 10:26                 ` Michael Welle
2018-12-17 15:41                   ` Eric Abrahamsen
2018-12-18  5:33                     ` Xavier Maillard
     [not found]                   ` <mailman.5841.1545061305.1284.help-gnu-emacs@gnu.org>
2018-12-17 15:52                     ` Michael Welle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tvjr2hov.fsf@yandex.com \
    --to=m43cap@yandex.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=xavier@maillard.im \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.