]> git.wh0rd.org - home.git/blobdiff - .config/getmail/gmail.rc
getmail: add mail fetcher
[home.git] / .config / getmail / gmail.rc
diff --git a/.config/getmail/gmail.rc b/.config/getmail/gmail.rc
new file mode 100644 (file)
index 0000000..92cb710
--- /dev/null
@@ -0,0 +1,30 @@
+# http://pyropus.ca/software/getmail/configuration.html#conf-retriever
+[retriever]
+type = SimpleIMAPSSLRetriever
+server = imap.gmail.com
+mailboxes = ('Inbox',)
+
+# http://pyropus.ca/software/getmail/configuration.html#conf-destination
+[destination]
+#type = Maildir
+#path = ~/.mail/inbox/
+
+#type = MDA_external
+#path = /usr/bin/maildrop
+#arguments = ("-f", "%(sender)", "~/.config/mail/maildrop.rc")
+
+type = MDA_external
+path = /usr/libexec/dovecot/dovecot-lda
+arguments = ("-f", "%(sender)", "-c", "~/.config/mail/dovecot-lda.conf")
+
+# http://pyropus.ca/software/getmail/configuration.html#conf-options
+[options]
+verbose = 1
+message_log = ~/.config/getmail/log
+
+delete = true
+read_all = false
+
+# do not alter messages
+delivered_to = false
+received = false