From ccdc4e0c2f85ad11b81c0d5260abd105754c2bd0 Mon Sep 17 00:00:00 2001
From: Amin Bandali <amin@aminb.org>
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 ++++++++++
 getmail/.getmail/getmailrc                   | 14 ++++++++++++++
 3 files changed, 32 insertions(+)
 create mode 100644 getmail/.config/systemd/user/getmail.service
 create mode 100644 getmail/.config/systemd/user/getmail.timer
 create mode 100644 getmail/.getmail/getmailrc

(limited to 'getmail')

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
diff --git a/getmail/.getmail/getmailrc b/getmail/.getmail/getmailrc
new file mode 100644
index 0000000..11e4ce4
--- /dev/null
+++ b/getmail/.getmail/getmailrc
@@ -0,0 +1,14 @@
+[retriever]
+type = SimplePOP3SSLRetriever
+server = fencepost.gnu.org
+username = aminb
+port = 995
+use_apop = True
+
+[destination]
+type = Maildir
+path = ~/mail/gnu/Inbox/
+
+[options]
+read_all = False
+# delete = True
-- 
cgit v1.2.3-60-g2f50