Re: Can I grab mopre than one address for BBDB?

2009-01-08 Thread Richard Riley

Someone some...@somewhere.info writes:

 Hi, I've been lurking for while, and I thank you all for the wonderful
 help and questions that I have seen here.  I've been a GNUS user long
 time ago, but chance made me change to another MUA for a decade or
 so.

 I never really learned to use the power of Gnus though. Also back
 then, even the most simple e-lisp statement was black magic to me.

 One of the nice things that I discovered when returning to Gnus, was
 BBDB intregration, but so far its been a steep learning curve.  Not
 surprised though.

 Martin Fischer nos...@nospam.net writes:
 Andreas Davour writes:
 I've been using BBDB for storing e-mail addresses from people for a
 while now. I've tried to find some info in the BBDB docs how to use it
 with gnus, but found little.

 I haven't really found any - do you have any pointers?

 If I get an e-mail From: FOO and CC: BAR is there a way to add BAR to my
 BBDB address book? Using : only adds FOO.
 M-x bbdb/gnus-show-all-recipients RET  ?

 Thanks a lot!  Both : and M-x bbdb/gnus-show-all-recipients RET
 was new to me!  So far I have been manually adding entries to BBDB.

 Now we just have to wait for PIM synchronisation and the world is nice
 place to live. :)

 /Someone .

If you get anything working reliably with mobile/PDA please post here
and let us know.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Can I grab mopre than one address for BBDB?

2009-01-08 Thread Someone
Hi, I've been lurking for while, and I thank you all for the wonderful
help and questions that I have seen here.  I've been a GNUS user long
time ago, but chance made me change to another MUA for a decade or
so.

I never really learned to use the power of Gnus though. Also back
then, even the most simple e-lisp statement was black magic to me.

One of the nice things that I discovered when returning to Gnus, was
BBDB intregration, but so far its been a steep learning curve.  Not
surprised though.

Martin Fischer nos...@nospam.net writes:
 Andreas Davour writes:
 I've been using BBDB for storing e-mail addresses from people for a
 while now. I've tried to find some info in the BBDB docs how to use it
 with gnus, but found little.

I haven't really found any - do you have any pointers?

 If I get an e-mail From: FOO and CC: BAR is there a way to add BAR to my
 BBDB address book? Using : only adds FOO.
 M-x bbdb/gnus-show-all-recipients RET  ?

Thanks a lot!  Both : and M-x bbdb/gnus-show-all-recipients RET
was new to me!  So far I have been manually adding entries to BBDB.

Now we just have to wait for PIM synchronisation and the world is nice
place to live. :)

/Someone .
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Can I grab mopre than one address for BBDB?

2009-01-08 Thread Sivaram Neelakantan
Andreas Davour ante...@updatelike.uu.hellse writes:

 Martin Fischer nos...@nospam.net writes:

 Andreas Davour writes:

 Hi guys.

 I've been using BBDB for storing e-mail addresses from people for a
 while now. I've tried to find some info in the BBDB docs how to use it
 with gnus, but found little.

 If I get an e-mail From: FOO and CC: BAR is there a way to add BAR to my
 BBDB address book? Using : only adds FOO.

 Ideas?

 M-x bbdb/gnus-show-all-recipients RET  ?

 That did the trick! Thanks Martin! Hmm. Are there any reasons not to have
 that command run every time I open an e-mail? Records already in my
 address book wont get affected, right?


[snipped 21 lines]

Well, I can't seem to get what you are missing apart from the feature
you asked but let me try explaining how I use BBDB; if that is of any
help to you.

When reading mail in the summary buffer hitting ';' prompts me to add
the name if it does not already exists.

C-c b asks me for a regex to search the BBDB and it shows the matches
in another buffer.  If that buffer is made the focus, hitting C-h m
will show all the keys you can use to edit/add names, aliases and
such. 

I seem to have the following customisations all over the place
;;in .emacs
 '(bbdb-get-addresses-headers (quote ((authors From Resent-From Reply-To) 
(recipients Resent-To Resent-CC To Cc CC BCC
 '(bbdb-get-only-first-address-p nil)
 '(bbdb-info-file c:/gnu/elisp/bbdb-2.35/texinfo/bbdb.info)

BBDB in .gnus.el
;== 
; BBDB
;==
(require 'bbdb)
(require 'bbdb-com)
(require 'bbdb-gnus)
(require 'bbdb-hooks)
(require 'gnus-bbdb) 
;; ;;need for TAB expansion in headers for addresses
(require 'message-x);; search for message-x.el on the web
;; (setq message-x-body-function
;;   '(lambda () (interactive)(hippie-expand nil)))

(bbdb-initialize 'gnus 'message)
(add-hook 'gnus-startup-hook 'bbdb-insinuate-gnus)
(bbdb-insinuate-message)
(setq bbdb-send-mail-style 'message)
(add-hook 'message-setup-hook 'bbdb-define-all-aliases)
(global-set-key (kbd C-c b) 'bbdb)
(autoload 'bbdb/gnus-lines-and-from bbdb-gnus)
(setq gnus-optional-headers 'bbdb/gnus-lines-and-from)
(gnus-bbdb-insinuate-summary-buffer)
(setq bbdb-completion-display-record nil)
(setq bbdb-north-american-phone-numbers-p nil)
(setq bbdb-complete-name-allow-cycling t)
(setq bbdb-define-all-aliases-mode 'all)
(setq bbdb-default-country nil)


Have you had a chance to look at the info file?

 sivaram
 -- 



___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Can I grab mopre than one address for BBDB?

2009-01-08 Thread Adam Sjøgren
On Thu, 08 Jan 2009 16:38:32 +0100, Andreas wrote:

 That did the trick! Thanks Martin! Hmm. Are there any reasons not to have
 that command run every time I open an e-mail? Records already in my
 address book wont get affected, right?

In gnus-select-group-hook I set bbdb/news-auto-create-p to true in
(some) mail-groups and false otherwise (so I do not automatically pick
up people from newsgroups, rss-feeds etc).

That works well for me.

,[ C-h v bbdb/news-auto-create-p RET ]
| `bbdb/news-auto-create-p' is a variable declared in Lisp.
|   -- loaded from bbdb
| 
| Value: nil
| 
| Documentation:
| *If this is t, then Gnus will automatically create new bbdb
| records for people you receive mail from.  If this is a function name
| or lambda, then it is called with no arguments to decide whether an
| entry should be automatically created.  You can use this to, for
| example, create or not create messages which have a particular
| subject.  If you want to autocreate messages based on the current
| newsgroup, it's probably a better idea to set this variable to t or
| nil from your `gnus-select-group-hook' instead.
`

I set it like this:

  ; Only let bbdb auto-create in some groups:
  (setq gnus-select-group-hook
'(lambda ()
   (setq bbdb/news-auto-create-p
 (and
  (string-match ^nnml: gnus-newsgroup-name)
  (not (or (string-match ^nnml:spam gnus-newsgroup-name)
   (string-match ^nnml:virus gnus-newsgroup-name)
  )
 )))
  )

(I can not remember where I stole^Wgot it from originally).

 I have read some messages from jwz about bbdb and I get the impression
 it can do a lot more than I think. If only I knew how...

Did you read the manual?


  Best regards,

Adam

-- 
 Jeg er skarp som en StanleyAdam Sjøgren
 a...@koldfront.dk
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Can I grab mopre than one address for BBDB?

2009-01-07 Thread Martin Fischer


Andreas Davour writes:

 Hi guys.

 I've been using BBDB for storing e-mail addresses from people for a
 while now. I've tried to find some info in the BBDB docs how to use it
 with gnus, but found little.

 If I get an e-mail From: FOO and CC: BAR is there a way to add BAR to my
 BBDB address book? Using : only adds FOO.

 Ideas?

 /Andreas

M-x bbdb/gnus-show-all-recipients RET  ?
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english