pulb / mailnag

An extensible mail notification daemon
GNU General Public License v2.0
250 stars 32 forks source link

using scripts #210

Open OrionRandD opened 4 years ago

OrionRandD commented 4 years ago

I have mailnag installed via apt in my debian box. It used to have a field in its configuration for me to add personal scripts. I was using "xcowsay" in a script to warn me when new emails arrived in my Inbox. But, I have noticed, for some time now, that the field to add a path to my script just desappeared from mailnag configuration. Does that feature was removed?

pulb commented 4 years ago

No, the userscript plugin is still included in mailnag. What version are you using?

OrionRandD commented 4 years ago

On Thu, Jul 02, 2020 at 08:48:57AM -0700, Patrick Ulbrich wrote:

No, the userscript plugin is still included in mailnag. What version are you using?

I am using version 1.3.0 from debian. I am in the unstable branch of debian

— You are receiving this because you authored the thread. Reply to this email directly, [1]view it on GitHub, or [2]unsubscribe.

References

  1. https://github.com/pulb/mailnag/issues/210#issuecomment-653084783
  2. https://github.com/notifications/unsubscribe-auth/AKLPRKIGJYVABTHWBNN4TTDRZST6TANCNFSM4OLPUD6Q
OrionRandD commented 4 years ago

On Thu, Jul 02, 2020 at 08:48:57AM -0700, Patrick Ulbrich wrote:

No, the userscript plugin is still included in mailnag. What version are you using?

I think that for some reason the mailnag daemon is not working here. And I could not use:

systemctl enable mailnag

to make it work :(

Also, how do I set up the mailnag password field to work with: "~/.authinfo.gpg" Instead of using plain text which is a terrible security flaw?

— You are receiving this because you authored the thread. Reply to this email directly, [1]view it on GitHub, or [2]unsubscribe.

References

  1. https://github.com/pulb/mailnag/issues/210#issuecomment-653084783
  2. https://github.com/notifications/unsubscribe-auth/AKLPRKIGJYVABTHWBNN4TTDRZST6TANCNFSM4OLPUD6Q
pulb commented 4 years ago

According to packages.debian.org there is no mailnag 1.3 in official Debian repos.

Am 3. Juli 2020 23:06:30 MESZ schrieb OrionRandD notifications@github.com:

On Thu, Jul 02, 2020 at 08:48:57AM -0700, Patrick Ulbrich wrote:>

No, the userscript plugin is still included in mailnag. What version> are you using?>

I am using version 1.3.0 from debian.> I am in the unstable branch of debian>

—> You are receiving this because you authored the thread.> Reply to this email directly, [1]view it on GitHub, or [2]unsubscribe.>

References>

1. https://github.com/pulb/mailnag/issues/210#issuecomment-653084783> 2. https://github.com/notifications/unsubscribe-auth/AKLPRKIGJYVABTHWBNN4TTDRZST6TANCNFSM4OLPUD6Q>

-- > You are receiving this because you commented.> Reply to this email directly or view it on GitHub:> https://github.com/pulb/mailnag/issues/210#issuecomment-653677331

-- Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.

pulb commented 4 years ago

Mailnag does not ship a systemd .service file so you can't enable it via systemctl. It's enabled via autostart in your desktop session.

In previous versions it stores passwords in gnome-keyring (if installed),version 2.0 or later utilizes libsecret to store passwords.

Am 3. Juli 2020 23:15:15 MESZ schrieb OrionRandD notifications@github.com:

On Thu, Jul 02, 2020 at 08:48:57AM -0700, Patrick Ulbrich wrote:>

No, the userscript plugin is still included in mailnag. What version> are you using?>

I think that for some reason the mailnag daemon is not working here.> And I could not use:>

systemctl enable mailnag >

to make it work :(>

Also, how do I set up the mailnag password field to work with:> "~/.authinfo.gpg" > Instead of using plain text which is a terrible security flaw?>

—> You are receiving this because you authored the thread.> Reply to this email directly, [1]view it on GitHub, or [2]unsubscribe.>

References>

1. https://github.com/pulb/mailnag/issues/210#issuecomment-653084783> 2. https://github.com/notifications/unsubscribe-auth/AKLPRKIGJYVABTHWBNN4TTDRZST6TANCNFSM4OLPUD6Q>

-- > You are receiving this because you commented.> Reply to this email directly or view it on GitHub:> https://github.com/pulb/mailnag/issues/210#issuecomment-653678710

-- Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.

OrionRandD commented 4 years ago

Hi, my autostart is:

autostart = 1

but has no effect here. That's the reason why I asked about systemd. And how do I set libsecret to work with mailnag. Is it in the Readme file? Thank you

On Fri, Jul 3, 2020 at 7:03 PM Patrick Ulbrich notifications@github.com wrote:

Mailnag does not ship a systemd .service file so you can't enable it via systemctl. It's enabled via autostart in your desktop session.

In previous versions it stores passwords in gnome-keyring (if installed),version 2.0 or later utilizes libsecret to store passwords.

Am 3. Juli 2020 23:15:15 MESZ schrieb OrionRandD <notifications@github.com

: On Thu, Jul 02, 2020 at 08:48:57AM -0700, Patrick Ulbrich wrote:>

No, the userscript plugin is still included in mailnag. What version> are you using?>

I think that for some reason the mailnag daemon is not working here.> And I could not use:>

systemctl enable mailnag >

to make it work :(>

Also, how do I set up the mailnag password field to work with:> "~/.authinfo.gpg" > Instead of using plain text which is a terrible security flaw?>

—> You are receiving this because you authored the thread.> Reply to this email directly, [1]view it on GitHub, or [2]unsubscribe.>

References>

1. https://github.com/pulb/mailnag/issues/210#issuecomment-653084783> 2.

https://github.com/notifications/unsubscribe-auth/AKLPRKIGJYVABTHWBNN4TTDRZST6TANCNFSM4OLPUD6Q

-- > You are receiving this because you commented.> Reply to this email directly or view it on GitHub:> https://github.com/pulb/mailnag/issues/210#issuecomment-653678710

-- Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pulb/mailnag/issues/210#issuecomment-653685703, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKLPRKLLGBLC6YAZWGZV3FDRZZISLANCNFSM4OLPUD6Q .

pulb commented 4 years ago

Mailnag is added to ~/.config/autostart automatically if you toggle the enable switch in mailnag-config. libsecret is used automatically if it's available on your system. it's a dependency of the debian package. What mailnag version are you using and where did you get it from?

pulb commented 4 years ago

Please also provide the output of journalctl -b _COMM=mailnag

OrionRandD commented 4 years ago

journalctl -b _COMM=mailnag

jul 05 10:29:36 cypher mailnag[10322]: INFO (2020-07-05 10:29:36): Checking 1 email account(s). jul 05 10:29:39 cypher mailnag[10322]: DEBUG (2020-07-05 10:29:39): Couldn't get Subject from message. jul 05 10:29:42 cypher mailnag[10322]: WARNING (2020-07-05 10:29:42): Folder [Gmail] does not exist. jul 05 10:29:42 cypher mailnag[10322]: ERROR (2020-07-05 10:29:42): Caught an exception. Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/Mailnag/daemon/mailnagdaemon.py", line 178, in _start

self._mailchecker.check(self._accounts) File "/usr/local/lib/python2.7/dist-packages/Mailnag/daemon/mailchecker.py", line 58, in check all_mails = self._mailsyncer.sync(accounts) File "/usr/local/lib/python2.7/dist-packages/Mailnag/daemon/mails.py", line 219, in sync rcv_lst = MailCollector(self._cfg, accounts).collect_mail(sort = False) File "/usr/local/lib/python2.7/dist-packages/Mailnag/daemon/mails.py", line 92, in collect_mail acc.close() File "/usr/local/lib/python2.7/dist-packages/Mailnag/common/accounts.py", line 102, in close self._get_backend().close() File "/usr/local/lib/python2.7/dist-packages/Mailnag/backends/imap.py", line 66, in close self._disconnect(self._conn) File "/usr/local/lib/python2.7/dist-packages/Mailnag/backends/imap.py", line 219, in _disconnect conn.close() File "/usr/local/lib/python2.7/dist-packages/Mailnag/common/imaplib2.py", line 669, in close raise self.error('No mailbox selected.') error: No mailbox selected. jul 05 10:33:38 cypher mailnag[26488]: INFO (2020-07-05 10:33:38): Shutting down... jul 05 10:39:42 cypher mailnag[10322]: INFO (2020-07-05 10:39:42): Checking 1 email account(s). jul 05 10:39:43 cypher mailnag[10322]: DEBUG (2020-07-05 10:39:43): Couldn't get Subject from message. jul 05 10:39:46 cypher mailnag[10322]: WARNING (2020-07-05 10:39:46): Folder [Gmail] does not exist. jul 05 10:39:46 cypher mailnag[10322]: ERROR (2020-07-05 10:39:46): Caught an exception. Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/Mailnag/daemon/mailnagdaemon.py", line 197, in poll_func

self._mailchecker.check(non_idle_accounts) File "/usr/local/lib/python2.7/dist-packages/Mailnag/daemon/mailchecker.py", line 58, in check all_mails = self._mailsyncer.sync(accounts) File "/usr/local/lib/python2.7/dist-packages/Mailnag/daemon/mails.py", line 219, in sync rcv_lst = MailCollector(self._cfg, accounts).collect_mail(sort = False) File "/usr/local/lib/python2.7/dist-packages/Mailnag/daemon/mails.py", line 92, in collect_mail acc.close() File "/usr/local/lib/python2.7/dist-packages/Mailnag/common/accounts.py", line 102, in close self._get_backend().close() File "/usr/local/lib/python2.7/dist-packages/Mailnag/backends/imap.py", line 66, in close self._disconnect(self._conn) File "/usr/local/lib/python2.7/dist-packages/Mailnag/backends/imap.py", line 219, in _disconnect conn.close() File "/usr/local/lib/python2.7/dist-packages/Mailnag/common/imaplib2.py", line 669, in close raise self.error('No mailbox selected.') error: No mailbox selected. jul 05 11:19:39 cypher mailnag[50093]: INFO (2020-07-05 11:19:39): Shutting down... jul 05 11:19:45 cypher mailnag[50130]: INFO (2020-07-05 11:19:45): Checking 1 email account(s). jul 05 11:19:48 cypher mailnag[50130]: DEBUG (2020-07-05 11:19:48): Couldn't get Subject from message. jul 05 11:20:22 cypher mailnag[50130]: INFO (2020-07-05 11:20:22): Shutting down... jul 05 11:20:22 cypher mailnag[50130]: INFO (2020-07-05 11:20:22): Idler closed jul 05 11:25:57 cypher mailnag[52142]: INFO (2020-07-05 11:25:57): Checking 1 email account(s). jul 05 11:26:00 cypher mailnag[52142]: DEBUG (2020-07-05 11:26:00): Couldn't get Subject from message. jul 05 11:26:27 cypher mailnag[52142]: INFO (2020-07-05 11:26:27): Shutting down... jul 05 11:26:28 cypher mailnag[52142]: INFO (2020-07-05 11:26:28): Idler closed jul 05 11:28:05 cypher mailnag[52855]: INFO (2020-07-05 11:28:05): Shutting down... jul 05 11:28:14 cypher mailnag[52897]: INFO (2020-07-05 11:28:14): Checking 1 email account(s). jul 05 11:28:16 cypher mailnag[52897]: DEBUG (2020-07-05 11:28:16): Couldn't get Subject from message. jul 05 11:28:17 cypher mailnag[52897]: WARNING (2020-07-05 11:28:17): Folder [Gmail] does not exist. jul 05 11:28:31 cypher mailnag[52897]: DEBUG (2020-07-05 11:28:31): Couldn't get Subject from message. jul 05 11:28:50 cypher mailnag[52897]: INFO (2020-07-05 11:28:50): Shutting down... jul 05 11:28:51 cypher mailnag[52897]: INFO (2020-07-05 11:28:51): Polling thread exited successfully.

$ mailnag -v mailnag 1.3.0

On Sun, Jul 5, 2020 at 11:05 AM Patrick Ulbrich notifications@github.com wrote:

Please also provide the output of journalctl -b _COMM=mailnag

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pulb/mailnag/issues/210#issuecomment-653893057, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKLPRKOJKCE7IIXQKDXJ2XLR2CCEFANCNFSM4OLPUD6Q .

pulb commented 4 years ago

Ok, so you got a crash due to an invalid email inbox. Can you please also post the contents of ~/.config/mailnag/mailnag.cfg? Please also note that version 1.3 uses gnome-keyring to store passwords (if gir1.2-gnomekeyring-1.0 is installed), not libsecret.

OrionRandD commented 4 years ago

$ search mailnag gnome-shell-mailnag - mail notification extension for GNOME Shell mailnag - extensible mail notification daemon

I think I downloaded mailnag through apt-get Should I remove it and install it again via github to get the latest version?

[spamfilterplugin] filter_text = newsletter, viagra

[core] imap_idle_timeout = 10 enabled_plugins = poll_interval = 10 credentialstore = none connectivity_test = auto autostart = 1

[soundplugin] soundfile = /usr/share/sounds/KDE-Im-New-Mail.ogg

[libnotifyplugin] notification_mode = 3 max_visible_mails = 10

[account1] enabled = 1 type = imap name = $USER (Gmail) user = $USER password = server = imap.gmail.com port = 993 ssl = 1 imap = 1 idle = 0 folder = ["INBOX", "[Gmail]", "[Gmail]/All Mail"]

[userscriptplugin] script_file = /usr/local/bin/vaca_email-notify.sh

I have tested all kind of folders and not have been lucky...

On Sun, Jul 5, 2020 at 11:43 AM Patrick Ulbrich notifications@github.com wrote:

Ok, so you got a crash due to an invalid email inbox. Can you please also post the contents of ~/.config/mailnag/mailnag.cfg? Please also note that version 1.3 uses gnome-keyring to store passwords (if gir1.2-gnomekeyring-1.0 is installed), not libsecret.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pulb/mailnag/issues/210#issuecomment-653897342, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKLPRKJUSNAYKGUDQ5TDWQTR2CGPJANCNFSM4OLPUD6Q .

pulb commented 4 years ago

Ok, please let the folders field empty for now and check the output of journalctl -b _COMM=mailnag. It also seems you didn't activate the userscript plugin in mailnag-config.

OrionRandD commented 4 years ago

It says that Gmail folder does not exist...

-- Logs begin at Mon 2020-02-10 17:01:54 -03, end at Sun 2020-07-05 12:31:06 -03. -- jul 05 10:29:36 cypher mailnag[10322]: INFO (2020-07-05 10:29:36): Checking 1 email account(s). jul 05 10:29:39 cypher mailnag[10322]: DEBUG (2020-07-05 10:29:39): Couldn't get Subject from message. jul 05 10:29:42 cypher mailnag[10322]: WARNING (2020-07-05 10:29:42): Folder [Gmail] does not exist. jul 05 10:29:42 cypher mailnag[10322]: ERROR (2020-07-05 10:29:42): Caught an exception. Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/Mailnag/daemon/mailnagdaemon.py", line 178, in _start

self._mailchecker.check(self._accounts) File "/usr/local/lib/python2.7/dist-packages/Mailnag/daemon/mailchecker.py", line 58, in check all_mails = self._mailsyncer.sync(accounts) File "/usr/local/lib/python2.7/dist-packages/Mailnag/daemon/mails.py", line 219, in sync rcv_lst = MailCollector(self._cfg, accounts).collect_mail(sort = False) File "/usr/local/lib/python2.7/dist-packages/Mailnag/daemon/mails.py", line 92, in collect_mail acc.close() File "/usr/local/lib/python2.7/dist-packages/Mailnag/common/accounts.py", line 102, in close self._get_backend().close() File "/usr/local/lib/python2.7/dist-packages/Mailnag/backends/imap.py", line 66, in close self._disconnect(self._conn) File "/usr/local/lib/python2.7/dist-packages/Mailnag/backends/imap.py", line 219, in _disconnect conn.close() File "/usr/local/lib/python2.7/dist-packages/Mailnag/common/imaplib2.py", line 669, in close raise self.error('No mailbox selected.') error: No mailbox selected. jul 05 10:33:38 cypher mailnag[26488]: INFO (2020-07-05 10:33:38): Shutting down... jul 05 10:39:42 cypher mailnag[10322]: INFO (2020-07-05 10:39:42): Checking 1 email account(s). jul 05 10:39:43 cypher mailnag[10322]: DEBUG (2020-07-05 10:39:43): Couldn't get Subject from message. jul 05 10:39:46 cypher mailnag[10322]: WARNING (2020-07-05 10:39:46): Folder [Gmail] does not exist. jul 05 10:39:46 cypher mailnag[10322]: ERROR (2020-07-05 10:39:46): Caught an exception. Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/Mailnag/daemon/mailnagdaemon.py", line 197, in poll_func

self._mailchecker.check(non_idle_accounts) File "/usr/local/lib/python2.7/dist-packages/Mailnag/daemon/mailchecker.py", line 58, in check all_mails = self._mailsyncer.sync(accounts) File "/usr/local/lib/python2.7/dist-packages/Mailnag/daemon/mails.py", line 219, in sync rcv_lst = MailCollector(self._cfg, accounts).collect_mail(sort = False) File "/usr/local/lib/python2.7/dist-packages/Mailnag/daemon/mails.py", line 92, in collect_mail acc.close() File "/usr/local/lib/python2.7/dist-packages/Mailnag/common/accounts.py", line 102, in close self._get_backend().close() File "/usr/local/lib/python2.7/dist-packages/Mailnag/backends/imap.py", line 66, in close self._disconnect(self._conn) File "/usr/local/lib/python2.7/dist-packages/Mailnag/backends/imap.py", line 219, in _disconnect conn.close() File "/usr/local/lib/python2.7/dist-packages/Mailnag/common/imaplib2.py", line 669, in close raise self.error('No mailbox selected.') error: No mailbox selected. jul 05 11:19:39 cypher mailnag[50093]: INFO (2020-07-05 11:19:39): Shutting down... jul 05 11:19:45 cypher mailnag[50130]: INFO (2020-07-05 11:19:45): Checking 1 email account(s). jul 05 11:19:48 cypher mailnag[50130]: DEBUG (2020-07-05 11:19:48): Couldn't get Subject from message. jul 05 11:20:22 cypher mailnag[50130]: INFO (2020-07-05 11:20:22): Shutting down... jul 05 11:20:22 cypher mailnag[50130]: INFO (2020-07-05 11:20:22): Idler closed jul 05 11:25:57 cypher mailnag[52142]: INFO (2020-07-05 11:25:57): Checking 1 email account(s). jul 05 11:26:00 cypher mailnag[52142]: DEBUG (2020-07-05 11:26:00): Couldn't get Subject from message. jul 05 11:26:27 cypher mailnag[52142]: INFO (2020-07-05 11:26:27): Shutting down... jul 05 11:26:28 cypher mailnag[52142]: INFO (2020-07-05 11:26:28): Idler closed jul 05 11:28:05 cypher mailnag[52855]: INFO (2020-07-05 11:28:05): Shutting down... jul 05 11:28:14 cypher mailnag[52897]: INFO (2020-07-05 11:28:14): Checking 1 email account(s). jul 05 11:28:16 cypher mailnag[52897]: DEBUG (2020-07-05 11:28:16): Couldn't get Subject from message. jul 05 11:28:17 cypher mailnag[52897]: WARNING (2020-07-05 11:28:17): Folder [Gmail] does not exist. jul 05 11:28:31 cypher mailnag[52897]: DEBUG (2020-07-05 11:28:31): Couldn't get Subject from message. jul 05 11:28:50 cypher mailnag[52897]: INFO (2020-07-05 11:28:50): Shutting down... jul 05 11:28:51 cypher mailnag[52897]: INFO (2020-07-05 11:28:51): Polling thread exited successfully. jul 05 12:29:55 cypher mailnag[72874]: INFO (2020-07-05 12:29:55): Checking 1 email account(s). jul 05 12:29:58 cypher mailnag[72874]: WARNING (2020-07-05 12:29:58): Folder [Gmail] does not exist.

On Sun, Jul 5, 2020 at 12:24 PM Patrick Ulbrich notifications@github.com wrote:

Ok, please let the folders field empty for now and check the output of journalctl -b _COMM=mailnag. It also seems you didn't activate the userscript plugin in mailnag-config.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pulb/mailnag/issues/210#issuecomment-653901949, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKLPRKIUTBB5DL25E5CENQDR2CLKBANCNFSM4OLPUD6Q .

pulb commented 4 years ago

Please post the actual output

OrionRandD commented 4 years ago

That is what I am telling you since the beginning that the userscript field for activating does not appear in my mailnag in X neither inside the mailnag-cfg So that, there is no way of running my personal script. I started this thread just because of this... Is it related with my mailnag version? That was the reason I asked if I should purge it with "apt-get purge mailnag*" and install the most recent one from github...

On Sun, Jul 5, 2020 at 12:24 PM Patrick Ulbrich notifications@github.com wrote:

Ok, please let the folders field empty for now and check the output of journalctl -b _COMM=mailnag. It also seems you didn't activate the userscript plugin in mailnag-config.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pulb/mailnag/issues/210#issuecomment-653901949, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKLPRKIUTBB5DL25E5CENQDR2CLKBANCNFSM4OLPUD6Q .

pulb commented 4 years ago

Maybe the plugin is not loaded successfully. Please run mailnag-config in a terminal and post the output here

OrionRandD commented 4 years ago

-- Logs begin at Mon 2020-02-10 17:01:54 -03, end at Sun 2020-07-05 12:43:03 -03. -- jul 05 10:29:36 cypher mailnag[10322]: INFO (2020-07-05 10:29:36): Checking 1 email account(s). jul 05 10:29:39 cypher mailnag[10322]: DEBUG (2020-07-05 10:29:39): Couldn't get Subject from message. jul 05 10:29:42 cypher mailnag[10322]: WARNING (2020-07-05 10:29:42): Folder [Gmail] does not exist. jul 05 10:29:42 cypher mailnag[10322]: ERROR (2020-07-05 10:29:42): Caught an exception. Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/Mailnag/daemon/mailnagdaemon.py", line 178, in _start self._mailchecker.check(self._accounts) File "/usr/local/lib/python2.7/dist-packages/Mailnag/daemon/mailchecker.py", line 58, in check all_mails = self._mailsyncer.sync(accounts) File "/usr/local/lib/python2.7/dist-packages/Mailnag/daemon/mails.py", line 219, in sync rcv_lst = MailCollector(self._cfg, accounts).collect_mail(sort = False) File "/usr/local/lib/python2.7/dist-packages/Mailnag/daemon/mails.py", line 92, in collect_mail acc.close() File "/usr/local/lib/python2.7/dist-packages/Mailnag/common/accounts.py", line 102, in close self._get_backend().close() File "/usr/local/lib/python2.7/dist-packages/Mailnag/backends/imap.py", line 66, in close self._disconnect(self._conn) File "/usr/local/lib/python2.7/dist-packages/Mailnag/backends/imap.py", line 219, in _disconnect conn.close() File "/usr/local/lib/python2.7/dist-packages/Mailnag/common/imaplib2.py", line 669, in close raise self.error('No mailbox selected.') error: No mailbox selected. jul 05 10:33:38 cypher mailnag[26488]: INFO (2020-07-05 10:33:38): Shutting down... jul 05 10:39:42 cypher mailnag[10322]: INFO (2020-07-05 10:39:42): Checking 1 email account(s). jul 05 10:39:43 cypher mailnag[10322]: DEBUG (2020-07-05 10:39:43): Couldn't get Subject from message. jul 05 10:39:46 cypher mailnag[10322]: WARNING (2020-07-05 10:39:46): Folder [Gmail] does not exist. jul 05 10:39:46 cypher mailnag[10322]: ERROR (2020-07-05 10:39:46): Caught an exception. Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/Mailnag/daemon/mailnagdaemon.py", line 197, in poll_func self._mailchecker.check(non_idle_accounts) File "/usr/local/lib/python2.7/dist-packages/Mailnag/daemon/mailchecker.py", line 58, in check all_mails = self._mailsyncer.sync(accounts) File "/usr/local/lib/python2.7/dist-packages/Mailnag/daemon/mails.py", line 219, in sync rcv_lst = MailCollector(self._cfg, accounts).collect_mail(sort = False) File "/usr/local/lib/python2.7/dist-packages/Mailnag/daemon/mails.py", line 92, in collect_mail acc.close() File "/usr/local/lib/python2.7/dist-packages/Mailnag/common/accounts.py", line 102, in close self._get_backend().close() File "/usr/local/lib/python2.7/dist-packages/Mailnag/backends/imap.py", line 66, in close self._disconnect(self._conn) File "/usr/local/lib/python2.7/dist-packages/Mailnag/backends/imap.py", line 219, in _disconnect conn.close() File "/usr/local/lib/python2.7/dist-packages/Mailnag/common/imaplib2.py", line 669, in close raise self.error('No mailbox selected.') error: No mailbox selected. jul 05 11:19:39 cypher mailnag[50093]: INFO (2020-07-05 11:19:39): Shutting down... jul 05 11:19:45 cypher mailnag[50130]: INFO (2020-07-05 11:19:45): Checking 1 email account(s). jul 05 11:19:48 cypher mailnag[50130]: DEBUG (2020-07-05 11:19:48): Couldn't get Subject from message. jul 05 11:20:22 cypher mailnag[50130]: INFO (2020-07-05 11:20:22): Shutting down... jul 05 11:20:22 cypher mailnag[50130]: INFO (2020-07-05 11:20:22): Idler closed jul 05 11:25:57 cypher mailnag[52142]: INFO (2020-07-05 11:25:57): Checking 1 email account(s). jul 05 11:26:00 cypher mailnag[52142]: DEBUG (2020-07-05 11:26:00): Couldn't get Subject from message. jul 05 11:26:27 cypher mailnag[52142]: INFO (2020-07-05 11:26:27): Shutting down... jul 05 11:26:28 cypher mailnag[52142]: INFO (2020-07-05 11:26:28): Idler closed jul 05 11:28:05 cypher mailnag[52855]: INFO (2020-07-05 11:28:05): Shutting down... jul 05 11:28:14 cypher mailnag[52897]: INFO (2020-07-05 11:28:14): Checking 1 email account(s). jul 05 11:28:16 cypher mailnag[52897]: DEBUG (2020-07-05 11:28:16): Couldn't get Subject from message. jul 05 11:28:17 cypher mailnag[52897]: WARNING (2020-07-05 11:28:17): Folder [Gmail] does not exist. jul 05 11:28:31 cypher mailnag[52897]: DEBUG (2020-07-05 11:28:31): Couldn't get Subject from message. jul 05 11:28:50 cypher mailnag[52897]: INFO (2020-07-05 11:28:50): Shutting down... jul 05 11:28:51 cypher mailnag[52897]: INFO (2020-07-05 11:28:51): Polling thread exited successfully. jul 05 12:29:55 cypher mailnag[72874]: INFO (2020-07-05 12:29:55): Checking 1 email account(s). jul 05 12:29:58 cypher mailnag[72874]: WARNING (2020-07-05 12:29:58): Folder [Gmail] does not exist. jul 05 12:40:13 cypher mailnag[72874]: INFO (2020-07-05 12:40:13): Checking 1 email account(s). jul 05 12:40:16 cypher mailnag[72874]: WARNING (2020-07-05 12:40:16): Folder [Gmail] does not exist.

OrionRandD commented 4 years ago

(mailnag-config:78781): Gtk-CRITICAL **: 12:45:36.679: gtk_widget_event: assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed

(mailnag-config:78781): Gtk-CRITICAL **: 12:45:36.952: gtk_widget_event: assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed Launching Mailnag daemon. INFO (2020-07-05 12:46:00): Shutting down... Traceback (most recent call last): File "/usr/bin/mailnag", line 141, in if name == 'main': main() File "/usr/bin/mailnag", line 127, in main daemon = MailnagDaemon( File "/usr/lib/python3/dist-packages/Mailnag/daemon/mailnagdaemon.py", line 55, in init accountman.load_from_cfg(self._cfg, enabled_only = True) File "/usr/lib/python3/dist-packages/Mailnag/common/accounts.py", line 251, in load_from_cfg password = self._secretstore.get(self._get_account_id(user, server, imap)) File "/usr/lib/python3/dist-packages/Mailnag/common/secretstore.py", line 45, in get return Secret.password_lookup_sync(self._schema, {'id': secret_id}, None) gi.repository.GLib.Error: g-dbus-error-quark: The name org.freedesktop.secrets was not provided by any .service files (2)

OrionRandD commented 4 years ago

Now I purged mailnag from debian with "apt-get purge mailnag" and installed it from sources and upon lauching it I get this error:

mailnag-config Traceback (most recent call last): File "/usr/local/bin/mailnag-config", line 62, in do_activate self.win = ConfigWindow(self) File "/usr/local/lib/python3.8/dist-packages/Mailnag/configuration/configwindow.py", line 112, in init self._load_config() File "/usr/local/lib/python3.8/dist-packages/Mailnag/configuration/configwindow.py", line 127, in _load_config self._accountman.load_from_cfg(self._cfg) File "/usr/local/lib/python3.8/dist-packages/Mailnag/common/accounts.py", line 251, in load_from_cfg password = self._secretstore.get(self._get_account_id(user, server, imap)) File "/usr/local/lib/python3.8/dist-packages/Mailnag/common/secretstore.py", line 45, in get return Secret.password_lookup_sync(self._schema, {'id': secret_id}, None) gi.repository.GLib.Error: g-dbus-error-quark: The name org.freedesktop.secrets was not provided by any .service files (2)

OrionRandD commented 4 years ago

Something is really wrong here or either in mailnag itself. :(

I've installed with "./setup.py install As referenced in the installations instructions...

and it seems to be installed:

$ which mailnag /usr/local/bin/mailnag

pulb commented 4 years ago