Debian Bug report logs -
#459935
abook: export all email addresses to mutt aliases file
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Gerfried Fuchs <rhonda@debian.at>:
Bug#459935; Package abook.
(full text, mbox, link).
Acknowledgement sent to markus schnalke <meillo@marmaro.de>:
New Bug report received and forwarded. Copy sent to Gerfried Fuchs <rhonda@debian.at>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Package: abook
Version: 0.5.6-3
Severity: wishlist
The following command
abook --convert --infile ~/.abook/addressbook --informat abook
--outfile mutt.aliases_test --outformat mutt
does only export the first (primary) email address of each contact.
All further (secondary) email addresses are simply ignored.
If you want to generate mutt.aliases from abook, you have to create
multiple entries for one person in abook - for every email address
one.
Also, contacts without email addresses at all, are exported. This
leads to entries in the aliases file that are useless.
The attached patch is an example solution for both "problems".
meillo
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages abook depends on:
ii debconf [debconf-2.0] 1.5.11 Debian configuration management sy
ii libc6 2.3.6.ds1-13etch2 GNU C Library: Shared libraries
ii libncursesw5 5.5-5 Shared libraries for terminal hand
ii libreadline5 5.2-2 GNU readline and history libraries
abook recommends no packages.
-- debconf information:
abook/muttrc.d: true
[abook_export-mutt-all-email-addresses.diff (text/x-c, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Gerfried Fuchs <rhonda@debian.at>:
Bug#459935; Package abook.
(Thu, 22 Jul 2010 14:27:09 GMT) (full text, mbox, link).
Acknowledgement sent
to Gerfried Fuchs <rhonda@deb.at>:
Extra info received and forwarded to list. Copy sent to Gerfried Fuchs <rhonda@debian.at>.
(Thu, 22 Jul 2010 14:27:09 GMT) (full text, mbox, link).
Message #10 received at 459935@bugs.debian.org (full text, mbox, reply):
Hi!
First of all, sorry for the late response. I just recently got adopted
into the upstream team and am looking through patches now that make
sense to incorporate there directly instead of having them potential rot
within Debian alone. ;)
* markus schnalke <meillo@marmaro.de> [2008-01-09 17:37:11 CET]:
> Package: abook
> Version: 0.5.6-3
> Severity: wishlist
>
> The following command
>
> abook --convert --infile ~/.abook/addressbook --informat abook
> --outfile mutt.aliases_test --outformat mutt
>
> does only export the first (primary) email address of each contact.
> All further (secondary) email addresses are simply ignored.
> If you want to generate mutt.aliases from abook, you have to create
> multiple entries for one person in abook - for every email address
> one.
>
> Also, contacts without email addresses at all, are exported. This
> leads to entries in the aliases file that are useless.
I agree that these are both an annoyance and am taking a look at your
patch now and trying to bring it up to the 0.6.0 pre2 codebase, quite
some things have changed, so it isn't a straight forward patch.
I got a working version so far, though somehow I got for the rotated
email as realname all the email addresses, have to check again wether I
have adjusted something wrongly here, or wether there is some logic
error involved.
Also, the exit you did for no email did make the function quit on the
first addressbook entry that didn't had an email address attached to it
- I somehow guess this wasn't your attention. ;) Fixed that in my local
copy already (moved the "if (*email) {" level to the outermost part of
the loop).
Again, thanks for your suggestion, sorry for the delay, and a fix for
it will be soon get applied upstream.
Enjoy!
Rhonda
--
"Lediglich 11 Prozent der Arbeitgeber sind der Meinung, dass jeder
Mensch auch ein Privatleben haben sollte."
-- http://www.karriere.at/artikel/884/
Information forwarded
to debian-bugs-dist@lists.debian.org, Gerfried Fuchs <rhonda@debian.at>:
Bug#459935; Package abook.
(Thu, 22 Jul 2010 16:36:03 GMT) (full text, mbox, link).
Acknowledgement sent
to markus schnalke <meillo@marmaro.de>:
Extra info received and forwarded to list. Copy sent to Gerfried Fuchs <rhonda@debian.at>.
(Thu, 22 Jul 2010 16:36:03 GMT) (full text, mbox, link).
Message #15 received at 459935@bugs.debian.org (full text, mbox, reply):
[2010-07-22 16:25] Gerfried Fuchs <rhonda@deb.at>
> Hi!
Hoi
> First of all, sorry for the late response.
A response, a response, .... great! :-)
> I just recently got adopted
> into the upstream team and am looking through patches now that make
> sense to incorporate there directly instead of having them potential rot
> within Debian alone. ;)
Thanks for working on abook.
I don't use abook's export function anymore because I switched from
mutt to nmh and don't use an alias database there. But anyway the
issue surely needs a fix.
> * markus schnalke <meillo@marmaro.de> [2008-01-09 17:37:11 CET]:
> > Package: abook
> > Version: 0.5.6-3
> > Severity: wishlist
> >
> > The following command
> >
> > abook --convert --infile ~/.abook/addressbook --informat abook
> > --outfile mutt.aliases_test --outformat mutt
> >
> > does only export the first (primary) email address of each contact.
> > All further (secondary) email addresses are simply ignored.
> > If you want to generate mutt.aliases from abook, you have to create
> > multiple entries for one person in abook - for every email address
> > one.
> >
> > Also, contacts without email addresses at all, are exported. This
> > leads to entries in the aliases file that are useless.
>
> I agree that these are both an annoyance and am taking a look at your
> patch now and trying to bring it up to the 0.6.0 pre2 codebase, quite
> some things have changed, so it isn't a straight forward patch.
>
> I got a working version so far, though somehow I got for the rotated
> email as realname all the email addresses, have to check again wether I
> have adjusted something wrongly here, or wether there is some logic
> error involved.
>
> Also, the exit you did for no email did make the function quit on the
> first addressbook entry that didn't had an email address attached to it
> - I somehow guess this wasn't your attention. ;)
Surely not. Two and a half year ago, my C knowledge wasn't as good as
it is now. ;-)
> Fixed that in my local
> copy already (moved the "if (*email) {" level to the outermost part of
> the loop).
>
> Again, thanks for your suggestion, sorry for the delay, and a fix for
> it will be soon get applied upstream.
Thank you very much for this information mail; that's a great service.
I hope fixing it completely won't be too difficult. Unfortunately, I
can't offer my help, because I'm very busy at the moment. I would have
loved to help, but it's not possible currently.
Have good times.
meillo
Information forwarded
to debian-bugs-dist@lists.debian.org, Gerfried Fuchs <rhonda@debian.at>:
Bug#459935; Package abook.
(Fri, 23 Jul 2010 08:09:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Gerfried Fuchs <rhonda@deb.at>:
Extra info received and forwarded to list. Copy sent to Gerfried Fuchs <rhonda@debian.at>.
(Fri, 23 Jul 2010 08:09:03 GMT) (full text, mbox, link).
Message #20 received at 459935@bugs.debian.org (full text, mbox, reply):
tags 459935 + fixed-upstream
thanks
Hi!
* markus schnalke <meillo@marmaro.de> [2010-07-22 18:31:58 CEST]:
> [2010-07-22 16:25] Gerfried Fuchs <rhonda@deb.at>
> > First of all, sorry for the late response.
>
> A response, a response, .... great! :-)
:)
> > I just recently got adopted into the upstream team and am looking
> > through patches now that make sense to incorporate there directly
> > instead of having them potential rot within Debian alone. ;)
>
> Thanks for working on abook.
Thanks for using it!
> I don't use abook's export function anymore because I switched from
> mutt to nmh and don't use an alias database there. But anyway the
> issue surely needs a fix.
Right, and it got one now.
> I hope fixing it completely won't be too difficult. Unfortunately, I
> can't offer my help, because I'm very busy at the moment. I would have
> loved to help, but it's not possible currently.
http://abook.cvs.sourceforge.net/viewvc/abook/abook/ - see the last
changes to edit.c, edit.h and filter.c. I tested them and it looks fine.
Not sure though when we can get around to send out a new release,
though. There is some more cleanup pending for that.
Enjoy!
Rhonda
--
"Lediglich 11 Prozent der Arbeitgeber sind der Meinung, dass jeder
Mensch auch ein Privatleben haben sollte."
-- http://www.karriere.at/artikel/884/
Added tag(s) fixed-upstream.
Request was from Gerfried Fuchs <rhonda@deb.at>
to control@bugs.debian.org.
(Fri, 23 Jul 2010 08:09:11 GMT) (full text, mbox, link).
Marked as fixed in versions abook/0.6.0~pre2-3.
Request was from Stéphane Aulery <saulery@free.fr>
to control@bugs.debian.org.
(Sat, 29 Nov 2014 01:57:05 GMT) (full text, mbox, link).
No longer marked as fixed in versions abook/0.6.0~pre2-3.
Request was from Stéphane Aulery <saulery@free.fr>
to control@bugs.debian.org.
(Sat, 29 Nov 2014 01:57:08 GMT) (full text, mbox, link).
Added tag(s) moreinfo.
Request was from Denis Briand <debian@denis-briand.fr>
to control@bugs.debian.org.
(Mon, 28 Sep 2015 23:00:04 GMT) (full text, mbox, link).
Information stored
:
Bug#459935; Package abook.
(Mon, 28 Sep 2015 23:00:09 GMT) (full text, mbox, link).
Acknowledgement sent
to Denis Briand <debian@denis-briand.fr>:
Extra info received and filed, but not forwarded.
(Mon, 28 Sep 2015 23:00:09 GMT) (full text, mbox, link).
Message #33 received at 459935-quiet@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
tags 459935 moreinfo
thanks
Hello Rhonda,
Bug is tagged "fixed-upstream".
Is this patch is merged into debian version?
Can we close this bug?
regards
Denis
[signature.asc (application/pgp-signature, inline)]
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Tue Jan 9 19:35:58 2018;
Machine Name:
beach
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.