Re: unhappiness on macos

2016-08-30 Thread Randy Bush
>> macosx 10.11.6 (15G31)
>> GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 
>> 2015-04-11 on builder10-9.porkrind.org [2 times]
>> bbdb from packages
>> wanderlust from packages
>> 
>> all used to work in emacs 22 and bbdb from some ancient source
> 
> Which version of BBDB are you talking about, 2 or 3?

BBDB version 2.35 ($Date: 2007/01/01 21:06:02 $) [2 times]

> The former is not supported anymore.

then perhaps it should not be the version which is installed from
[m]elpa packages?

and does v3 work with wanderlust?

randy

--
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


unhappiness on macos

2016-08-26 Thread Randy Bush
macosx 10.11.6 (15G31)
GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 
2015-04-11 on builder10-9.porkrind.org [2 times]
bbdb from packages
wanderlust from packages

all used to work in emacs 22 and bbdb from some ancient source

i have
'(bbdb-canonicalize-net-hook bbdb-wl-canonicalize-full-name-function)
in my .emacsrc so i can expand names in non mail edit buffers (i.e. this
is not a wanderlust problem).

if i try to do an auto-complete, e.g.

randy@pESC TAB

i get "No match"

how do i debug?

---

as a bonus, i bomb if i try a bbdb send hook

  Debugger entered--Lisp error: (void-function delete-if)
  (delete-if (function (lambda (item) (string= "" (caaddr item 
(bbdb-wl-get-addresses bbdb-get-only-first-address-p))
  (bbdb-update-records (delete-if (function (lambda (item) (string= "" (caaddr 
item (bbdb-wl-get-addresses bbdb-get-only-first-address-p)) t t)
  zzz-bbdb-mail-send-function()
  run-hooks(mail-send-hook)
  wl-draft-send(t)
  wl-draft-send-and-exit()
  call-interactively(wl-draft-send-and-exit nil nil)
  command-execute(wl-draft-send-and-exit)

due to this code

;; 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)

randy

--
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: Fwd: bbdb kanji being corrupped on save

2012-07-05 Thread Randy Bush
 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.
 
 BBDB has gone through a major rewrite to bring the code up-to-date.
 (For me, it works fine with chinese characters. Haven't tried kanji yet.)
 
 Currently BBDB 3 does not support wanderlust. But it is possibly
 easier to add sypport for wanderlust to BBDB 3 than trying to fix
 problems with kanji characters in bbdb 2.35.

thanks to Yamamoto Taku wavekid...@gmail.com

--- /cygdrive/c/Users/taku/Downloads/bbdb-2.35/lisp/bbdb.el
2007-01-02 17:01:18.0 +0900
+++ /usr/local/share/emacs/23.4/site-lisp/bbdb/bbdb.el  2010-01-09
21:01:05.0 +0900
@@ -761,8 +761,8 @@
 ;; emacs-mule would be better) with both Emacs 21 and XEmacs.
 (defconst bbdb-file-coding-system
   (if (fboundp 'coding-system-p)
-  (cond ((coding-system-p 'utf-8-emacs)
- 'utf-8-emacs)
+  (cond ((coding-system-p 'utf-8-unix)
+ 'utf-8-unix)
 (t 'iso-2022-7bit)))
   Coding system used for reading and writing `bbdb-file'.
 This should not be changed by users.)

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/


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/


quotes

2009-04-02 Thread Randy Bush
for an mua, i use wanderlust under emacs and use bbdb as the address
book maintainer.  

bbdb views 
 Bob Jones b...@jones.edu
as different from
'Bob Jones' b...@jones.edu
and asks me if i want to add/aka, which is annoying.

is there an option or hack where bbdb recognizes the over-quoting and
ignores it?

randy

--
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


regeneration reply addresses

2003-01-10 Thread Randy Bush
bbdb keeps nice email addresses of the form 

   User Name [EMAIL PROTECTED]

but i often get mail From: and Cc: [EMAIL PROTECTED], or worse some
microsloth mangled mess which has more quote marks and redundancy
than data, e.g.,

   '[EMAIL PROTECTED]' [EMAIL PROTECTED]

etc.

is there some mode i can set so that bbdb regens all To:/Cc:
addresses in a reply?

randy



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/



Re: Real name format and name completion

2002-08-17 Thread Randy Bush

similarly, i am trying to understand how to get completion
to use middle and last names.  i.e. for 

foo bar baz [EMAIL PROTECTED]

i seem only able to complete
   foo or
   fbb

while i would also like to complete if i only remember
   bar,
   baz, or
   feen

randy



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390
___
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/



Re: Real name format and name completion

2002-08-17 Thread Randy Bush

 similarly, i am trying to understand how to get completion
 to use middle and last names.  i.e. for
 foo bar baz [EMAIL PROTECTED]
 i seem only able to complete
foo or
fbb
 while i would also like to complete if i only remember
bar,
baz, or
feen
 Why not use BBDD's regexp searching and press 'm' when you find the
 record you're looking for?

because
  o does not work well for a Cc:, as opposed to To:  entry
  o more keystrokes
  o i'm part way through entering a .mailrc alias when i realize that i
don't really remember it well
  o ...

speaking of .mailrc, anyone have a .mailrc importer?  i have maintained my
.mailrc carefully, so it is all of the nice form

alias abbrev Janet Abbrev [EMAIL PROTECTED]

randy



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390
___
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/