emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: emacs-orgmode@gnu.org
Subject: Re: [OT] Configuring bbdb 3
Date: Thu, 26 Jul 2012 11:52:21 +0800	[thread overview]
Message-ID: <87mx2nfabu.fsf@ericabrahamsen.net> (raw)
In-Reply-To: m2d33jlpdt.fsf@top.irisa.fr

On Thu, Jul 26 2012, Alan Schmitt wrote:

> Hello,
>
> Since I'm spending more and more time in Emacs, mostly in org mode, I
> moved my email reading and writing there. Everything is happily
> configured (I'm using gnus), with one exception: email address
> completion. I've read a few things online and it seems that bbdb is the
> way to go, so I compiled and installed bbdb 3. Unfortunately I could not
> find any configuration example online (the ones I found were for bbdb 2,
> but things seem to have changed a lot, and the conversion guide in the
> emacswiki did not help).
>
> I know this is off topic for this list, but if someone would be willing
> to share his configuration, I would very much appreciate it. (I'm not
> aiming for much: I want the addresses of messages I read to be added
> automatically in bbdb, and to be able to complete from them when writing
> a message.)

In BBDB 3, `bbdb-complete-mail' is the function that takes the string
before point and tries to turn it into something suitable for the "To"
header of the message. In message-mode, with BBDB activated, TAB is
bound to something that eventually calls `bbdb-complete-mail' (actually
uses `bbdb-complete-name', which is deprecated and aliased to
`bbdb-complete-mail').

So, depending on how you're writing your messages in org, you could bind
a convenient key to `bbdb-complete-mail', or overload TAB or something
else so that it checks if you're in the appropriate field, and then does
`bbdb-compelete-mail'.

For adding records automatically to BBDB, you say you're using gnus, but
also say you've moved your email reading to org. Where are you that
you'd like to automatically add the record? In gnus, I've bound ";" to
`bbdb-mua-edit-field-sender', and also have this:

(setq bbdb-mua-update-interactive-p '(query . create))

If I hit ";" on a message, it will show me the records for all the
addresses in the To and CC headers (possibly headers too), and if I
don't have records for any of those headers, it will ask me if I want to
create records. That's the way I like it, you can look at the possible
values for `bbdb-mua-update-interactive-p' to get different behaviors.

If you're actually reading your mail in org and want to create records
from there, it might be more complicated, as the BBDB creation functions
seem pretty tied to you being in a MUA of some sort…

Hope that's useful,
Eric

-- 
GNU Emacs 24.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.11)
 of 2012-07-23 on pellet
7.8.10

  parent reply	other threads:[~2012-07-26  3:52 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-25 17:30 [OT] Configuring bbdb 3 Alan Schmitt
2012-07-25 20:51 ` Myles English
2012-07-26  3:52 ` Eric Abrahamsen [this message]
2012-07-26  4:38   ` Achim Gratz
2012-07-26 11:12     ` Eric Abrahamsen
2012-07-26 13:46       ` Nick Dokos
2012-07-26 18:10       ` Achim Gratz
2012-07-26 19:55         ` François Allisson
2012-07-27  3:06           ` Eric Abrahamsen
2012-07-27 15:05           ` local.mk and up2 (Was: [OT] Configuring bbdb 3) Alan Schmitt
2012-07-27 16:14             ` Nick Dokos
2012-07-27 16:24             ` Nick Dokos
2012-07-28 10:56               ` local.mk and up2 Alan Schmitt
2012-07-27 18:08             ` Achim Gratz
2012-07-26  8:10   ` [OT] Configuring bbdb 3 Alan Schmitt

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87mx2nfabu.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=emacs-orgmode@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).