Here is a bugfix for the patch that I sent in previously to add the
bbdb-extract-auxiliary-field-value function.  It used to go into an
infinite loop for a message with an empty body (how embarrassing!),
now it doesn't.

The previous patch was in the message:

        Message-Id: <[EMAIL PROTECTED]>
        From: [EMAIL PROTECTED] (Rod Whitby)
        To: Joe Wells <[EMAIL PROTECTED]>, Jamie Zawinski <[EMAIL PROTECTED]>
        Cc: BBDB Mailing List <[EMAIL PROTECTED]>
        Subject: Re: Patch to bbdb-hooks.el to allow the use of pseudo-headers.
        Date: Thu, 5 Aug 93 15:46:42 EST

===================================================================
RCS file: /home/bing/rwhitby/src/elib/bbdb/RCS/bbdb-hooks.el,v
retrieving revision 1.2
diff -u -r1.2 /home/bing/rwhitby/src/elib/bbdb/bbdb-hooks.el
--- 1.2 1993/08/10 05:04:41
+++ /home/bing/rwhitby/src/elib/bbdb/bbdb-hooks.el      1993/08/24 23:49:01
@@ -124,7 +124,8 @@
   ;; Skip to the start of the body
   (re-search-forward "\n\n" (point-max) 'move)
   ;; Skip any extra empty lines
-  (while (looking-at "^$")
+  (while (and (looking-at "^$")
+             (not (eobp)))
     (forward-line 1))
   ;; Extract the auxiliary field
   (bbdb-extract-field-value field-name)
===================================================================

--
--------------------------------------------- _--_|\  |
Rod Whitby ([EMAIL PROTECTED])    /      \ |
Canon Information Systems Research Australia \_.--._/ |
1 Thomas Holt Drive, North Ryde, N.S.W., 2113.     v  |

Reply via email to