summaryrefslogtreecommitdiffstats
path: root/getmail/.config/systemd
diff options
context:
space:
mode:
authorAmin Bandali <amin@aminb.org>2016-12-13 11:10:38 -0500
committerAmin Bandali <amin@aminb.org>2016-12-13 11:29:49 -0500
commitccdc4e0c2f85ad11b81c0d5260abd105754c2bd0 (patch)
treee4251812e291faf3e0f0f2b46f86dcf48c466403 /getmail/.config/systemd
parent6bd89970263a7779091b3a9c817b74913aac628c (diff)
downloadconfigs-ccdc4e0c2f85ad11b81c0d5260abd105754c2bd0.tar.gz
configs-ccdc4e0c2f85ad11b81c0d5260abd105754c2bd0.tar.xz
configs-ccdc4e0c2f85ad11b81c0d5260abd105754c2bd0.zip
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
Diffstat (limited to '')
-rw-r--r--getmail/.config/systemd/user/getmail.service8
-rw-r--r--getmail/.config/systemd/user/getmail.timer10
2 files changed, 18 insertions, 0 deletions
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