[jitsi-dev] Thunderbird addressbook plugin


#1

Hey

I wrote a plugin to query Thunderbird's address book. It's based on a
library to read the brainfucked Mork database format (I don't use that word
lightly), so it's definitely not going to be 100% compatible to Thunderbird,
but it should do the job for most cases.

I'd appreciate if I'd get some feedback before investing some more time or
committing it as is. Here's how to integrate it into the source:

- Apply patches in order
- copy jmork-1.0.5-SNAPSHOT.jar -> lib/installer-exclude
- Merge and adapt sample-config.txt with your sip-communicator.properties
(someone would have to write a config form)
- ant make && ant run

Source of (patched) jmork is at https://github.com/ibauersachs/jmork, built
with "mvn package".

Regards,
Ingo

0003-Simplify-contact-detail-creation-code.patch (3.97 KB)

0004-Add-ContactSource-plugin-for-Thunderbird.patch (33 KB)

0001-Add-constructor-without-sub-categories.patch (1.39 KB)

0002-Add-convenience-method-to-add-supported-OpSet.patch (1.19 KB)

jmork-1.0.5-SNAPSHOT.jar (43.2 KB)

sample-config.txt (438 Bytes)


#2

Hey

I wrote a plugin to query Thunderbird's address book. It's based on a
library to read the brainfucked Mork database format (I don't use that word
lightly), so it's definitely not going to be 100% compatible to Thunderbird,
but it should do the job for most cases.

Sorry, I can't help with testing/feedback but I at least want to say
that this work is very appreciated! I know many people who will be happy
to be able to use their TB addressbook contacts.

thanks

karel

···

On 03/13/2013 06:33 PM, Ingo Bauersachs wrote:

I'd appreciate if I'd get some feedback before investing some more time or
committing it as is. Here's how to integrate it into the source:

- Apply patches in order
- copy jmork-1.0.5-SNAPSHOT.jar -> lib/installer-exclude
- Merge and adapt sample-config.txt with your sip-communicator.properties
(someone would have to write a config form)
- ant make && ant run

Source of (patched) jmork is at https://github.com/ibauersachs/jmork, built
with "mvn package".

Regards,
Ingo


#3

I was thinking about similar things, but gave up because of exactly the
same problem with this b*f Mork database. I solved the problem for now
by going the other way round and dialing via Jitsi from Thunderbird.
Here is what I did on my (X)Ubuntu box:

1. Edit /usr/share/applications/jitsi.desktop and modify the line
staring with "Exec" that it reads:
Exec=jitsi %u

2. Open /usr/share/applications/defaults.list for editing
Add the following line to the end of the file:
x-scheme-handler/sip=jitsi.desktop
This registers a URL handler that dials sip: URLs through jitsi. You can
use another handler if you want (callto:), but you will have to
configure Telify in step 4. accordingly.

3. Start Thunderbird and install the Telify extension - restart TB

4. In Thunderbird open the Telify preferences (Tools/Telify/Preferences)
and set "Used Protocol" to sip:

Now all phonenumbers in the addressbook are automatically converted to
URLs that dial the number in Jitsi when Jitsi is running.

all the best, Mark

···

On 13/03/13 21:33, Ingo Bauersachs wrote:

Hey

I wrote a plugin to query Thunderbird's address book. It's based on a
library to read the brainfucked Mork database format (I don't use that word
lightly), so it's definitely not going to be 100% compatible to Thunderbird,
but it should do the job for most cases.

I'd appreciate if I'd get some feedback before investing some more time or
committing it as is. Here's how to integrate it into the source:

- Apply patches in order
- copy jmork-1.0.5-SNAPSHOT.jar -> lib/installer-exclude
- Merge and adapt sample-config.txt with your sip-communicator.properties
(someone would have to write a config form)
- ant make && ant run

Source of (patched) jmork is at https://github.com/ibauersachs/jmork, built
with "mvn package".

Regards,
Ingo


#4

[...]

Now all phonenumbers in the addressbook are automatically converted to
URLs that dial the number in Jitsi when Jitsi is running.

A dumb question: Are they converted only on TB interface or are they
actually converted in the address book database? What I want to know is
whether in case that I am synchronizing the address book with my phone
the numbers will be still synchronized in the same (phone number) format.

thanks

karel

···

On 03/15/2013 08:50 AM, M Dammer wrote:

all the best, Mark

On 13/03/13 21:33, Ingo Bauersachs wrote:

Hey

I wrote a plugin to query Thunderbird's address book. It's based on a
library to read the brainfucked Mork database format (I don't use that word
lightly), so it's definitely not going to be 100% compatible to Thunderbird,
but it should do the job for most cases.

I'd appreciate if I'd get some feedback before investing some more time or
committing it as is. Here's how to integrate it into the source:

- Apply patches in order
- copy jmork-1.0.5-SNAPSHOT.jar -> lib/installer-exclude
- Merge and adapt sample-config.txt with your sip-communicator.properties
(someone would have to write a config form)
- ant make && ant run

Source of (patched) jmork is at https://github.com/ibauersachs/jmork, built
with "mvn package".

Regards,
Ingo


#5

good you asked for clarification: The numbers are only converted jut in
time on the TB interface. I just checked: The addressbook database is
still clean. And the moment you deactivate the extension you have the
normal (non-url) interface back. I will post my suggestion with this
correction on the userlist as well now.
Mark

···

On 15/03/13 13:26, Karel Novotny wrote:

On 03/15/2013 08:50 AM, M Dammer wrote:

[...]

Now all phonenumbers in the addressbook are automatically converted to
URLs that dial the number in Jitsi when Jitsi is running.

A dumb question: Are they converted only on TB interface or are they
actually converted in the address book database? What I want to know is
whether in case that I am synchronizing the address book with my phone
the numbers will be still synchronized in the same (phone number) format.

thanks

karel

all the best, Mark

On 13/03/13 21:33, Ingo Bauersachs wrote:

Hey

I wrote a plugin to query Thunderbird's address book. It's based on a
library to read the brainfucked Mork database format (I don't use that word
lightly), so it's definitely not going to be 100% compatible to Thunderbird,
but it should do the job for most cases.

I'd appreciate if I'd get some feedback before investing some more time or
committing it as is. Here's how to integrate it into the source:

- Apply patches in order
- copy jmork-1.0.5-SNAPSHOT.jar -> lib/installer-exclude
- Merge and adapt sample-config.txt with your sip-communicator.properties
(someone would have to write a config form)
- ant make && ant run

Source of (patched) jmork is at https://github.com/ibauersachs/jmork, built
with "mvn package".

Regards,
Ingo