Re: BBDB with notmuch mail client

2012-07-01 Thread Roland Winkler
On Thu Jun 28 2012 Daniel Reusche wrote:
 hello.
 on the homepage of the notmuch mail client 
 (http://notmuchmail.org/emacstips/#index13h2) it was stated that it 
 integrates well with bbdb.
 now the problem is, neither could i find out how to feed the addresses 
 from the notmuch database to the bbdb initially, nor how to update the 
 incoming addresses.
 
 i searched through the bbdb and notmuch documentation but i could find 
 nothing helpful. also on #notmuch nobody knew how its done.
 if somebody could point me to helpful resources, i could publish my 
 setup as an example if i get it to work.

It's not quite clear to me how the emacs-based frontend for notmuch
works. If it is based on some other emacs mail user agents (rmail,
gnus, message mode, etc.), then notmuch should work with the BBDB
interface of these MUAs. Otherwise, it will be necessary to add such
an interface (assuming you want to use BBDB 3).

Roland

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: Fancy splitting with BBDB 3

2012-07-01 Thread Roland Winkler
On Thu Jun 28 2012 Sebastien Vauban wrote:
 With BBDB 3, I've lost the following feature:
 
 For records which have `gnus-public' set, the fancy splitting does not
 work anymore like it did.

What is `gnus-public' supposed to do? I realized a little while ago
that bbdb-gnus.el refers to gnus-public, but I could not find any
reference to gnus-public in Gnus itself. Is this some (very) old
Gnus feature that disappeared in more recent versions of Gnus, or am
I missing something else? (Which version of Guns are you using with
which version of emacs?)

I thought about removing the relevant pieces of code in bbdb-gnus.el
that have a `FIXME' tag.

Roland

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Why V3 (Was: Re: Fwd: BBDB development shifted from sourceforge to savannah)

2012-07-01 Thread Roland Winkler
On Thu Jun 21 2012 Sriram Karra wrote:
 Perhaps now is a good time for me to ask this question that's been
 on my mind for a while: Apart from an extensive code cleanup, are
 there any other things to look forward to with your upcoming
 release? This is particularly important given the level of
 breakage in user customization and general backward compatibility
 (relative to 2.x).

Of course, once BBDB v3 is released, users need to be able to rely
on the new design. For me, this has been a major reason that delayed
an earlier release: Turning BBDB around once must be enough. So I
wanted to do this carefully.

By now, unless someone on this list brings up problems with BBDB v3
that remained unnoticed so far, I do not have plans to further
modify the code of BBDB (except for fixing docstrings that could
still be buggy / incomplete). In particular, I do not want to
introduce any additional incompatible changes beyond the ones
present in the current code.

 I would like to capture this question and a summary of your
 answers as a FAQ on the updated project site on sourceforge.

Thanks a lot, that will be helpful!

Roland

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: Fwd: BBDB development shifted from sourceforge to savannah

2012-07-01 Thread Roland Winkler
On Thu Jun 21 2012 Sriram Karra wrote:
 I now have ownership of the BBDB project on sourceforge; I will bring the
 content up to date over the next few weeks as I figure out how to manage that
 site.

Thanks a lot for working on this.

Roland

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: bbdb/news-auto-create-p in V3

2012-07-01 Thread Roland Winkler
On Thu Apr 5 2012 Sriram ET. wrote:
 I can see that this customization has been removed from BBDBv3.
 After spending a little time with the code I am still not able to
 figure out if it has been replaced with something else. I would
 like to automatically create entries for email that is in my work
 email group in gnus. Is there a recommended way to do that in
 BBDBv3?

I believe that since the appearance of BBDB v3 the question has come
up several times how to distinguish within Gnus between email / news
messages in different mail folders / news groups. So I expect that
more people would appreciate if this was mentioned in a FAQ for BBDB
v3.

While I do not know much about Gnus, I expect that a proper solution
should use a function going into the variable
bbdb-mua-update-interactive-p. This function should use some gnus
variables to identify the context for which BBDB got invoked.

If anyone has developed some code along these lines, please post it
here.

Roland

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Fwd: bbdb kanji being corrupped on save

2012-07-01 Thread Randy Bush
13 mba (and various other platforms)
macos 10.7.4
emacs i386-apple-darwin9.8.0, Carbon Version 1.6.0
wanderlust 2.15.9
bbdb 2.35

when i have kanji in a name and then save the .bbdb, i end up with \mush
in the file and lose the kanji.  i tried saving in mule,
iso-this-and-that, etc.  no love.  same problem for extended latin
alphabets.

it is likely my fault, as i seem to have accumulated an amazing amount
of bbdb cruft.

randy

(require 'bbdb-wl)
(bbdb-wl-setup)
;; enable pop-ups
(setq bbdb-use-pop-up nil)
;; auto collection
(setq bbdb/mail-auto-create-p nil)
;; exceptional folders against auto collection
(setq bbdb-wl-ignore-folder-regexp ^@)
(setq signature-use-bbdb t)
(setq bbdb-north-american-phone-numbers-p nil)
;; shows the name of bbdb in the summary :-)
(setq wl-summary-from-function 'bbdb-wl-from-func)
;; print full names as much as possible
(setq bbdb-dwim-net-address-allow-redundancy t)

;; bbdb gather from message send addresses
(defun zzz-bbdb-mail-send-function ()
  (bbdb-update-records
   (delete-if (lambda (item)
(string=  (caaddr item)))
  (bbdb-wl-get-addresses bbdb-get-only-first-address-p))
   t t))
(add-hook 'mail-send-hook 'zzz-bbdb-mail-send-function)

; canonicalize bbdb names
; Len Trigg lenbok+mlb...@gmail.com
(defun zzz-bbdb-canonicalize-name-hook (name)
  Function used to canonicalize the full names of bbdb entries.
  (cond
;; strip extra quotes (Some MS mailer likes 'full name')
((string-match \\`[`'\]\\(.*\\)[`'\]\\' name)
 (bbdb-match-substring name 1))
;; replace multiple whitespace with single
((string-match [ \f\t\n\r\v]\\{2,\\} name)
 (replace-match   nil t name))
;; remove anything in round brackets, e.g.: Firstname Surname (E-mail)
((string-match [ ]+(.*) name)
 (replace-match  nil t name))
;; strip leading whitespace (this is a bug in std11 libs?)
((string-match \\`[ \t]+\\(.*\\) name)
 (bbdb-match-substring name 1))
;; strip trailing whitespace
((string-match \\(.*\\)[ ]+\\' name)
 (bbdb-match-substring name 1))
;; strip Dr pronoun
((string-match \\`Dr\\.? \\(.*\\) name)
 (bbdb-match-substring name 1))
;; person and person - person  person
((string-match \\`\\(\\w+\\) and \\(\\w.+\\)\\' name)
 (concat (bbdb-match-substring name 1)(bbdb-match-substring name 2)))
;; Surname, Firstname - Firstname Surname
((string-match \\`\\(\\w.+\\), \\(\\w.+\\)\\' name)
 (concat (bbdb-match-substring name 2)   (bbdb-match-substring name 1)))
;; replace name without any whitespace with empty; I don't want bbdb names 
containing only a single name
((string-match \\`\\(\\w+\\)\\' name)
 ;;(message (format Eliding name %s name))
 )
(t name)))

;; make bbdb-wl-canonicalize-full-name-function behave like
;; bbdb-canonicalize-net-hook. (much more useful, imo)
(defun zzz-bbdb-canonicalize-name (name)
  (when name;name is sometimes nil?
(while (not (eq name (setq name (zzz-bbdb-canonicalize-name-hook name
  ;;(insert-string (concat name \n))
))
  name)

(setq bbdb-wl-canonicalize-full-name-function 'zzz-bbdb-canonicalize-name)

randy

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


[BBDB] ChangeLog 2012-07-01

2012-07-01 Thread Roland Winkler
Two small bug fixes:

2012-07-01  Sam Steingold  s...@gnu.org
* lisp/bbdb-mua.el (bbdb-get-address-components): name may be nil.

2012-07-01  Sam Steingold  s...@gnu.org
* .gitignore: ignore Makefiles and configure files;
bbdb-autoloads.el - bbdb-loaddefs.el.


BBDB is available at
http://savannah.nongnu.org/projects/bbdb/
To check it out, use
git clone git://git.savannah.nongnu.org/bbdb.git

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: Why V3

2012-07-01 Thread John Wiegley
 Roland Winkler wink...@gnu.org writes:

 By now, unless someone on this list brings up problems with BBDB v3 that
 remained unnoticed so far, I do not have plans to further modify the code of
 BBDB (except for fixing docstrings that could still be buggy /
 incomplete). In particular, I do not want to introduce any additional
 incompatible changes beyond the ones present in the current code.

I've been using BBDB v3 for a while, and all that code that I write uses its
APIs.  No problems thus far.

John


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/