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: Face and X-Face display in terminal emacs frames

2009-01-08 Thread Reiner Steib
On Thu, Jan 08 2009, Tassilo Horn wrote:

 Reiner Steib reinersteib+gm...@imap.cc writes:
 Erase your customization for `gnus-treat-display-x-face'.

 That works, but how?  I've customized it to be 'head and got that
 annoying behavior.  Without customization it's 'head anyway, although,

I guess you checked this when using Emacs with X11, not on a tty.

 but now the images are only displayed in X11 frames.  What's the black
 magic involved here?  

The default of `gnus-treat-display-x-face' is nil on tty.
(I don't write X11 frames or tty frames because I doubt that Gnus
does The Right Thing with frames on tty/X11 in a single multi-tty
Emacs session.)

,
| (defcustom gnus-treat-display-x-face
|   (and (not noninteractive)

Avoids X-Faces in batch mode.

|(gnus-image-type-available-p 'xbm)

Should be nil when running on a tty.

|(if (featurep 'xemacs)
|  (featurep 'xface)

XEmacs may have builtin X-Face support.

|(and (string-match ^0x (shell-command-to-string uncompface))
| (executable-find icontopbm)))

For Emacs, check if the external programs are available and working.

|'head)
`

 Is there something like if variable was set explicitly do this,
 else do that?

Nope.

Bye, Reiner.
-- 
   ,,,
  (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Face and X-Face display in terminal emacs frames

2009-01-08 Thread Tassilo Horn
Reiner Steib reinersteib+gm...@imap.cc writes:

Hi Reiner,

 That works, but how?  I've customized it to be 'head and got that
 annoying behavior.  Without customization it's 'head anyway,
 although,

 I guess you checked this when using Emacs with X11, not on a tty.

Yes, but my emacs is started as system service with the --daemon option
on a tty.  But when starting gnus I'm usually in an X11 frame and thus
head is the treatment variables' value.

 but now the images are only displayed in X11 frames.  What's the
 black magic involved here?

 The default of `gnus-treat-display-x-face' is nil on tty.  (I don't
 write X11 frames or tty frames because I doubt that Gnus does The
 Right Thing with frames on tty/X11 in a single multi-tty Emacs
 session.)

Believe it or not, it does.  Currently the treatment variables are set
to head and when I select an article in a terminal emulator no (X-)Face
is shown and no `display' window appears, but when I do the same in an
X11 frame (of the same emacs instance) the images are shown inside
emacs.

The only thing I can think of is that I started gnus in a terminal frame
when I got the `display' windows with the treatment variables set to
head explicitly...

 ,
 | (defcustom gnus-treat-display-x-face
 |   (and (not noninteractive)

 Avoids X-Faces in batch mode.

 |(gnus-image-type-available-p 'xbm)

 Should be nil when running on a tty.

 |(if (featurep 'xemacs)
 |(featurep 'xface)

 XEmacs may have builtin X-Face support.

 |  (and (string-match ^0x (shell-command-to-string uncompface))
 |   (executable-find icontopbm)))

 For Emacs, check if the external programs are available and working.

 |'head)
 `

Yeah, I've seen that and couldn't think of why gnus just DTRT when using
to customizations. ;-)

Bye,
Tassilo



___
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