From xemacs-m  Fri Mar 21 17:20:00 1997
Received: from steadfast.teradyne.com (steadfast.teradyne.com [131.101.1.200])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id RAA23672
	for <xemacs-beta@xemacs.org>; Fri, 21 Mar 1997 17:19:59 -0600 (CST)
Received: from engine.ecf.teradyne.com (engine.ecf.teradyne.com [131.101.192.6]) by steadfast.teradyne.com (8.7.1/8.7.1) with ESMTP id SAA24289; Fri, 21 Mar 1997 18:23:23 -0500 (EST)
Received: from midnight.eng.ecf.teradyne.com (midnight.ecf.teradyne.com [131.101.192.49]) by engine.ecf.teradyne.com (8.7.1/8.7.1) with SMTP id AAA03488; Sat, 22 Mar 1997 00:19:21 +0100 (MET)
Received: by midnight.eng.ecf.teradyne.com (SMI-8.6/SMI-SVR4)
	id AAA04659; Sat, 22 Mar 1997 00:19:22 +0100
Sender: aichner@ecf.teradyne.com
To: XEmacs Beta Mailing List <xemacs-beta@xemacs.org>
Cc: BBDB List <info-bbdb@cs.uiuc.edu>
Subject: Re: Using encrypted .bbdb not working anymore
References: <199703180959.KAA19353@midnight.eng.ecf.teradyne.com> <ocrd8sxtggk.fsf@spssunp.spspme.ml.com>
X-Face: 4[iHdXiTu\V3u[~\I)<f9HC);%~nG8`oUqv#uzvs6=\V{AjN6Sn
 c/qi;YLwRmEbt8Y*=j5n(urqY@chPh@J'D"QlqD!C8>*}#kYF[-tYl3VZga/HSOP|K,{L
 Rtu@f0y/=O&Cu}\:~d|P$JON?pn?j,&CnPb1z#/TL9bkAJwyol&a:SvYj-VYbM=Dtxhk9
 =w|R6U3_;SH&B<Mfy6Q%#
Mime-Version: 1.0 (generated by tm-edit 7.105)
Content-Type: text/plain; charset=ISO-8859-1
From: Adrian Aichner <aichner@ecf.teradyne.com>
Date: 22 Mar 1997 00:19:21 +0100
In-Reply-To: Colin Rafferty's message of 18 Mar 1997 09:36:27 -0500
Message-ID: <rxsrah8u93a.fsf@midnight.ecf.teradyne.com>
Lines: 159
X-Mailer: Gnus v5.4.28/XEmacs 20.1(beta8)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by xemacs.org id RAA23673

>>>>> "Colin" == Colin Rafferty <craffert@ml.com> writes:

Hello Colin,

I finally got around to carefully verify all this again...

    Colin> Adrian Aichner writes:
    >> I reported this problem against xemacs-20.0-b?? a while back.
    >> This problem is still around.

    >> Ever since some version of 20.0 .bbdb gets read in but the buffer
    >> is not of correct .bbdb file syntax. Also the lisp comments I put into 
    >> .bbdb are not shown in the decrypted buffer. 

    Colin> I used to encrypt my .bbdb, but I haven't since somewhere around 19.13.

    Colin> It sounds like your .bbdb was corrupted on a save.  If you decrypt it
    Colin> outside of emacs, does it come out correct?

Yes, I encrypted it under Soalris 2.5 from a csh like this and I can
decrypt it fine:


aichner@midnight(1) cd
/u/aichner
aichner@midnight(2) head -20 .bbdb
;
; This file was produced by:
; (cd /u/aichner/addrbook; \
; /u/aichner/pl/addrbook2bbdb.pl .AB .CD .EF .GH .IJ .KL .MN .OP .QR .ST .U=
V .WX .YZ)
;
; Then it has been merged with /u/aichner/.bbdb<1.4>.
;
; $Header: /u/aichner/RCS/.bbdb,v 1.3 1997/03/18 09:09:09 aichner Exp aichn=
er $
; "A  "a  "O  "o  "U  "u  "s
; 
;;; file-version: 2
;;; user-fields: (number birthday www Number)
[nil nil nil nil nil nil ("aichner") ((timestamp . "27 Feb 97")) nil]
[nil nil nil nil nil nil ("CIS@notes.teradyne.com") nil nil]
[nil nil nil nil nil nil ("lewisb@dt1s16.ra.intel.com") ((timestamp . "10 Dec 96")) nil]
[nil nil nil nil nil nil ("rritchie@britannia-life.co.uk") ((timestamp . " 9 Dec 96")) nil]
[nil nil nil nil nil nil ("evanie@earthstar.com") ((timestamp . " 6 Dec 96")) nil]
[nil nil nil nil nil nil ("daniel@earthstar.com") ((timestamp . "28 Nov 96")) nil]
[nil nil nil nil nil nil ("fiberlean@cybersyst.com") ((timestamp . " 8 Nov 96")) nil]
[nil nil nil nil nil nil ("1000@webspinerz.com") ((timestamp . " 6 Nov 96") (number . "1000")) nil]
aichner@midnight(3) mv .bbdb .bbdb.plain
aichner@midnight(4) crypt < .bbdb.plain > .bbdb
Enter key:

aichner@midnight(5) crypt < .bbdb > .bbdb.decrypted
Enter key:

aichner@midnight(6) diff .bbdb.plain .bbdb.decrypted
aichner@midnight(7) 

    Colin> If so, what happens if you just `find-file' .bbdb in a fresh XEmacs20?

This works fine (C-x C-f .bbdb):

Recent minibuffer messages (most recent first):

Auto-save off (in this buffer)
Decrypting .bbdb... done
Decrypting .bbdb...

and the .bbdb buffer's contents are correct.

    Colin> Are you using crypt++ or the other one?  I use crypt++.


I'm using the version which come with
emacs-version
"20.1 XEmacs Lucid (beta8)"
which is
crypt-version
"2.82"

and I require it via the standard etc/sample.emacs which does a
(require 'crypt)

However, when I do M-x bbdb RETURN colin I'm at the following loss:

Recent keystrokes:

h SPC d o e s SPC a RET C-x b s a m SPC SPC RET misc-user 
misc-user misc-user misc-user misc-user misc-user misc-user 
misc-user misc-user button1 button1up f16 C-x b RET 
button2 button2up RET C-x 1 C-x C-b C-x o C-n C-n C-n 
C-n d x C-x C-b C-x C-b C-s b b d b RET C-s C-s C-s 
C-s RET M-x b b d b RET a i c h n BS DEL BS DEL BS 
DEL BS DEL BS DEL c o l i n RET p a s s w o r d RET 
C-h l


Recent minibuffer messages (most recent first):

Invalid read syntax: "\"]\" in a list"
Parsing BBDB... (reading...)
Parsing BBDB...
Auto-save off (in this buffer)
Decrypting .bbdb... done
Decrypting .bbdb...

and the .bbdb buffer starts out as:
============================================================================
(
[nil nil nil nil nil nil ("aichner") ((timestamp . "27 Feb 97")) nil]
[nil nil nil nil nil nil ("lewisb@dt1s16.ra.intel.com") ((timestamp . "10 Dec 96")) nil]
============================================================================
and ends in
============================================================================
[nil nil nil "Zugauskunft M=FCnchen DB" (["Tel" "+49-89-19419"]) nil nil ((timestamp . "13 May 96")) nil]

)===========================================================================

    Colin> -- 
    Colin> Colin

Any hope?

Adrian


-- 
                            Adrian Aichner
                        Applications Engineer
  Teradyne GmbH
  Semiconductor Test Group    Telephone +49/89/41861(0)-208
  Dingolfinger Strae 2       Fax       +49/89/41861-217
  D-81673 MNCHEN             E-mail    aichner@ecf.teradyne.com

