Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

No notifications for new emails #11

Closed
Pointedstick opened this issue Apr 7, 2018 · 54 comments
Closed

No notifications for new emails #11

Pointedstick opened this issue Apr 7, 2018 · 54 comments
Labels
enhancement New feature or request

Comments

@Pointedstick
Copy link
Member

The Flathub Thunderbird package does not send notifications for new emails the way distro package versions do.

@AdrianKoshka
Copy link
Collaborator

I'm assuming you mean Thunderbird doesn't go through the DE's notification system?

@AdrianKoshka AdrianKoshka added the bug Something isn't working label Apr 7, 2018
@Alexander-Wilms
Copy link

@AdrianKoshka
Copy link
Collaborator

Would seem like a good solution for now. How do you bundle add-ons though?

@TingPing
Copy link
Member

TingPing commented Apr 8, 2018

I don't think you need to bundle an addon.. Adding --talk-name=org.freedesktop.Notifications will probably do.

@AdrianKoshka
Copy link
Collaborator

AdrianKoshka commented Apr 8, 2018

Excellent, I'll make the changes.

@TingPing
Copy link
Member

TingPing commented Apr 8, 2018

(Do test it, I don't use Thunderbird)

@AdrianKoshka
Copy link
Collaborator

I don't use a DE with notifications...I'll spin up a VM.

@Pointedstick
Copy link
Member Author

I can confirm that the "gnotifier" extension is indeed not necessary. However it does make the notifications more functional, adding an assortment of useful buttons such as "Delete" and "Mark as read". Shipping that extension by default would be more of a nice-to-have, though.

@AdrianKoshka
Copy link
Collaborator

It's a creature comfort rather than a missing functionality. If a user wants it, they can install the extension, this is my opinion on the matter. If the notification portal works, I'll just use that. Unless I get high demand for this add-on to be included I don't see a point.

@AdrianKoshka
Copy link
Collaborator

AdrianKoshka commented Apr 8, 2018

Hrmm, with Thunderbird installed within a CentOS7 VM using MATE, with the new update (which should allow integrated notifications) I don't seem to be getting any notifications...how about you @Pointedstick ?

@AdrianKoshka
Copy link
Collaborator

Thunderbird on Fedora Atomic Workstation with GNOME 3 doesn't seem to use GNOME notifications either oddly enough.

@AdrianKoshka
Copy link
Collaborator

Can confirm that the notifications bus seems to be open. Perhaps this has to due with the lack of the use of portals in Thunderbird.
bird

@nedrichards
Copy link
Member

It shouldn't - if it's using dbus then that should work.

Have you run the app under --log-system-bus and --log-session-bus to see what it's talking to and then opening holes to whitelist that?

@AdrianKoshka
Copy link
Collaborator

No I haven't, I could try doing this, thanks for the advice.

@AdrianKoshka
Copy link
Collaborator

I ran Thunderbird (with those options), sent myself a mail (got a notification) and this is what was logged:

C1: -> org.freedesktop.DBus call org.freedesktop.DBus.Hello at /org/freedesktop/DBus
C2: -> org.freedesktop.DBus fake AddMatch for ca.desrt.dconf
C3: -> org.freedesktop.DBus fake GetNameOwner for ca.desrt.dconf
C4: -> org.freedesktop.DBus fake AddMatch for org.mozilla.Thunderbird
C5: -> org.freedesktop.DBus fake GetNameOwner for org.mozilla.Thunderbird
C6: -> org.freedesktop.DBus fake AddMatch for org.freedesktop.Notifications
C7: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.Notifications
C8: -> org.freedesktop.DBus fake AddMatch for org.a11y.*
C9: -> org.freedesktop.DBus fake AddMatch for org.mozilla.Thunderbird.*
C10: -> org.freedesktop.DBus fake AddMatch for org.freedesktop.portal.*
C11: -> org.freedesktop.DBus fake ListNames
B1: <- org.freedesktop.DBus return from C1
B2: <- org.freedesktop.DBus signal org.freedesktop.DBus.NameAcquired at /org/freedesktop/DBus
B3: <- org.freedesktop.DBus return from C2
*SKIPPED*
B4: <- org.freedesktop.DBus return from C3
*SKIPPED*
B5: <- org.freedesktop.DBus return from C4
*SKIPPED*
B6: <- org.freedesktop.DBus return error org.freedesktop.DBus.Error.NameHasNoOwner from C5
*SKIPPED*
B7: <- org.freedesktop.DBus return from C6
*SKIPPED*
B8: <- org.freedesktop.DBus return from C7
*SKIPPED*
B9: <- org.freedesktop.DBus return from C8
*SKIPPED*
B10: <- org.freedesktop.DBus return from C9
*SKIPPED*
B11: <- org.freedesktop.DBus return from C10
*SKIPPED*
B12: <- org.freedesktop.DBus return from C11
C12: -> org.freedesktop.DBus fake GetNameOwner for org.a11y.Bus
C13: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.portal.Documents
C14: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.portal.IBus
*SKIPPED*
C15: -> org.freedesktop.DBus call org.freedesktop.DBus.AddMatch at /org/freedesktop/DBus
C16: -> org.freedesktop.DBus call org.freedesktop.DBus.StartServiceByName at /org/freedesktop/DBus
Filtering message due to arg0 org.gtk.vfs.Daemon, policy: 0 (required 3)
*HIDDEN* (ping)
B13: <- org.freedesktop.DBus return from C12
*SKIPPED*
B14: <- org.freedesktop.DBus return from C13
*SKIPPED*
B15: <- org.freedesktop.DBus return from C14
*SKIPPED*
B16: <- org.freedesktop.DBus return from C15
B17: <- (no sender) return from C16
*REWRITTEN*
C17: -> org.freedesktop.DBus call org.freedesktop.DBus.GetNameOwner at /org/freedesktop/DBus
Filtering message due to arg0 org.gtk.vfs.Daemon, policy: 0 (required 1)
B18: <- (no sender) return from C17
*REWRITTEN*
C18: -> org.gtk.vfs.Daemon call org.gtk.vfs.Daemon.ListMonitorImplementations at /org/gtk/vfs/Daemon
*HIDDEN* (ping)
B19: <- (no sender) return from C18
*REWRITTEN*
C19: -> org.freedesktop.DBus call org.freedesktop.DBus.StartServiceByName at /org/freedesktop/DBus
Filtering message due to arg0 org.gtk.vfs.Daemon, policy: 0 (required 3)
*HIDDEN* (ping)
B20: <- (no sender) return from C19
*REWRITTEN*
C20: -> org.freedesktop.DBus call org.freedesktop.DBus.GetNameOwner at /org/freedesktop/DBus
Filtering message due to arg0 org.gtk.vfs.Daemon, policy: 0 (required 1)
B21: <- (no sender) return from C20
*REWRITTEN*
C21: -> org.gtk.vfs.Daemon call org.gtk.vfs.MountTracker.ListMountableInfo at /org/gtk/vfs/mounttracker
*HIDDEN* (ping)
B22: <- (no sender) return from C21
*REWRITTEN*
C1: -> org.freedesktop.DBus call org.freedesktop.DBus.Hello at /org/freedesktop/DBus
C2: -> org.freedesktop.DBus fake AddMatch for ca.desrt.dconf
C3: -> org.freedesktop.DBus fake GetNameOwner for ca.desrt.dconf
C4: -> org.freedesktop.DBus fake AddMatch for org.mozilla.Thunderbird
C5: -> org.freedesktop.DBus fake GetNameOwner for org.mozilla.Thunderbird
C6: -> org.freedesktop.DBus fake AddMatch for org.freedesktop.Notifications
C7: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.Notifications
C8: -> org.freedesktop.DBus fake AddMatch for org.a11y.*
C9: -> org.freedesktop.DBus fake AddMatch for org.mozilla.Thunderbird.*
C10: -> org.freedesktop.DBus fake AddMatch for org.freedesktop.portal.*
C11: -> org.freedesktop.DBus fake ListNames
B1: <- org.freedesktop.DBus return from C1
B2: <- org.freedesktop.DBus signal org.freedesktop.DBus.NameAcquired at /org/freedesktop/DBus
B3: <- org.freedesktop.DBus return from C2
*SKIPPED*
B4: <- org.freedesktop.DBus return from C3
*SKIPPED*
B5: <- org.freedesktop.DBus return from C4
*SKIPPED*
B6: <- org.freedesktop.DBus return error org.freedesktop.DBus.Error.NameHasNoOwner from C5
*SKIPPED*
B7: <- org.freedesktop.DBus return from C6
*SKIPPED*
B8: <- org.freedesktop.DBus return from C7
*SKIPPED*
B9: <- org.freedesktop.DBus return from C8
*SKIPPED*
B10: <- org.freedesktop.DBus return from C9
*SKIPPED*
B11: <- org.freedesktop.DBus return from C10
*SKIPPED*
B12: <- org.freedesktop.DBus return from C11
C12: -> org.freedesktop.DBus fake GetNameOwner for org.a11y.Bus
C13: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.portal.Documents
C14: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.portal.IBus
*SKIPPED*
B13: <- org.freedesktop.DBus return from C12
*SKIPPED*
B14: <- org.freedesktop.DBus return from C13
*SKIPPED*
B15: <- org.freedesktop.DBus return from C14
*SKIPPED*
[calBackendLoader] Using Thunderbird's builtin libical backend
C15: -> org.a11y.Bus call org.freedesktop.DBus.Properties.Get at /org/a11y/bus
B22: <- :1.10 return from C15
C22: -> org.freedesktop.DBus call org.freedesktop.DBus.AddMatch at /org/freedesktop/DBus
B23: <- org.freedesktop.DBus return from C22
C23: -> org.freedesktop.DBus call org.freedesktop.DBus.RemoveMatch at /org/freedesktop/DBus
B24: <- org.freedesktop.DBus return from C23

@AdrianKoshka AdrianKoshka reopened this Apr 10, 2018
@Lvaskz
Copy link

Lvaskz commented Apr 21, 2018

I have already installed. I proof it, but I noted the notification appears if thunderbird is running but if not the notification doesn't appears. Some idea what about? That is normal behavier?
I am on linuxmint 18.3, 64 bit, cinnamon

@AdrianKoshka
Copy link
Collaborator

AdrianKoshka commented Apr 21, 2018

I think this is perfectly normal behavior, if Thunderbird is not running, then it can't send notifications, naturally.

@Lvaskz
Copy link

Lvaskz commented Apr 21, 2018

Sorry, I should explain it better. I send a email from my celular Phone to my email Google. But I waited see notification in my desktop, but I did not see it

@AdrianKoshka
Copy link
Collaborator

So are you saying notifications only appear sometimes, but not others?

@Lvaskz
Copy link

Lvaskz commented Apr 21, 2018

Yes, if thunderbird is running the notifications appear in my desktop, but if I close it and someone or myself, send me emails, the notifications simply do not appear.

@AdrianKoshka
Copy link
Collaborator

What do you mean by close? As in minimize, or fully exit the application?

@Lvaskz
Copy link

Lvaskz commented Apr 21, 2018

Fully exit. That is normal?

@Lvaskz
Copy link

Lvaskz commented Apr 21, 2018

Some other email clients shows the notifications with the applications fully exit.

@AdrianKoshka
Copy link
Collaborator

Yes. As far as I know. I don't think Thunderbird runs in the background?

@AdrianKoshka
Copy link
Collaborator

Once I can get libnotify at least building, which shoudln't take long, I'll push my changes to the branch libnotify-test. Those interested can clone the repo and compile the flatpak themselve, or, perhaps, I'll just tar the exported repo. Then those interested can download the tar, extract it, add it as a local repo, and install the flatpak. I'd personally do the install portion within a VM (but that's because I run i3wm without any notification server, so spinning up a VM is probably a better way to test for me).

@AdrianKoshka
Copy link
Collaborator

AdrianKoshka commented Jun 3, 2018

I'll push what I have (which is just a manifest change) to the branch for anyone interested in investigating.

link: https://github.com/flathub/org.mozilla.Thunderbird/tree/libnotify-test

@ovari
Copy link
Contributor

ovari commented Jun 3, 2018

In Terminal

$ sudo apt install git
$ sudo apt install flatpak-builder
$ mkdir repo
$ cd repo/
$ git clone -b libnotify-test --single-branch https://github.com/flathub/org.mozilla.Thunderbird/
$ flatpak-builder build org.mozilla.Thunderbird/org.mozilla.Thunderbird.json
error: org.gnome.Sdk 3.28 not installed
Failed to init: Unable to find sdk org.gnome.Sdk version 3.28

Does this help?

@AdrianKoshka
Copy link
Collaborator

AdrianKoshka commented Jun 3, 2018

No, not at all. There are build instructions on this repos wiki.

Also, flatpak-builder can be installed via flatpak (if you want to).
flatpak --user install flathub org.flatpak.builder.

Then you'd do make FLATPAK_BUILDER="flatpak run org.flatpak.Builder"

@AdrianKoshka
Copy link
Collaborator

AdrianKoshka commented Jun 6, 2018

https://send.firefox.com/download/9300b29568/#73FR1p5k0Feke-hUbZ4dmA I zipped up the repo folder for anyone who didn't want to compile.

steps to setup (assuming you already have the flathub repo added):

$ unzip repo.zip
$ flatpak --user remote-add --no-gpg-verify localtbrepo /home/user/repo
$ flatpak --user install localtbrepo org.mozila.Thunderbird

@AdrianKoshka
Copy link
Collaborator

AdrianKoshka commented Jun 6, 2018

Results so far: (I'll update these as I test)

Fedora 28 with MATE: DE notifications aren't used
Fedora 28 with GNOME: DE notifications aren't used

@ovari
Copy link
Contributor

ovari commented Jun 8, 2018

~$ unzip repo.zip
~$ flatpak --user remote-add --no-gpg-verify localtbrepo /home/user/repo
~$ flatpak --user install localtbrepo org.mozila.Thunderbird
error: Error searching remote localtbrepo: Can't find ref org.mozila.Thunderbird

user was replaced by our name

Linux Mint 19 Cinnamon 64-bit beta

Do you have any suggestions?

Thank you

@AdrianKoshka
Copy link
Collaborator

make sure that /home/user/repo is an actual directory? I've tested this with two VMs and it's worked just fine for me.

@ovari
Copy link
Contributor

ovari commented Jun 9, 2018

Thunderbird Beta Notes
Version 60.0beta, first offered to channel users on March 26, 2018
These release notes apply to Thunderbird version 60 beta 7 released June 8th, 2018.
changed Native notifications on Linux are now re-enabled
https://www.thunderbird.net/en-US/thunderbird/60.0beta/releasenotes/

Tested Thunderbird 60.0b7 and DE Notifications work on Linux Mint 18.3 Cinnamon 64-bit.

Since the next stable release of Thunderbird is Thunderbird 60 and expected this month (June 2018), seems that it should work with your flatpak without any additional work. Should Thunderbird 60.0b7 beta be tested with your flatpak or should we just wait for the official release?

Thank you

@AdrianKoshka
Copy link
Collaborator

> FIDO U2F support FINALLY. Anyway, you're welcome to test this yourself, I'll probably just wait until the stable release, bump the version, see if notifications work.

@ovari
Copy link
Contributor

ovari commented Jun 10, 2018

Agree with you. Please close this ticket and delete your libnotify-test branch.

@AdrianKoshka
Copy link
Collaborator

I'll close it when I see it work, I will happily delete the branch though.

@ovari ovari mentioned this issue Aug 7, 2018
@AdrianKoshka
Copy link
Collaborator

Anyone have any update on this, whether notifications are working for them or not with v60 now? If I remember, I'll test later today.

@ovari
Copy link
Contributor

ovari commented Aug 10, 2018

https://flathub.org/apps/details/org.mozilla.Thunderbird shows 52.9.1. Do you know when it will show 60.0 to enabling testing? Thank you @AdrianKoshka for releasing Thunderbird 60.0 flatpak.

@AdrianKoshka
Copy link
Collaborator

It's 60, I know that, I don't know when flathub updates metadata, but the update has come through.

@ovari
Copy link
Contributor

ovari commented Aug 10, 2018

Unfortunately, unable to test #46 (comment)

@Erick555 Erick555 added enhancement New feature or request help wanted Extra attention is needed and removed bug Something isn't working help wanted Extra attention is needed labels Sep 16, 2019
@Erick555
Copy link
Collaborator

I confirmed that new mail notifications work. In order to make it work you need two things:

  1. Preferences > Advanced > General > Config Editor, set mail.biff.use_system_alert to true (default)
  2. Preferences > General > Select Customize for "Show an alert" and set "Show New Mail alert for:"

@ovari
Copy link
Contributor

ovari commented Sep 17, 2019

@Erick555 added your comments at #11 (comment) to the README.md via #78

@iaacornus
Copy link

The notification system doesn't work again in thunderbird flatpak in Fedora 35 silverblue
Thunderbird org.mozilla.Thunderbird 91.8.1 stable flathub system

mail.biff.use_system_alert is set to true, and "Show new mail alert for:" is also turned on and set to 15s, and despite of issuing sudo flatpak override --talk-name=org.freedesktop.Notifications org.mozilla.Thunderbird. So notifications only show up after the app is opened.

@Erick555
Copy link
Collaborator

Erick555 commented May 5, 2022

So notifications only show up after the app is opened.

Do you mean only when app is running or only when app window is focused? For me the notifications still show up when app is running in background.

@iaacornus
Copy link

Only when the app is running.

@Erick555
Copy link
Collaborator

Erick555 commented May 6, 2022

So this is expected behavior. The app can show notifications only when it's running. How you can expect app showing notifications if you you didn't start it?

There is helper app that can hide TB in the background if you don't want see it's window all the time

@iaacornus
Copy link

Makes sense, I thought it works like discord, like it does send notification even the window is closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

9 participants