diff --git a/bin/thunderbird-notify b/bin/thunderbird-notify index 9bafbf1..8829261 100755 --- a/bin/thunderbird-notify +++ b/bin/thunderbird-notify @@ -113,8 +113,9 @@ for folder in options.folder: monitor = gfile.monitor_file(Gio.FileMonitorFlags.NONE, None) monitor.connect( "changed", - lambda m, f1, f2, event: event == Gio.FileMonitorEvent.CHANGES_DONE_HINT + lambda m, f1, f2, event, folder: event == Gio.FileMonitorEvent.CHANGES_DONE_HINT and notify_new_messages(folder), + folder, ) monitors.append(monitor)