You are not logged in.
Hi !
I am using isync to download my IMAP mail to a directory in maildir format. I use the following line in ~/.mbsyncrc to fetch the mail password:
PassCmd "gnome-keyring-query get mail_pw"My ~/.mbsyncrc is configured correctly, because I am able to fetch mail successfully when running:
$ mbsync mymailI want to automate this process using Systemd User/Timer Units. The Arch Wiki page for OfflineIMAP suggests that it should be possible to configure a Systemd User service to access the GNOME Keyring if a D-Bus Systemd User service is configured correctly:
https://wiki.archlinux.org/index.php/Of … md_Service
I have followed the instructions here to configure a D-Bus Systemd User service:
https://wiki.archlinux.org/index.php/Systemd/User#D-Bus
I then created ~/.config/systemd/user/mail.timer :
[Unit]
Description=Fetch mail regularly
[Timer]
OnBootSec=1min
OnUnitActiveSec=5min
[Install]
WantedBy=timers.targetand ~/.config/systemd/user/mail.service :
[Unit]
Description=Service to use isync to download mail
After=network.target network-online.target dbus.socket
[Service]
ExecStart=/usr/bin/mbsync -q mymailand enabled the timer.
However, I see the following in the journal:
** systemd[730]: Starting Service to use isync to download mail...
** systemd[730]: Started Service to use isync to download mail.
** dbus-daemon[996]: Activating service name='org.freedesktop.secrets'
** gnome-keyring-daemon[736]: The Secret Service was already initialized
** mbsync[1622]: Gkr-Message: secret service operation failed: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
** mbsync[1622]: Failed to get password: mail_pw
** mbsync[1622]: Skipping account mymail, password command exited with status 1
** systemd[730]: mail.service: main process exited, code=exited, status=1/FAILURE
** systemd[730]: Unit mail.service entered failed state.
** dbus-daemon[996]: Failed to activate service 'org.freedesktop.secrets': timed outAny advice would be appreciated.
Thanks.
Offline
Hi Dude :)
did you manage to solve the issue? I'm fighting the same thing these days.
Thanks!
Offline