From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: George McNinch Newsgroups: gmane.emacs.bugs Subject: bug#21971: 25.1.50; EUDC conversion to BBDB 3 incompatibility Date: Sun, 22 Nov 2015 10:00:02 -0500 Message-ID: <82610ucc5p.fsf@jobim-via-gmail.com> References: <82egfjs9v1.fsf@jobim-via-gmail.com> Reply-To: George McNinch NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1448204487 11849 80.91.229.3 (22 Nov 2015 15:01:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Nov 2015 15:01:27 +0000 (UTC) Cc: George McNinch , 21971@debbugs.gnu.org To: Thomas Fitzsimmons Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 22 16:01:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a0W8c-0001HF-O3 for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Nov 2015 16:01:10 +0100 Original-Received: from localhost ([::1]:56384 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0W8c-0002dv-RQ for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Nov 2015 10:01:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0W8Y-0002dF-Me for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2015 10:01:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0W8U-0000RH-J2 for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2015 10:01:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58592) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0W8U-0000RD-FY for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2015 10:01:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a0W8U-0001PY-BJ for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2015 10:01:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <82egfjs9v1.fsf@jobim-via-gmail.com> Resent-From: George McNinch Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Nov 2015 15:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21971 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21971-submit@debbugs.gnu.org id=B21971.14482044125299 (code B ref 21971); Sun, 22 Nov 2015 15:01:02 +0000 Original-Received: (at 21971) by debbugs.gnu.org; 22 Nov 2015 15:00:12 +0000 Original-Received: from localhost ([127.0.0.1]:48299 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a0W7e-0001NO-Tk for submit@debbugs.gnu.org; Sun, 22 Nov 2015 10:00:11 -0500 Original-Received: from mail-qk0-f181.google.com ([209.85.220.181]:34112) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a0W7Z-0001Ms-4N for 21971@debbugs.gnu.org; Sun, 22 Nov 2015 10:00:07 -0500 Original-Received: by qkfo3 with SMTP id o3so50730198qkf.1 for <21971@debbugs.gnu.org>; Sun, 22 Nov 2015 07:00:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:user-mail-address:reply-to:date :message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=rYLKzmsA6UvwE3HnAuEG4+dB5Bjb9fkpzFTdbzkxO9I=; b=gh9GQNgHYTbUxQkrO4uEmArX1jctEebqaNiGeUkZp+LoMQWVBufG0DyOZjKapFkpke 36hzopHnkO6l/sjyD3aPk3f2b/cxQdpxJWr1Bzf+UX67jClqprshStO+OnMNlXuKwPu/ tu0X4DAxmQGcXqa5uy1dSVzBZD7FTaOXheUbQfnyZsVCSn4fHwVcG1HJEivrh/2Yf9MA T3Tlve80HvWyRFxY4X2bKGVTnoH2Cp8nk6s/SiYBE73lkvkMbEqUZapLX90rJ5yp4wBg T87n3nBJELmNOPLDdpMUw8qZmxbPWYIFsnK6MgPQ6Pmtm7mH6WO3I1YYEFhmN1PJxxji LNVQ== X-Received: by 10.55.42.170 with SMTP id q42mr14052714qkq.86.1448204404331; Sun, 22 Nov 2015 07:00:04 -0800 (PST) Original-Received: from jobim (209-6-122-78.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com. [209.6.122.78]) by smtp.gmail.com with ESMTPSA id u77sm1986529qki.8.2015.11.22.07.00.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Nov 2015 07:00:03 -0800 (PST) User-Mail-Address: gmcninch@gmail.com User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:109062 Archived-At: Hi Thomas, TF> With your eudc-ldap-bbdb-conversion-alist workaround still TF> enabled, can you try the attached patch to see if it fixes TF> exporting for you? Indeed, this works fine for me; thanks! >> Note also that the setting of eudc-ldap-bbdb-conversion-alist I >> made above isn't quite the original value. If I instead use the >> original value, e.g. by instead using the original value >>=20 >> [which amounts to: >>=20 >> (setq eudc-ldap-bbdb-conversion-alist `((name . cn) (net . mail) >> (address eudc-bbdbify-address postaladdress "Address") (phone >> (eudc-bbdbify-phone telephonenumber "Phone"))) >>=20 >>=20 >> in the initialization of EUDC], >>=20 >> then when I press "b" on a record in the *Directory Query >> Results* buffer, I get the error >>=20 >> eudc-bbdbify-phone: Symbol=E2=80=99s function definition is void: >> bbdb-parse-phone-number TF> OK, this seems like a separate issue. I haven't investigated it TF> yet. Right; should I have made a separate report, or is this OK?=20=20 -------------------------------------------- By the way: I wonder: if bbdb really now uses "mail" instead of "net", I'd think that (?) that eudc-ldap-bbdb-conversion-alist should instead read: (setq eudc-ldap-bbdb-conversion-alist `((name . cn) (mail . mail) (address eudc-bbdbify-address postaladdress "Address"))) But that doesn't seem to work (I tried... I get then BBDB record with *no* mail field at all). In general, I find it difficult to work out what can be used in that alist. E.g. it seems that there is a key symbol ou for the record passed to eudc-create-bbdb-record. So I tried adding the pair (Organizations . ou) to that alist, but it doens't seem to populate the "right part of the BBDB record" - in fact, the BBDB record gets a new line with an Organizations field, but it makes the BBDB unhappy (it eventually complains of an "illegal field" or something). I'd hoped to populate the bit that shows up to the right of the name when displaying the BBDB record, which I thought was called "Organizations". I also tried (organization . ou) and (company . ou) and maybe a few others, but nothing seemed to work and guessing doesn't seem so healthy, and looking at the code in eudc-export.el doesn't seem like Well, this is a distraction, and only tangentially related to the patch, but it does point out that it'd be nice to have a clearer definition of the fields on both sides of this conversion...! Best, george --=20 + + + George McNinch =20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 + + + http://gmcninch.math.tufts.edu=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20