Re: Record address from all field

2015-04-28 Thread Peter Münster
On Tue, Apr 28 2015, f...@epita.fr wrote:

 (defun pm/alter-summary-map ()
   ; .
   (local-set-key : 'bbdb-mua-display-records))
 (add-hook 'gnus-summary-mode-hook   'pm/alter-summary-map)

 I try, but :

 Symbol's function definition is void: bbdb-mua-display-records

You'll need probably the latest BBDB version and these lines:

--8---cut here---start-8---
(require 'bbdb-loaddefs)
(bbdb-initialize 'gnus 'message)
--8---cut here---end---8---

-- 
   Peter


--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: Record address from all field

2015-04-27 Thread Peter Münster
On Mon, Apr 27 2015, f...@epita.fr wrote:

 When I receive a email (using gnus), I would like by pressing ':' that
 bbdb records all address from 'to' and 'from' fields
  
 How can I do ?

You could try this:

--8---cut here---start-8---
(defun pm/alter-summary-map ()
  ; .
  (local-set-key : 'bbdb-mua-display-records))
(add-hook 'gnus-summary-mode-hook   'pm/alter-summary-map)
--8---cut here---end---8---

-- 
   Peter


--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: bbdb-completing-read-mails and tab-completion

2015-04-27 Thread Peter Münster
On Sun, Apr 26 2015, Roland Winkler wrote:

 [...]
 But bbdb-completing-read-mails does not use something like
 REQUIRE-MATCH.

Thanks for your explanation, Roland. Now I understand.
In my situation, it doesn't matter, because I know, that an
email-address is required in the end, so I would always continue
completing until the completion is complete.

-- 
   Peter


--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: bbdb-completing-read-mails and tab-completion

2015-04-26 Thread Peter Münster
On Sun, Apr 26 2015, Roland Winkler wrote:

 I am sorry, the code is broken.  A bad hack to make it work
 *somehow* is to use a prompt for bbdb-completing-read-mails that
 looks like a mail header, for example

   (bbdb-completing-read-mails Resend-message(s)-to: )

This is not a *bad* hack, this is actually *the* solution, thanks!


 Different question: What is your use case?  Why do you want to
 advice gnus-summary-resend-message?  Why can't you use
 bbdb-complete-mail in some gnus buffer?  (I do not know many details
 about gnus.)

gnus-summary-resend-message asks in the minibuffer for the destination
address, and that's the place, where I want to use the bbdb-tab-completion.
With your hack, it works just fine, no need to fix anything.

Thanks,
-- 
   Peter


--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: bbdb-completing-read-mails and tab-completion

2015-04-26 Thread Peter Münster
On Sun, Apr 26 2015, Roland Winkler wrote:

 Still I believe that partially completed email addresses are not very
 meaningful return values in such a context.

Sorry, I don't understand...  Why partially?  After completion, gnus
gets the right address.

-- 
   Peter


--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


bbdb-completing-read-mails and tab-completion

2015-04-25 Thread Peter Münster
Hi,

When using bbdb-completing-read-mails like this:

--8---cut here---start-8---
(defadvice gnus-summary-resend-message (before pm/resend-with-bbdb act)
  Resend message with bbdb address completion.
  (interactive
   (list (bbdb-completing-read-mails Resend message(s) to: 
--8---cut here---end---8---

the tab-completion fails with this message:

Not a valid buffer position for mail completion

How could I make it work please?

TIA for any help,
-- 
   Peter


--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: Slurping in bbdb 3.0

2012-02-27 Thread Peter Münster
On Mon, Feb 27 2012, Philip Hudson wrote:

 --8---cut here---start-8---

 --8---cut here---end---8---

 Do you have a mode/elisp snippet for generating these? I've been  
 looking for one for years.

I'm using:

--8---cut here---start-8---
C-c M-m runs the command message-mark-inserted-region, which is an interactive
compiled Lisp function in `message.el'.
--8---cut here---end---8---

From the Gnus MUA.

-- 
   Peter


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: BBDB release?

2012-02-13 Thread Peter Münster
On Mon, Feb 13 2012, Roland Winkler wrote:

 Previously, other people on this list have voted rather emphatically
 for an update of documentation before they wanted to consider
 switching from BBDB 2.x to 3.

Making a release does not mean that people must switch from 2.x to 3.
I agree with Stefan.

-- 
   Peter


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: completition in mini-buffer

2011-11-07 Thread Peter Münster
On Mon, Nov 07 2011, Eric Abrahamsen wrote:

 Also: see `bbdb-completing-read-mails', it might be enough to replace
 `message-read-from-minibuffer' with your own function that uses this.

Thanks! Redefinig `message-read-from-minibuffer' works well:

--8---cut here---start-8---
(defun message-read-from-minibuffer (prompt optional initial-contents)
  (bbdb-completing-read-mails prompt initial-contents))
--8---cut here---end---8---

But it would be nicer, if this redefinition would be active only for
some selected commands, such as `gnus-summary-resend-message', so I
tried it with `defadvice', but it does not work:

--8---cut here---start-8---
(defadvice gnus-summary-resend-message (around resend-with-bbdb (address n)
   activate)
  Resend message with bbdb address completion.
  (flet ((message-read-from-minibuffer (p optional d)
   (bbdb-completing-read-mails p d)))
ad-do-it))
--8---cut here---end---8---

There are no errors, but `bbdb-completing-read-mails' is not called...
Why?

TIA for any help,
-- 
   Peter


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: completition in mini-buffer

2011-11-07 Thread Peter Münster
On Mon, Nov 07 2011, Peter Münster wrote:

 (defadvice gnus-summary-resend-message (around resend-with-bbdb (address n)
activate)
   Resend message with bbdb address completion.
   (flet ((message-read-from-minibuffer (p optional d)
(bbdb-completing-read-mails p d)))
 ad-do-it))

 There are no errors, but `bbdb-completing-read-mails' is not called...
 Why?

Found it: the reason seems to be, that `message-read-from-minibuffer' is
called from the `interactive' form...

-- 
   Peter


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

completition in mini-buffer

2011-11-06 Thread Peter Münster
Hello,

What should I do, to get completion of email addresses in the
mini-buffer, when using `gnus-summary-resend-message' (S-D-r)?

TIA for any hint!

-- 
   Peter


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: function to add new records from email message

2011-10-29 Thread Peter Münster
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.

Hello,

Finally I understand: `bbdb-mua-display-*' does not only *display*
records, but can also update them, depending on
`bbdb-mua-update-interactive-p'.
I've replaced `bbdb-mua-edit-notes-*' by `bbdb-mua-display-records' and
everything is fine now!


 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?

Since I have still used the bbdb-mua-edit-notes-* functions, at every
new record bbdb asked for notes. But with the display function, this
is solved.

Thanks!
-- 
   Peter


--
Get your Android app more play: Bring it to the BlackBerry PlayBook 
in minutes. BlackBerry App World#153; now supports Android#153; Apps 
for the BlackBerryreg; PlayBook#153;. Discover just how easy and simple 
it is! http://p.sf.net/sfu/android-dev2dev
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Re: function to add new records from email message

2011-08-07 Thread Peter Münster
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


--
BlackBerryreg; 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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: function to add new records from email message

2011-08-06 Thread Peter Münster
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.


 There are more things you can customize. These variables are listed
 in bbdb.el.

Thanks for your hints! Now I have a quite well working bbdb-setup for
the beginning:

--8---cut here---start-8---
(bbdb-initialize 'gnus 'message)
(setq
 bbdb-accept-name-mismatch t
 bbdb-completion-display-recordnil
 bbdb-message-all-addressest
 bbdb/gnus-update-records-p'(lambda ()
  (let ((bbdb-update-records-p 'create))
(bbdb-select-message
--8---cut here---end---8---

-- 
   Peter


--
BlackBerryreg; 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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

name ending with de gets broken

2011-08-06 Thread Peter Münster
Hello,

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

From: Claude Guillou xxx@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


--
BlackBerryreg; 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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


function to add new records from email message

2011-07-29 Thread Peter Münster
Hello,

I'm looking for a function, that takes a message (from the message
buffer or the gnus summary buffer), scans all email addresses in the
header and adds new records to the bbdb for not yet existing email
addresses. Is there already such a function? If yes, what's its name?
If no, will there be such a function soon?

There is (bbdb-mua-edit-notes-recipients), but:
- it only takes the recipients and not the sender
- it only takes the first recipient and not the others
- it asks if I want to add it (I don't want interaction)
- it asks for notes (I don't want to add notes)

I'm using the latest bbdb with the latest emacs and gnus.

TIA for any hints, and thanks for the bbdb package!

-- 
   Peter


--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/