tags 462573 + pending thanks On Thu, Apr 10, 2008 at 01:52:14AM +0000, obi wrote: > I have the same problem: I did use the patch and presto mutt now > recognizes all my evolution contacts! Hope this patch will make it in > the debian package.
Same here and the patched worked well. Hence I've uploaded a NMU of lbdb fixing this bug to delayed-7. The NMU diff is attached to this mail. The fix will enter the archive in 7 days, the maintainer can override my upload as needed of course. Cheers. -- Stefano Zacchiroli -*- PhD in Computer Science ............... now what? [EMAIL PROTECTED],cs.unibo.it,debian.org} -<%>- http://upsilon.cc/zack/ (15:56:48) Zack: e la demo dema ? /\ All one has to do is hit the (15:57:15) Bac: no, la demo scema \/ right keys at the right time
diff -Nru lbdb-0.35.1/debian/changelog lbdb-0.35.1+nmu1/debian/changelog
--- lbdb-0.35.1/debian/changelog 2007-05-28 11:04:52.000000000 +0200
+++ lbdb-0.35.1+nmu1/debian/changelog 2008-04-12 17:45:28.000000000 +0200
@@ -1,3 +1,12 @@
+lbdb (0.35.1+nmu1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Fix m_evolution to work also with recent Evolution which exports cards
+ with different FN/EMAIL fields ordering. Thanks to Brian M. Carlson for
+ the patch (Closes: #462573).
+
+ -- Stefano Zacchiroli <[EMAIL PROTECTED]> Sat, 12 Apr 2008 17:44:04 +0200
+
lbdb (0.35.1) unstable; urgency=low
* New mail address of Brian Salter-Duke <[EMAIL PROTECTED]>.
diff -Nru /tmp/3bHXUv5if6/lbdb-0.35.1/m_evolution.sh.in /tmp/o4GzCPiYAN/lbdb-0.35.1+nmu1/m_evolution.sh.in
--- lbdb-0.35.1/m_evolution.sh.in 2006-01-15 15:27:01.000000000 +0100
+++ lbdb-0.35.1+nmu1/m_evolution.sh.in 2008-04-12 17:50:42.000000000 +0200
@@ -2,11 +2,12 @@
#
# -*-sh-*-
#
-# m_evoltuion - Evoltuion Address book module for lbdb
+# m_evolution - Evolution Address book module for lbdb
# Copyright (C) 2004 Guido Guenther <[EMAIL PROTECTED]>
# Copyright (C) 2004-2006 Roland Rosenfeld <[EMAIL PROTECTED]>
+# Copyright (C) 2008 brian m. carlson <[EMAIL PROTECTED]>
#
-# losely based on m_gnomecard
+# loosely based on m_gnomecard
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -31,11 +32,12 @@
if [ -x $EVOLUTION_ADDRESSBOOK_EXPORT ]; then
$EVOLUTION_ADDRESSBOOK_EXPORT 2>/dev/null \
| $AWK 'BEGIN {FS=":"; RS="\r\n"; name=""} \
- /^END:VCARD/ {name=""; fileas=""} \
+ /^END:VCARD/ { if ((name!="" || fileas!="") && email!="") \
+ printf("%s\t%s\tEV:%s\n",email,name,fileas); \
+ name=""; fileas=""; email=""} \
/^FN:/ {name=$2; } \
/^X-EVOLUTION-FILE-AS:/ {fileas=$2; gsub("\\\\", "", fileas)} \
- ( name!="" || fileas!="" ) && /^EMAIL[;:]/ \
- {email=$2; printf ("%s\t%s\tEV:%s\n",email,name,fileas)}'\
+ /^EMAIL[;:]/ {email=$2;}'\
| grep -ia "$@"
fi
}
signature.asc
Description: Digital signature

