From ccdc4e0c2f85ad11b81c0d5260abd105754c2bd0 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Tue, 13 Dec 2016 11:10:38 -0500 Subject: Add my GNU email Use getmail to fetch my GNU mail over pop3. After stowing getmail config, run it like this the first time: getmail --store-password-in-gnome-keyring to save the password in the Default gnome keyring. Then, proceed to run it without arguments, and/or enable and start the systemd timer for auto-syncing. Requires: getmail gnome-keyring python2-gnome-keyring --- getmail/.config/systemd/user/getmail.service | 8 ++++++++ getmail/.config/systemd/user/getmail.timer | 10 ++++++++++ 2 files changed, 18 insertions(+) create mode 100644 getmail/.config/systemd/user/getmail.service create mode 100644 getmail/.config/systemd/user/getmail.timer (limited to 'getmail/.config/systemd/user') diff --git a/getmail/.config/systemd/user/getmail.service b/getmail/.config/systemd/user/getmail.service new file mode 100644 index 0000000..4e91ef3 --- /dev/null +++ b/getmail/.config/systemd/user/getmail.service @@ -0,0 +1,8 @@ +[Unit] +Description=getmail service + +[Service] +Type=oneshot +ExecStart=/usr/bin/getmail +StandardOutput=syslog +StandardError=syslog diff --git a/getmail/.config/systemd/user/getmail.timer b/getmail/.config/systemd/user/getmail.timer new file mode 100644 index 0000000..64036a8 --- /dev/null +++ b/getmail/.config/systemd/user/getmail.timer @@ -0,0 +1,10 @@ +[Unit] +Description=getmail timer + +[Timer] +OnCalendar=0/1:00:00 +Persistent=true +Unit=getmail.service + +[Install] +WantedBy=timers.target -- cgit v1.2.3-60-g2f50