Good news! Mailwasher finally working with Edge WebView2!

Questions about Wine on Linux
Post Reply
w-user
Level 2
Level 2
Posts: 41
Joined: Thu Jan 27, 2022 5:54 am

Good news! Mailwasher finally working with Edge WebView2!

Post by w-user »

For some reason I tried getting Edge WebView2 working with Mailwasher once more. Somehow I felt it was time to try again - by installing the current version of Edge WebView2.

And this time, for the first time, I got it working!

As mentioned in previous threads ("PSA: Mailwasher 7.12.97 switched from iexplorer to Edge for html view...": viewtopic.php?p=139805) and "Microsoft Edge WebView2 installation failing (current versions)": viewtopic.php?p=142850), Mailwasher switched from using IE to Edge for displaying the html content of Emails, but neither ever worked for me on wine.

This long drought since switching from Windows to Linux in 2020 is finally over!

The installation of the latest Edge WebView2 version using the webinstaller went through fine - with wine set to W11 globally. The Edge WebView2 version that was installed is 134.
Previous tests got me to set W7 for mailwasherpro.exe, msedge.exe and msedgewebview2.exe. This is still relevant. If set to W8 or higher, there's only a black area where the html content of an email should be.

But if set to W7 for the 3 .exe files (msedge.exe is probably not necessary for Mailwasher, but for using the Edge browser I still have to do so), Mailwasher actually displays the html content / version of an email - without any problems, as far as I can tell so far. This was tested with Mailwasher v7.15.10. It's to be seen if this still works with the upcoming v8...

I also installed the Edge browser, which is separate from Edge WebView2 and not a requirement for Mailwasher. For this installer, there's a W10/11 and a W7-8.1 version of the webinstaller. For Edge WebView2, I think there's only one webinstaller.
Anyway, I chose the W7 version which installed fine (but so would the W10 version).

I had the Edge browser installed before - for the user only. Not sure how I did this or if something changed - because now the Edge browser would be installed for all users, i.e. in C:\Program Files (x86). When running as W7, the dark mode settings I used the previous install with were kept, when running as W11 the browser ran in light mode. Not sure why. Maybe I'll try installing the W10 version and test with that again.
Anyway, I went with running as W7 and now have the same version of Edge browser as the Edge WebView2 version (134).

Btw., for installing "as user" not "as root" (i.e. for all users), run

Code: Select all

wine [installer.exe] /trustlevel:0x20000
I decided to use the default to have Edge browser and Edge Webview2 installed at the same location.
w-user
Level 2
Level 2
Posts: 41
Joined: Thu Jan 27, 2022 5:54 am

Re: Good news! Mailwasher finally working with Edge WebView2!

Post by w-user »

Addendum:

This is on wine 9.11 - because all versions after that have an additional artifact showing up with Mailwasher ("Mailwasher: New artifact since wine v9.12": viewtopic.php?t=39481 and "Mailwasher: New artifact since wine v9.12 - still present in v10.3": viewtopic.php?t=40392).

The first artifact - which is still present and lever left - is described in this AppDB entry for Mailwasher v7.12.67: https://appdb.winehq.org/objectManager. ... &iId=40674
w-user
Level 2
Level 2
Posts: 41
Joined: Thu Jan 27, 2022 5:54 am

Re: Good news! Mailwasher finally working with Edge WebView2!

Post by w-user »

This newly acquired feature for Mailwasher use with wine has apparently one negative effect: Edge seems to be creating (and not deleting) lots of edge_BITS* directories in ~/.wine/drive_c/"Program Files"/ . It seems to be at least one for every html email viewed. Probably for every html element. Maybe one for the html file and one for each image displayed, or something like that. Edge doesn't clean up that mess, Mailwasher doesn't clean up that mess, wine doesn't clean up that mess.

Luckily, one can run a script to delete all those directories with one of the following commands.

Windows command:

wine rd /s /q "C:\Program Files\edge_BITS*"

Linux commands:

rmdir ~/.wine/drive_c/"Program Files"/edge_BITS*

rm -d ~/.wine/drive_c/"Program Files"/edge_BITS*

rm -rf ~/.wine/drive_c/"Program Files"/edge_BITS*

All of them work, only one of them is needed.
You can put them in a "script" and let it be executed automatically.
Post Reply