Roland Winkler | 1 Aug 2011 16:44
Picon

Re: Aliases questions (autocompletion)

On Sun Jul 31 2011 Johnny wrote:
> I have started using aliases in bbdb and wonder if there is any setup to
> autocomplete on defined aliases in the headers? Say, I have an alias
> named "listofmembers" and want to mail them. I add this mail-alias field
> to all relevant contacts, then in the "To" header type the full alias
> "listofmembers" followed by TAB, this fills in the "To" header with the
> group members email as expected. However, I would like to enable TAB
> completion on alias names, e.g. if I type "lis" and TAB this should
> ideally fill in the rest. Is this possible to achieve?

This has (almost) nothing to do with BBDB. The mailabbrev package is
doing this (both when you define aliases via a .mailrc file or via
BBDB).

You can use mail-abbrev-complete-alias from that package (I think,
usually bound to M-Tab). If you also want to use bbdb-complete-mail
things get a bit more complicated, as you need to specify some order
for completion (whether mail-abbrev-complete-alias or
bbdb-complete-mail should try first). Try something like

(defun my-bbdb-complete-mail ()
  (interactive)
  (or (mail-abbrev-complete-alias)
      (bbdb-complete-mail)))

> Second question, is there a clever way to list all mail aliases in BBDB,
> and subsequently list all members of o select mail alias?

How about bbdb-search-notes (bound to S N)?  If you want to list just
the aliases, but not the records using them, you might have to write
(Continue reading)

Johnny | 2 Aug 2011 00:08
Picon
Favicon

Re: Aliases questions (autocompletion)

Roland Winkler <winkler <at> gnu.org> writes:

> On Sun Jul 31 2011 Johnny wrote:
>> I have started using aliases in bbdb and wonder if there is any setup to
>> autocomplete on defined aliases in the headers? Say, I have an alias
>> named "listofmembers" and want to mail them. I add this mail-alias field
>> to all relevant contacts, then in the "To" header type the full alias
>> "listofmembers" followed by TAB, this fills in the "To" header with the
>> group members email as expected. However, I would like to enable TAB
>> completion on alias names, e.g. if I type "lis" and TAB this should
>> ideally fill in the rest. Is this possible to achieve?
>
> This has (almost) nothing to do with BBDB. The mailabbrev package is
> doing this (both when you define aliases via a .mailrc file or via
> BBDB).
>
> You can use mail-abbrev-complete-alias from that package (I think,
> usually bound to M-Tab). If you also want to use bbdb-complete-mail
> things get a bit more complicated, as you need to specify some order
> for completion (whether mail-abbrev-complete-alias or
> bbdb-complete-mail should try first). Try something like
>
> (defun my-bbdb-complete-mail ()
>   (interactive)
>   (or (mail-abbrev-complete-alias)
>       (bbdb-complete-mail)))
>
This got me on the right track in learning about abbrevs, thanks! I
could get this working by binding in .gnus.el as: 

(Continue reading)

Roland Winkler | 2 Aug 2011 03:27
Picon

Re: Aliases questions (autocompletion)

On Mon Aug 1 2011 Johnny wrote:
> Thus, I ended up just binding M-TAB to mail-abbrev-complete-alias. If I
> want to complete on a name, I use *TAB*, if an alias just *M-TAB*. It
> might be nice to make aliases and names all appear by the same
> completion (like cycling), but this seems like overkill at the
> moment.

Having two separate commands is probably a good solution.
If you try to combine too many things in one command, it becomes
rather confusing because too often this command will not perform the
action you want in a particular situation but something else.

Roland

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
bbdb-info <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Peter Münster | 7 Aug 2011 00:15
Picon
Favicon

Re: function to add new records from email message

On Sat, Jul 30 2011, Roland Winkler wrote:

> On Fri Jul 29 2011 Peter Münster wrote:
>> There is (bbdb-mua-edit-notes-recipients), but:
>> - it only takes the recipients and not the sender
>
> What about bbdb-mua-edit-notes-sender?

The question was rather, if there was a function like
`bbdb-mua-edit-notes-ALL'. My solution:

--8<---------------cut here---------------start------------->8---
(local-set-key ":" '(lambda () (interactive)
                      (bbdb-mua-edit-notes-recipients)
                      (bbdb-mua-edit-notes-sender)))
--8<---------------cut here---------------end--------------->8---

> I don't know which MUA you use (Gnus, VM, MH-E, Rmail, ...)

Gnus (as mentioned in my previous message).

>> - it asks for notes (I don't want to add notes)
>
> Try bbdb-mua-display-sender

This function does nothing, if the record does not yet exist.

But it's not a big issue, I just have to press "Return" for each new
record.

(Continue reading)

Peter Münster | 7 Aug 2011 00:37
Picon
Favicon

name ending with "de" gets broken

Hello,

When I create a new record from the following message header:

From: Claude Guillou <xxx <at> yyy>

the name becomes "Clau de Guillou". And I cannot repair it in the *BBDB*
buffer with the bbdb-edit-field function. Only manually repairing it in
the bbdb file helps.

(I suppose that it's related to bbdb-lastname-prefixes...)

--

-- 
           Peter

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
bbdb-info <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Stefan Monnier | 7 Aug 2011 17:14
Picon

Re: function to add new records from email message

> (local-set-key ":" '(lambda () (interactive)
[...]
>  bbdb/gnus-update-records-p        '(lambda ()

Hmm... running for The Useless Use of Quote Award?

        Stefan

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
bbdb-info <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Peter Münster | 7 Aug 2011 19:41
Picon
Favicon

Re: function to add new records from email message

On Sun, Aug 07 2011, Stefan Monnier wrote:

>> (local-set-key ":" '(lambda () (interactive)
> [...]
>>  bbdb/gnus-update-records-p        '(lambda ()
>
> Hmm... running for The Useless Use of Quote Award?

Yes! ;)  Thanks for the hint!  I've just removed about a dozen quotes
from my .emacs file.  I still need to learn a lot about lisp...

--

-- 
           Peter

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
bbdb-info <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Eric Abrahamsen | 7 Aug 2011 19:49

known poster mark in gnus: all I get are asterisks

Hi,

I'm trying to show known posters in the gnus summary buffer. I've got:

bbdb/gnus-summary-mark-known-posters: t
bbdb/gnus-summary-known-poster-mark: "+"
bbdb/gnus-summary-in-bbdb-format-letter: "b"
gnus-summary-line-format: "%U%R%7L%b: %I%f %-50= %s %-120= |%&user-date;\n"

None of my bbdb records has a "mark-char" field. Instead of putting a
"+" next to known posters, *every* poster has a "*" where the %b should
go. I've tried giving some BBDB records a "mark-char" field, but that's
ignored, too: they still get a "*". Has anyone seen this before?

Using up-to-date gnus and bbdb, on emacs 23.3.

Thanks,
Eric

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
bbdb-info <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

(Continue reading)

Roland Winkler | 11 Aug 2011 09:44
Picon

Re: function to add new records from email message

On Sun Aug 7 2011 Peter Münster wrote:
> The question was rather, if there was a function like
> `bbdb-mua-edit-notes-ALL'. My solution:
> 
> --8<---------------cut here---------------start------------->8---
> (local-set-key ":" '(lambda () (interactive)
>                       (bbdb-mua-edit-notes-recipients)
>                       (bbdb-mua-edit-notes-sender)))
> --8<---------------cut here---------------end--------------->8---

I guess there are just too many possiblities for defining such
utility commands to match personal tastes. But as you noticed
reshuffling the existing ones is hopefully not so difficult.

> > Try bbdb-mua-display-sender
> 
> This function does nothing, if the record does not yet exist.

...depending on how you configure it. As I said: the default is
being the least aggressive.

> But it's not a big issue, I just have to press "Return" for each
> new record.

What do you mean here? Which step needs to be confirmed by typing
Return so that apparently you get what you want?

Roland

------------------------------------------------------------------------------
(Continue reading)

Eric Abrahamsen | 11 Aug 2011 10:32

Re: function to add new records from email message

On Thu, Aug 11 2011, Roland Winkler wrote:

> On Sun Aug 7 2011 Peter Münster wrote:
>> The question was rather, if there was a function like
>> `bbdb-mua-edit-notes-ALL'. My solution:
>> 
>> --8<---------------cut here---------------start------------->8---
>> (local-set-key ":" '(lambda () (interactive)
>>                       (bbdb-mua-edit-notes-recipients)
>>                       (bbdb-mua-edit-notes-sender)))
>> --8<---------------cut here---------------end--------------->8---
>
> I guess there are just too many possiblities for defining such
> utility commands to match personal tastes. But as you noticed
> reshuffling the existing ones is hopefully not so difficult.
>
>> > Try bbdb-mua-display-sender
>> 
>> This function does nothing, if the record does not yet exist.
>
> ...depending on how you configure it. As I said: the default is
> being the least aggressive.

Hey, this was a great bit of information -- I've long been confused
about the best way to get someone in the database if you're not
automatically adding unknown senders. So now with a prefix arg ":" asks
whether to add a new record, but I don't see what you set to have it ask
for all invocations, not just those with a prefix arg…?

------------------------------------------------------------------------------
(Continue reading)


Gmane