MyPhoneExplorer and Thunderbird under Linux

For user who dont speak german please use this part of my forum
Pastim
Beiträge: 85
Registriert: Fr 17. Jun 2011, 22:56

Beitrag von Pastim »

Mister_slowhand hat geschrieben:I've had the same error you had.

but I run a 64bits system, as MPE is installed in "C:\Program Files (x86)\MyPhoneExplorer'.

And just like you, I started working out of nowhere after a while ??
Maybe it's about the authorisation you give to the plug-in in Thunderbird ? On first run, there is a confirmation asked in TBird, I don't see it in the Linux install ?

The only thing that will be missing on Linux would be the notes sync ? I use Davical to sync everything (Android syncs events and tasks through MPE to keep the categories...), but I haven't found a vNotes server yet.
I haven't tried downloading other stuff, like SMS and photos, since I've hardly used those features. Given how far this process has already got it would be good if a complete set of syncs could be included at some point.

I haven't looked at the basic setup instructions, 32 or 64 bit, wine dlls required, process for registering mpe DLLs and so on for a while. I also gave up on using USB and use a fixed IP or wifi now, which is simpler and more reliable. I wonder if the instructions need a clean-up and made more up to date for the latest mpe?
Mister_slowhand
Beiträge: 13
Registriert: Mi 10. Mai 2017, 15:19

Beitrag von Mister_slowhand »

- Photos, file scripts, they work great, even if the directory synced isn't in c: but somewhere in /
- call log is ok, as notes, all local.
- Calendar seems ok, except that retrieving data fails sometimes (just as retrieving the calendars at first failed, can't explain)
- contacts work but TBird has some limitations compared to Outlook and Android, so mapping is complicated if you have contacts with many phone numbers. That was just a try, as I use the carddav sync right from my phone to davical.
- Tasks is dangerous as the mapping between device and TBird of recuring tasks looks like it uses the "random" function.

Anyway, this last two points ain't new and are caused by TBird, Linux or Windows, it behaves the same.

SMS sync just plain doesn't work, it hangs after downloading the whole list (76000+ SMS) and never writes anything on the disk. I guess there's somerthing wrong with my wine installation.
TreeNode
Beiträge: 8
Registriert: Fr 12. Mai 2017, 19:59

Beitrag von TreeNode »

Sorry I had to ask, but which version of wine do you use?
I had the same problem sync the sms with wine 1.6.9 (installed with winetricks). Therefore I updated wine to stable 2.0.1
Pastim
Beiträge: 85
Registriert: Fr 17. Jun 2011, 22:56

Beitrag von Pastim »

TreeNode hat geschrieben:Sorry I had to ask, but which version of wine do you use?
I had the same problem sync the sms with wine 1.6.9 (installed with winetricks). Therefore I updated wine to stable 2.0.1
I'm on wine 2.4.0 (ubuntu 17.04). I tried archiving sms to my desktop and it works.
Mister_slowhand
Beiträge: 13
Registriert: Mi 10. Mai 2017, 15:19

Beitrag von Mister_slowhand »

I'm using Wine-stable package from ubuntu 17.04, version is 1.8.7.
In a 64 bits system, I didn't create a 32bit wineprefix. Maybe...
I can break it and test the other way, I'll try when I get a few minutes.
Mister_slowhand
Beiträge: 13
Registriert: Mi 10. Mai 2017, 15:19

Beitrag von Mister_slowhand »

Ok, I killed everything, installed a new wineprefix 32bits, re-installed the whole thing and I let the SMS sync run... It's been 48h and still working ! I don't know what it does, takes 25% CPU (this mean 1 core only, it's a 4vCPU VM), 15% to MyPhoneExplorer, 10% Wine process. No disk activity at all, no RAM usage increase (125MB used by MPE).
76000 SMS in my phone, on Windows the SMS.dat file is 15MB.
Before that, I've checked that it works for SMS, as MPE showed received SMS and created the SMS.dat file.
I guess there are too many to handle in this configuration ?

I don't care about this machine running, I'll let it run and we'll see !
Pastim
Beiträge: 85
Registriert: Fr 17. Jun 2011, 22:56

Beitrag von Pastim »

Mister_slowhand hat geschrieben:Ok, I killed everything, installed a new wineprefix 32bits, re-installed the whole thing and I let the SMS sync run... It's been 48h and still working ! I don't know what it does, takes 25% CPU (this mean 1 core only, it's a 4vCPU VM), 15% to MyPhoneExplorer, 10% Wine process. No disk activity at all, no RAM usage increase (125MB used by MPE).
76000 SMS in my phone, on Windows the SMS.dat file is 15MB.
Before that, I've checked that it works for SMS, as MPE showed received SMS and created the SMS.dat file.
I guess there are too many to handle in this configuration ?

I don't care about this machine running, I'll let it run and we'll see !
We live in different ways - I currently have 3 SMS in my phone :D I can't imagine what your system is doing.

I have loads on emails on my desktop, none on my phone.
matthias
Beiträge: 110
Registriert: Sa 8. Nov 2008, 13:04

Beitrag von matthias »

Hey guys,

I tried to set up the Thunderbird sync without installing the windows version of Thunderbird. But if i try to set the sync up in the settings i get the error message that the folder strucure cannot be listed.
And in the console I get the following error:

Code: Alles auswählen

C:\Program Files\MyPhoneExplorer>/usr/lib/thunderbird/thunderbird -mpe list-abooks 
'/usr/lib/thunderbird/thunderbird -mpe list-abooks' konnte nicht als interner oder externer Befehl
oder als Batch-Skript erkannt werden.
Saying, that its neither a command nor a batch script.

Any suggestions on it?

By the way: I don't have a

Code: Alles auswählen

/usr/lib/thunderbird/thunderbird.sh
therefore I omitted the ".sh"
matthias
Beiträge: 110
Registriert: Sa 8. Nov 2008, 13:04

Beitrag von matthias »

I just tried it with an 64-bit prefix, because in the 32bit using "wineconsole cmd" there was an error message, when i tried to run the "thunderbird.bat" saying that it is not allowed to run a 64bit application from within an 32bit environment. Which makes sense..
And now with the 64bit I am able to start thunderbird from the wineconsole, but the sync still does not work..
Even when using

Code: Alles auswählen

start /unix /usr/bin/thunderbird
within the "thunderbird.bat"
Pastim
Beiträge: 85
Registriert: Fr 17. Jun 2011, 22:56

Beitrag von Pastim »

matthias hat geschrieben:I just tried it with an 64-bit prefix, because in the 32bit using "wineconsole cmd" there was an error message, when i tried to run the "thunderbird.bat" saying that it is not allowed to run a 64bit application from within an 32bit environment. Which makes sense..
And now with the 64bit I am able to start thunderbird from the wineconsole, but the sync still does not work..
Even when using

Code: Alles auswählen

start /unix /usr/bin/thunderbird
within the "thunderbird.bat"
Sorry, I don't have a clue I'm afraid.
Mister_slowhand
Beiträge: 13
Registriert: Mi 10. Mai 2017, 15:19

Beitrag von Mister_slowhand »

Pastim hat geschrieben: We live in different ways - I currently have 3 SMS in my phone :D I can't imagine what your system is doing.

I have loads on emails on my desktop, none on my phone.
Say that I don't delete anything so it adds up with years ! Same with my agenda that has over 8000 events.
MPE handles that fine, in native Windows environment I mean.

My initial sync never finished (well I killed it after 3 full days, seeing that MPE worked as the memory load diminished, there must be some performance issues).
I could make it work : copied the SMS.dat (and some others) from my Windows installation and the sync finished in 10 minutes (no new SMS in between).
But after that, it's no stable : sometimes it syncs, sometimes it won't finish, sometimes it can't even retrieve the messages.

Weird thing is, it was slow but worked in my previous install, using playonlinux and a more recent wine version.
Mister_slowhand
Beiträge: 13
Registriert: Mi 10. Mai 2017, 15:19

Beitrag von Mister_slowhand »

matthias hat geschrieben:Hey guys,

I tried to set up the Thunderbird sync without installing the windows version of Thunderbird. But if i try to set the sync up in the settings i get the error message that the folder strucure cannot be listed.
And in the console I get the following error:

Code: Alles auswählen

C:\Program Files\MyPhoneExplorer>/usr/lib/thunderbird/thunderbird -mpe list-abooks 
'/usr/lib/thunderbird/thunderbird -mpe list-abooks' konnte nicht als interner oder externer Befehl
oder als Batch-Skript erkannt werden.
Saying, that its neither a command nor a batch script.

Any suggestions on it?

By the way: I don't have a

Code: Alles auswählen

/usr/lib/thunderbird/thunderbird.sh
therefore I omitted the ".sh"
Hi,

What is your Linux environment ? 64 bits native ?

That's strange you don't have the thunderbird.sh, but it's not a big deal, as without specific arguments, it ends up by :

Code: Alles auswählen

 exec $MOZ_LIBDIR/$EXE "$@"
LIBDIR is set to "/usr/lib/thunderbird", and exe is "thunderbird"

As you could see, we all experienced the "folder structure cannot be listed" error at some point. I don't know why it disappearred, but it's gone after several tries, both calendar and contacts.

I have a 64 bits Linux, 64 bits TBird v52, with a 32 bits prefix in Wine, and it works.
matthias
Beiträge: 110
Registriert: Sa 8. Nov 2008, 13:04

Beitrag von matthias »

Sorry, to not replying for so long. I gave up and totally forgot about it.

I have a 64bits Linux and I think I am running a 64bits Thunderbird.

Do you all run it in the standard wine prefix? (I use a custom one. Like ".wineMPE")
matthias
Beiträge: 110
Registriert: Sa 8. Nov 2008, 13:04

Beitrag von matthias »

I finally got it working. :D My "thunderbird.bat" contains now:

Code: Alles auswählen

start /unix /usr/bin/thunderbird %1 %2
Pastim
Beiträge: 85
Registriert: Fr 17. Jun 2011, 22:56

Beitrag von Pastim »

I have just done a clean installation of ubuntu 18.04 and redid everything.
In the process I installed the new mpe 1.8.9. I had to obtain and register a new dll = Msvbvm60.dll. It would be useful if this could be included in the download, since winetricks doesn't seem to know about it.

I also managed to get it installed linked to the linux thunderbird as discussed in previous posts.

I can't say 1.8.9 seems any quicker, but it does work, which is all that really matters to me.

Thanks to all at FJ Software.
matthias
Beiträge: 110
Registriert: Sa 8. Nov 2008, 13:04

Beitrag von matthias »

Unfortunately, the sync stopped working for me.it always says that the folders cannot be listed and in the logfile appears the following:

Code: Alles auswählen

 Error in StartFritzboxSearch: 429 ActiveX component can't create object
Does anybody experience the same and probably know a workaround?

btw: I'm on Manjaro (Arch) with wine 3.15
matthias
Beiträge: 110
Registriert: Sa 8. Nov 2008, 13:04

Beitrag von matthias »

Does anybody know how to find out what could be the problem?
Pastim
Beiträge: 85
Registriert: Fr 17. Jun 2011, 22:56

Beitrag von Pastim »

TreeNode hat geschrieben:It is a it of copy an paste. I hope the instructions are clear, if not ask.
As of Thunderbird 60- these instructions (from Sat May 13, 2017) don't seem to work any more. There isn't even a directory "myphoneexplorer@fjsoft.at " under extensions.

mpe says it now can't see any of the thunderbird folders.
Pastim
Beiträge: 85
Registriert: Fr 17. Jun 2011, 22:56

Beitrag von Pastim »

Having found I couldn't get MPE to work with Thunderbird 60 in the way I used to, I have got it working again, on ubuntu 18.04, with MPE 1.8.11. I started with a fresh 32 bit wine directory (Windows 7).

I had been using the really neat method described by TreeNode on May 13 2017. However, I couldn't find a way to get it working with Thunderbird 60, so reverted to the old method. I'll briefly summarise what I needed to do.

0. Backup the whole linux Thunderbird directory - more than once depending on how paranoid you are, and then stop it (so no new changes get made).
1. Install Windows Thunderbird prior to version 60 (I used version 45) under wine
2. Start it, don't create an account.
3. Make sure the lightning extension is installed.
4. Open the Address book (is empty) and Calendar (also empty).
5. Close wine Thunderbird.
6. Fix the calendar access for the wine Thunderbird as follows:
◦ in the wine Thunderbird profile directory "cp prefs.js prefs.js.old" (i.e. take a backup)
◦ in the linux Thunderbird profile directory, use an editor to copy all lines in pref.js starting with "calendar."
◦ in the wine Thunderbird profile directory edit prefs.js and replace all "calendar." lines with the lines just copied
7. In the wine Thunderbird profile directory (where 'xxxxxxxx' is the profile directory id, 'me' is my home directory name, and 'abook-n.mab' is the current linux address book that I want to synchronise - I have several address books but only one to sync with my mobile):
◦ mv storage.sdb storage.sdb.old
◦ mv abook.mab abook.mab.old
◦ ln -is /home/me/.thunderbird/xxxxxxxx.default/storage.sdb storage.sdb
◦ ln -s /home/me/.thunderbird/xxxxxxxx.default/abook-n.mab abook.mab
8. Then in the calendar-data directory
◦ mv local.sqlite local.sqlite.old
◦ ln -is /home/me/.thunderbird/xxxxxxxx.default/calendar-data/local.sqlite local.sqlite
9. You have now got the wine Thunderbird to use the address book and calendar files created by the linux Thunderbird
10. Install MPE in the normal linux way, which I won't repeat.
11. Start MPE and get as far as getting it to install the MPE Thunderbird extension (to the wine Thunderbird).
12. Stop MPE for now.
13. Start the wine Thunderbird, and make sure the address book shows my linux addresses. Ditto the calendar. I had to stop and restart a few times, I'm not sure why, but eventually the wine Thunderbird was showing the addresses I want and the calendar I want.
14. Stop the wine Thunderbird.
15. Start MPE and finish setting up, making sure that it is set to ask first before making any changes to either the phone or Thunderbird data.
16. Pray.
17. Try a contact sync. If OK try calendar sync, and so on.

Treat yourself to something nice..., and say thanks to all at fjsoft for keeping this incredibly useful tool going. It's so long ago I can't now recall if I donated, but I may have to do it again just to be sure :)
Pastim
Beiträge: 85
Registriert: Fr 17. Jun 2011, 22:56

Beitrag von Pastim »

And one more thing for linux Thunderbird 60 users - you need to install xul-ext-lightning to get lightning in linux Thunderbird - the old add-on extension doesn't work.
Antworten