Re: [Evolution-hackers] Setting up mailing list contact?
- From: Chris Toshok <toshok ximian com>
- To: Not Zed <notzed ximian com>
- Cc: JP Rosevear <jpr ximian com>, evolution-hackers ximian com
- Subject: Re: [Evolution-hackers] Setting up mailing list contact?
- Date: Tue, 17 Feb 2004 21:36:24 -0800
On Tue, 2004-02-17 at 18:51, Not Zed wrote:
> Weird api ... why not just set a GList of EABDestinations or an
> EABDestination itself (it can contain lists?) rather than a GList of xml
> exports of EABDestinations? :)
Because I didn't write the api :)
really the problem the xml solves should be solved by parameters on the
vcard attributes. that'll fix some interoperability problems, as well
as making it easier to deal with (it would work the way you thought it
did initially).
> (anyway thanks for the pointer jp, i fixed the pine importer)
>
> oh, what about doing aliases, can you reference other addressbook
> entries from mailing lists, or do you have to expand them and add them
> as lists?
>
> (e.g. one list references another by name)
You can do references. If you set things using
eab_destination_set_contact and eab_destination_set_book_uri (the latter
needs updating to use a source uid probably.) it'll encoded a reference
to the contact.
Unfortunately this is a disgusting part of the api. You have to make a
eab_destination_ call to resolve the linked contact. This should happen
for you automatically (using the ebook sync api), but it doesn't at the
moment. In fact, the code for eab_destination_use_contact doesn't even
work at the moment, since there isn't an e_contact_load_uri call.
I'll file a bug about this.
Chris
> On Tue, 2004-02-17 at 17:01 -0800, Chris Toshok wrote:
>
> > Yeah, this subject is a source of continuing depression (mostly because
> > I haven't had the time to fix it.)
> >
> > jpr's right, though, you need EABDestination.
> >
> > Chris
> >
> > On Mon, 2004-02-16 at 13:29, JP Rosevear wrote:
> > > On Wed, 2004-02-11 at 02:51, Not Zed wrote:
> > > > Lads,
> > > >
> > > > I'm trying to setup a contact list, but i'm not sure what format to do
> > > > it in/or have i hit a bug.
> > > >
> > > > If i set the email addresses as rfc822 addresses (simple strings is all
> > > > i've tried so far), as a list on a normal contact, they show up fine
> > > > (well, the first 3 do).
> > > >
> > > > But if i set E_CONTACT_IS_LIST on the list, i get xml errors:
> > > >
> > > > Entity: line 1: error: Start tag expected, '<' not found
> > > > foo bar baz foo net au
> > > > etc
> > > >
> > > > Bug?
> > >
> > > No, I believe you have to set xml (the destination stuff) for the email
> > > addresses, see:
> > >
> > > addressbook/gui/contact-list-editor/e-contact-list-editor.c:extract_info
> > >
> > > -JP
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]