Robert Fenk writes:
> On Monday, January 29 2001 23:00:21, Ronan Waide wrote:
> [...]
> > > many times. Now when I try to display/edit a user's notes by pressing
> > > ';', it doesn't come up. It displays the above message and exits. I
> > > couldn't get a meaningful stack trace also.
> > >
> > > Does this mean that some field(s) in my database is not being
> > > recognized? How do I go about finding this?
> [...]
> > What do you mean by a meaningful stack trace? The error you're seeing
> > occurs in bbdb-snarf.el, bbdb-extract-address-components, where it's
> > trying to parse a mail address.
>
> Could you please forward me an example mail which causes
> this problem!
>
> It has nothing to do with the fields in your BBDB, but with
> some wired header of an message (or some format I haven't
> though of ...).
>
> You may set bbdb-extract-address-component-handler to nil in
> order to get rid of the messages or set it to 'error if you
> want to get a stack trace.
This might be some weird interaction with Emacs 21. I downloaded
21.0.97 (the latest pretest) today and the behavior was even
worse. Now in addition to the error, VM doesn't display the messages
properly (I see the entire folder when I try to display a message by
hitting space in the summary buffer.)
I commented out (bbdb-insinuate-vm) for things to come back to normal
(in VM respects).
Here is the stack trace of the error. I am just opening my primary
inbox. The message that is currently being displayed (from Avtar Vasu)
has a BBDB record associated with the sender.
--
signal(error (" "))
error(" ")
funcall(error " ")
(let ((result ...)) (if (and ... ... ... ... ...) (progn ... ...)))
(cond ((equal bbdb-extract-address-component-handler nil)) ((equal
bbdb-extract-address-component-handler ...) (bbdb-warn "Cannot extract an address
component at \"%s\".
See `bbdb-extract-address-component-handler' for more information." adstring)) ((equal
bbdb-extract-address-component-handler ...) (message "Cannot extract an address
component at \"%s\"." adstring)) ((functionp bbdb-extract-address-component-handler)
(let ... ...)) (t (error "Cannot extract an address component at \"%30s\"" adstring)))
(if (and nomatch (not ignore-errors)) (cond (...) (... ...) (... ...) (... ...) (t
...)))
(while (not (string= "" adstring)) (setq adcom-regexp
bbdb-extract-address-component-regexps nomatch t) (while adcom-regexp (let ... ...
...)) (if (and nomatch ...) (cond ... ... ... ... ...)) (if nomatch (if ... ... ...)))
(let ((case-fold-search t) (fnadlist nil) adcom-regexp nomatch) (setq adstring
(replace-in-string adstring "[
]" " ")) (setq adstring (replace-in-string adstring " " " ")) (while (not
...) (setq adcom-regexp bbdb-extract-address-component-regexps nomatch t) (while
adcom-regexp ...) (if ... ...) (if nomatch ...)) (delete (quote ...) (nreverse
fnadlist)))
bbdb-extract-address-components("\"Avtar Vasu\" <[EMAIL PROTECTED]>")
(setq adlist (bbdb-extract-address-components
(vm-decode-mime-encoded-words-in-string header)))
(progn (setq adlist (bbdb-extract-address-components ...)) (while adlist (setq fn
... ad ...) (if ... ...) (if ... ... ...)))
(if header (progn (setq adlist ...) (while adlist ... ... ...)))
(when header (setq adlist (bbdb-extract-address-components ...)) (while adlist (setq
fn ... ad ...) (if ... ...) (if ... ... ...)))
(while headers (setq header (vm-get-header-contents msg ...)) (when header (setq
adlist ...) (while adlist ... ... ...)) (setq headers (cdr headers)))
(let ((headers bbdb/vm-get-from-headers) (fromlist nil) header adlist fn ad) (while
headers (setq header ...) (when header ... ...) (setq headers ...)) (nreverse
fromlist))
bbdb/vm-get-from([[#<marker at 843011 in inbox> #<marker at 843044 in inbox> nil
#<marker at 844297 in inbox> #<marker at 845173 in inbox> #<marker at 845174 in
inbox>] ["172" "172" nil #<marker at 13978 in inbox Summary> #<marker at 14052 in
inbox Summary> <<>> <-- nil "171" #<buffer inbox> 0
(<OF9361D486\.53A4F491-ON052569DC\.0081E9F4@db\.com>) nil nil nil nil nil nil
#<overlay from 13978 to 14052 in inbox Summary>] [nil nil nil nil nil nil nil nil nil]
["876" "Monday" "22" "January" "2001" "18:45:08" "-0500" "Avtar Vasu"
"[EMAIL PROTECTED]" "<[EMAIL PROTECTED]>" "20" "New
coordinates" "^From:" nil nil "1" "2001012223:45:08" "New coordinates" (number " "
mark " " thread-indent "[Avtar Vasu ] Mon Jan 22 20/876 \"New
coordinates\"
") nil nil] [nil <v> nil nil nil]] nil)
(let ((addrs ...) (bbdb-records ...) (processed-addresses 0)
(bbdb/vm-update-records-mode ...) rec) (mapc (lambda ... ... ...) addrs) (setq records
(nreverse records)) (bbdb/vm-encache-message msg records))
(and msg (let (... ... ... ... rec) (mapc ... addrs) (setq records ...)
(bbdb/vm-encache-message msg records)))
(if cache (setq records (if bbdb/vm-get-only-first-from-p ... ...)) (and msg (let
... ... ... ...)))
(let ((msg ...) (inhibit-local-variables nil) (enable-local-variables t)
(inhibit-quit nil) (bbdb/vm-offer-to-create offer-to-create) cache records) (if (not
bbdb/vm-offer-to-create) (setq cache ...)) (if cache (setq records ...) (and msg ...))
(and (not bbdb-silent-running) records (> ... 1) (display-message ... "Updating of
BBDB records finished")) records)
bbdb/vm-update-records(nil)
(let ((bbdb-gag-messages t) (bbdb-electric-p nil) (records ...) (bbdb-elided-display
...)) (if (and bbdb-use-pop-up records) (progn ...)) (if records (bbdb-display-records
records) (bbdb-undisplay-records)) (sit-for 0))
(save-excursion (let (... ... ... ...) (if ... ...) (if records ... ...) (sit-for
0)))
bbdb/vm-pop-up-bbdb-buffer()
run-hooks(vm-select-message-hook)
vm-run-message-hook([[#<marker at 843011 in inbox> #<marker at 843044 in inbox> nil
#<marker at 844297 in inbox> #<marker at 845173 in inbox> #<marker at 845174 in
inbox>] ["172" "172" nil #<marker at 13978 in inbox Summary> #<marker at 14052 in
inbox Summary> <<>> <-- nil "171" #<buffer inbox> 0
(<OF9361D486\.53A4F491-ON052569DC\.0081E9F4@db\.com>) nil nil nil nil nil nil
#<overlay from 13978 to 14052 in inbox Summary>] [nil nil nil nil nil nil nil nil nil]
["876" "Monday" "22" "January" "2001" "18:45:08" "-0500" "Avtar Vasu"
"[EMAIL PROTECTED]" "<[EMAIL PROTECTED]>" "20" "New
coordinates" "^From:" nil nil "1" "2001012223:45:08" "New coordinates" (number " "
mark " " thread-indent "[Avtar Vasu ] Mon Jan 22 20/876 \"New
coordinates\"
") nil nil] [nil <v> nil nil nil]] vm-select-message-hook)
ad-Orig-vm-preview-current-message()
vm-preview-current-message()
byte-code("\300 !?\302\211\211\211\211\300 !\203 \202\226
\206&