New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not all apps recognise Tutanota as the default mailto application in windows #3574
Comments
The situation is... complex cc @ganthern |
this specific case could have been caused by thunderbird not clearing that key when it was deinstalled and word falling back to outlook when it failed to locate the handler. we still need to look at handling default mail handler differently for a gobally installed tutanota vs a per-user install |
@ganthern Let me know if there's anything you want me to try. I have access to a Windows 10 VM that I can roll back and do things to. I think the Thunderbird angle is a red herring. I have some details on what I've tried in #3602 that @johnbotris closed. |
Hey @macxcool, it's certainly possible that Thunderbird has nothing to do with your problem. There's a number of ways the MAPI can be used to send mail, and we couldn't test all of the applications. This may go too much into detail, but all the apps we tested were happy to just call MAPISendMail and ignore the option to have a session-based interaction. That's why we implemented that function and decided to log calls to the others. You can find the logs in
If there are any lines that contain We'll also reduce the Another thing: It could help if you're aware of a free trial for your specific Sage version that we can use to test. |
Thanks @ganthern OK. I can verify that Thunderbird sets I did a fresh install of Thuderbird, Tutanota and Sage 50 and Sage isn't sending to Thunderbird either, even when it's the default handler. The same message I posted before happens regardless of what I do. I don't get entries in Tutanota's MAPI log for this. Man is Windows annoying! This is why I use Linux. The problem is that I recommended that a client purchase a Tutanota subscription and I want to get this working for her and uninstall Thunderbird completely. Thankfully she has an SMTP server still with the same domain name so things are working for now. Sage 50 sends through Thunderbird on her computer, even though I can't get even that working on mine. |
@ganthern Does a dump from Procmon with just calls from Sage during such a MAPI request interest you? |
That would at least be interesting to look at, thank you. Could you please confirm if you install Tutanota globally or per-user ("only for me")? I may have missed that. Also, if you want to try other apps, LibreOffice and Adobe Acrobat Reader are also making MAPI calls. |
I installed it globally. |
That would be lovely, the mapi registration in Tutanota doesn't distinguish between global and per-user install currently.
no arguments here ;) |
OK. I have the Sysinternals Process Monitor log here: http://u.pc.cd/Bb2rtalK The password is 'ThisIsAThing'. This is for Sage 50 trying to send an Invoice via MAPI. I tried to make the capture as narrow as possible. |
Adobe Reader says: "There is no email program associated to perform the requested action" when I've blanked or whatevered that registry key. If the key says 'Mozilla Thunderbird' it works with Thunderbird even though Tutanota is registered and set as the Default handler. http://u.pc.cd/466 same password. |
BTW, I tried setting that registry key to all kinds of things, like 'Tutanota', 'tutanota' (not that Windows cares about case), 'Tutanota Desktop', etc. Nothing seemed to make a difference. |
Libreoffice does work without that key. Nice!
If the key is set to 'Mozilla Thunderbird', though, the mail goes through Thunderbird. I think we need to at least blank that key or check to see if it exists or the Default is set to 'Mozilla Thunderbird'. |
okay, seems like we need to be more judicious in applying the registry keys. again, thank you for your effort! |
So, in my tests, the demo version of Sage50 seems to be OK with a per-user install and a global install of tutanota in a fresh Win10 VM (if it doesn't choke on date formats and refuses to run at all).
I'll test this again with a system that has been "tainted" by thunderbird, but so far I can't see a fundamental problem. |
* a per-user install should only write into HKEY_CURRENT_USER so other users can't select an app that's not installed for them as default mail app * the app now opens the settings page after registering as a mail handler so the user can select it #3574
The registry entries for registering as a mail handler should be a little more well-behaved with #3715 Testingon a fresh windows machine with two users A and B: install tutanota desktop for A per-user and register/set it as the default mail handler, then check:
unregister, then uninstall tutanota and then reinstall per-machine
|
Will do. Probably tomorrow. |
@macxcool, the checklist is part of our testing processes for the next release. It would be better to wait for the PR being merged, since this one depends on another PR in a different repo. |
Also clean up the code a bit, remove unused code, do not attempt to register on Linux as it doesn't work.
Also clean up the code a bit, remove unused code, do not attempt to register on Linux as it doesn't work.
MAPI is not working for local install (windows 10) |
We discovered that it is somehow related to the .dll built on Windows machine. .dll built via Wine is bigger but works. |
Should be fixed by depending on this release: |
Clean global install, attempt to register:
it seems like we still need to elevate permission to register when it's a global |
This is happening because the client tries to write the registry script it needs to execute into its execPath, which is in Putting it into the tutanota tmp directory should fix this. |
Documents sent from applications such as LibreOffice aren't being attached |
We register tutanota as the default mailto by setting the registry keys under
HKEY_LOCAL_MACHINE > SOFTWARE > Clients > Mail
, but there are other choices likeHKEY_CURRENT_USER > SOFTWARE > Clients > Mail
. It seems like not all apps check the same key, for example MS Word is always opening in MS OutlookUpdate
We decided to change the approach because having two places where we can write registry keys leads to some problems (see #3787). Instead of deciding on
HKEY_LOCAL_MACHINE
vsHKEY_LOCAL_USER
we will always useHKEY_LOCAL_USER
to write registry keys (the only reason to not do that is for the admin to set mailto handler for all users but admin has other means to do that should they wish to).Acceptance criteria
Testing
Two users, A and B
The text was updated successfully, but these errors were encountered: