https://bugs.freedesktop.org/show_bug.cgi?id=57873
Priority: medium
Bug ID: 57873
CC: [email protected]
Assignee: [email protected]
Summary: mork (Thunderbird / Icedove / Seamonkey / ...) multi
address books multi profile support
Severity: enhancement
Classification: Unclassified
OS: All
Reporter: [email protected]
Hardware: All
Status: UNCONFIRMED
Version: unspecified
Component: Database
Product: LibreOffice
Thunderbird can have multiple profiles which all can have multiple address
books. Extend our mork-based driver so that it can access all of them.
Extracts from past email to the Mailing list about this:
"sdbc:address:thunderbird" would get the abook.mab from the default
profile, but "sdbc:address:thunderbird:/home/user/backup/blah.mab"
would open file /home/user/backup/blah.mab
This would be useful to open .mab files that come from backups, that
are copied from other computers or other users, etc.
Actually, I can see another specific case, which is to access other
profiles than the default. It would be nice not to hard-code the full
path there, so maybe something like
sdbc:address:thunderbird:profile:FOO
to open the profile called "FOO" in profiles.ini?
In connectivity/source/drivers/mork/MConnection.cxx, I see:
OUString defaultProfile =
m_pProfileAccess->getDefaultProfile(::com::sun::star::mozilla::MozillaProductType_Thunderbird);
Not sure what object m_pProfileAccess is, but if it has something like
a method
getNamedProfile(::com::sun::star::mozilla::MozillaProductType_Thunderbird,
"FOO")
we should be in business?
So maybe change the "file path" case to
sdbc:address:thunderbird:file:/home/user/backup/blah.mab
for more clarity?
> At least I am not aware how you can open backup address book in
> thunderbird?
> Only thing that worked for me is to replace the deafult one from the
> user profile.
There is a bit better. In Icedove 3.0.11:
Press button "Address Book" or CTRL-SHIFT-b or menu tools / Address Book
In new window, menu File / New / Address Book
Enter name "My backup from tape/other computer/..."
OK
This creates a new .mab file; overwrite *that* one instead of the
default one :)
This begs the question: can our Icedove/Thunderbird integration open
these other .mab files "easily"? Does the user have to give the
filename (abook-1.mab, abook-2.mab, abook-3.mab, ...) or the name?
Sadly, the name-to-filename mapping is stored in prefs.js:
user_pref("ldap_2.servers.jsddshjds.description", "my backup from tape
12/2/2012");
user_pref("ldap_2.servers.jsddshjds.dirType", 2);
user_pref("ldap_2.servers.jsddshjds.filename", "abook-1.mab");
Which means yet another file to parse for the full completely
user-friendly case of "show the same list as Thunderbird, let the user
choose-by-click one of them" :-| And also that's even more of an
"internal implementation detail of Icedove/Thunderbird" than the .mab
file format is.
If we do that, we should store (in the sdbc: URL) the *internal* name
(in my example: "jsddsgjds"), which is basically (an unification /
drop spaces version of) the name the address book had at creation
time, but that does not change when the address book is renamed.
Or (I'm thinking out loud here) the filename, e.g. abook-4.mab... That
also does not change, but may be easier to use. On the other hand, a
disadvantage is that if the address book is deleted, the filename gets
recycled by the next address book to be created, so suddenly we'd be
silently opening another address book.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs