aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--_mbsyncrc323
-rw-r--r--_msmtprc98
-rw-r--r--_offlineimaprc448
3 files changed, 869 insertions, 0 deletions
diff --git a/_mbsyncrc b/_mbsyncrc
new file mode 100644
index 0000000..74fd0f8
--- /dev/null
+++ b/_mbsyncrc
@@ -0,0 +1,323 @@
+#
+# ~/.mbsyncrc
+#
+# NOTE: empty lines between sections are matters!
+#
+# Aaron LI
+# Created: 2016-01-29
+# Updated: 2016-01-29
+#
+
+
+## Global configuration section
+Expunge Both
+# auto create missing mailboxes, both locally and on the server
+Create Both
+# save the synchronization state files in the relevant directory
+SyncState *
+
+
+## Account "gmail-aly" {{{
+IMAPAccount gmail-aly
+Host imap.gmail.com
+User aaronly.me@gmail.com
+PassCmd "gpg2 --quiet --for-your-eyes-only --no-tty --decrypt ~/.private/gmail-aly.gpg"
+UseIMAPS yes
+
+# remote store
+IMAPStore gmail-aly-remote
+Account gmail-aly
+
+# local store
+MaildirStore gmail-aly-local
+Path ~/mail/gmail-aly/
+
+# Connections between remote and local folders
+#Channel gmail-aly-inbox
+#Master :gmail-aly-remote:"INBOX"
+#Slave :gmail-aly-local:inbox
+
+Channel gmail-aly-archive
+Master :gmail-aly-remote:"[Gmail]/All Mail"
+Slave :gmail-aly-local:archive
+
+Channel gmail-aly-drafts
+Master :gmail-aly-remote:"[Gmail]/Drafts"
+Slave :gmail-aly-local:drafts
+
+Channel gmail-aly-junk
+Master :gmail-aly-remote:"[Gmail]/Spam"
+Slave :gmail-aly-local:junk
+
+Channel gmail-aly-trash
+Master :gmail-aly-remote:"[Gmail]/Trash"
+Slave :gmail-aly-local:trash
+
+# Groups put together channels
+Group gmail-aly
+Channels gmail-aly-archive gmail-aly-drafts gmail-aly-junk gmail-aly-trash
+## "gmail-aly" }}}
+
+
+## Account "gmail-li" {{{
+IMAPAccount gmail-li
+Host imap.gmail.com
+User liweitianux@gmail.com
+PassCmd "gpg2 --quiet --for-your-eyes-only --no-tty --decrypt ~/.private/gmail-li.gpg"
+UseIMAPS yes
+
+IMAPStore gmail-li-remote
+Account gmail-li
+
+MaildirStore gmail-li-local
+Path ~/mail/gmail-li/
+
+#Channel gmail-li-inbox
+#Master :gmail-li-remote:"INBOX"
+#Slave :gmail-li-local:inbox
+
+Channel gmail-li-archive
+Master :gmail-li-remote:"[Gmail]/All Mail"
+Slave :gmail-li-local:archive
+
+Channel gmail-li-drafts
+Master :gmail-li-remote:"[Gmail]/Drafts"
+Slave :gmail-li-local:drafts
+
+Channel gmail-li-junk
+Master :gmail-li-remote:"[Gmail]/Spam"
+Slave :gmail-li-local:junk
+
+Channel gmail-li-trash
+Master :gmail-li-remote:"[Gmail]/Trash"
+Slave :gmail-li-local:trash
+
+Group gmail-li
+Channels gmail-li-archive gmail-li-drafts gmail-li-junk gmail-li-trash
+## "gmail-li" }}}
+
+
+## Account "outlook-aly" {{{
+IMAPAccount outlook-aly
+Host imap-mail.outlook.com
+User aaronly.me@outlook.com
+PassCmd "gpg2 --quiet --for-your-eyes-only --no-tty --decrypt ~/.private/outlook-aly.gpg"
+UseIMAPS yes
+
+IMAPStore outlook-aly-remote
+Account outlook-aly
+
+MaildirStore outlook-aly-local
+Path ~/mail/outlook-aly/
+
+Channel outlook-aly-inbox
+Master :outlook-aly-remote:Inbox
+Slave :outlook-aly-local:inbox
+
+Channel outlook-aly-sent
+Master :outlook-aly-remote:Sent
+Slave :outlook-aly-local:sent
+
+Channel outlook-aly-archive
+Master :outlook-aly-remote:Archive
+Slave :outlook-aly-local:archive
+
+Channel outlook-aly-drafts
+Master :outlook-aly-remote:Drafts
+Slave :outlook-aly-local:drafts
+
+Channel outlook-aly-junk
+Master :outlook-aly-remote:Junk
+Slave :outlook-aly-local:junk
+
+Channel outlook-aly-trash
+Master :outlook-aly-remote:Deleted
+Slave :outlook-aly-local:trash
+
+Channel outlook-aly-freebsd
+Master :outlook-aly-remote:FreeBSD
+Slave :outlook-aly-local:freebsd
+
+Channel outlook-aly-openbsd
+Master :outlook-aly-remote:openbsd
+Slave :outlook-aly-local:openbsd
+
+Group outlook-aly
+Channels outlook-aly-inbox outlook-aly-sent outlook-aly-archive outlook-aly-drafts outlook-aly-junk outlook-aly-trash outlook-aly-freebsd outlook-aly-openbsd
+## "outlook-aly" }}}
+
+
+## Account "outlook-li" {{{
+IMAPAccount outlook-li
+Host imap-mail.outlook.com
+User liweitianux@live.com
+PassCmd "gpg2 --quiet --for-your-eyes-only --no-tty --decrypt ~/.private/outlook-li.gpg"
+UseIMAPS yes
+
+IMAPStore outlook-li-remote
+Account outlook-li
+
+MaildirStore outlook-li-local
+Path ~/mail/outlook-li/
+
+Channel outlook-li-inbox
+Master :outlook-li-remote:Inbox
+Slave :outlook-li-local:inbox
+
+Channel outlook-li-sent
+Master :outlook-li-remote:Sent
+Slave :outlook-li-local:sent
+
+Channel outlook-li-archive
+Master :outlook-li-remote:Archive
+Slave :outlook-li-local:archive
+
+Channel outlook-li-drafts
+Master :outlook-li-remote:Drafts
+Slave :outlook-li-local:drafts
+
+Channel outlook-li-junk
+Master :outlook-li-remote:Junk
+Slave :outlook-li-local:junk
+
+Channel outlook-li-trash
+Master :outlook-li-remote:Deleted
+Slave :outlook-li-local:trash
+
+Channel outlook-li-chats
+Master :outlook-li-remote:Chats
+Slave :outlook-li-local:chats
+
+Group outlook-li
+Channels outlook-li-inbox outlook-li-sent outlook-li-archive outlook-li-drafts outlook-li-junk outlook-li-trash outlook-li-chats
+## "outlook-li" }}}
+
+
+## Account "sjtu" {{{
+IMAPAccount sjtu
+Host imap.sjtu.edu.cn
+User liweitianux@sjtu.edu.cn
+PassCmd "gpg2 --quiet --for-your-eyes-only --no-tty --decrypt ~/.private/sjtu.gpg"
+UseIMAPS yes
+
+IMAPStore sjtu-remote
+Account sjtu
+
+MaildirStore sjtu-local
+Path ~/mail/sjtu/
+
+Channel sjtu-inbox
+Master :sjtu-remote:INBOX
+Slave :sjtu-local:inbox
+
+Channel sjtu-sent
+Master :sjtu-remote:Sent
+Slave :sjtu-local:sent
+
+Channel sjtu-archive
+Master :sjtu-remote:Archive
+Slave :sjtu-local:archive
+
+Channel sjtu-drafts
+Master :sjtu-remote:Drafts
+Slave :sjtu-local:drafts
+
+Channel sjtu-junk
+Master :sjtu-remote:Junk
+Slave :sjtu-local:junk
+
+Channel sjtu-trash
+Master :sjtu-remote:Trash
+Slave :sjtu-local:trash
+
+Group sjtu
+Channels sjtu-inbox sjtu-sent sjtu-archive sjtu-drafts sjtu-junk sjtu-trash
+## "sjtu" }}}
+
+
+## Account "autistici" {{{
+IMAPAccount autistici
+Host mail.autistici.org
+User liweitianux@autistici.org
+PassCmd "gpg2 --quiet --for-your-eyes-only --no-tty --decrypt ~/.private/autistici.gpg"
+UseIMAPS yes
+CertificateFile ~/.private/ca-autistici.crt
+
+IMAPStore autistici-remote
+Account autistici
+
+MaildirStore autistici-local
+Path ~/mail/autistici/
+
+Channel autistici-inbox
+Master :autistici-remote:INBOX
+Slave :autistici-local:inbox
+
+Channel autistici-sent
+Master :autistici-remote:Sent
+Slave :autistici-local:sent
+
+Channel autistici-archive
+Master :autistici-remote:Archive
+Slave :autistici-local:archive
+
+Channel autistici-drafts
+Master :autistici-remote:Drafts
+Slave :autistici-local:drafts
+
+Channel autistici-junk
+Master :autistici-remote:Spam
+Slave :autistici-local:junk
+
+Channel autistici-trash
+Master :autistici-remote:Trash
+Slave :autistici-local:trash
+
+Group autistici
+Channels autistici-inbox autistici-sent autistici-archive autistici-drafts autistici-junk autistici-trash
+## "autistici" }}}
+
+
+## Account "foxmail" {{{
+IMAPAccount foxmail
+Host imap.qq.com
+User liweitianux@foxmail.com
+PassCmd "gpg2 --quiet --for-your-eyes-only --no-tty --decrypt ~/.private/foxmail.gpg"
+UseIMAPS yes
+
+IMAPStore foxmail-remote
+Account foxmail
+
+MaildirStore foxmail-local
+Path ~/mail/foxmail/
+
+Channel foxmail-inbox
+Master :foxmail-remote:INBOX
+Slave :foxmail-local:inbox
+
+Channel foxmail-sent
+Master :foxmail-remote:"Sent Messages"
+Slave :foxmail-local:sent
+
+Channel foxmail-archive
+Master :foxmail-remote:Archive
+Slave :foxmail-local:archive
+
+Channel foxmail-drafts
+Master :foxmail-remote:Drafts
+Slave :foxmail-local:drafts
+
+Channel foxmail-junk
+Master :foxmail-remote:Junk
+Slave :foxmail-local:junk
+
+Channel foxmail-trash
+Master :foxmail-remote:"Deleted Messages"
+Slave :foxmail-local:trash
+
+Group foxmail
+Channels foxmail-inbox foxmail-sent foxmail-archive foxmail-drafts foxmail-junk foxmail-trash
+## "foxmail" }}}
+
+
+# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=conf: #
diff --git a/_msmtprc b/_msmtprc
new file mode 100644
index 0000000..0cbc3a7
--- /dev/null
+++ b/_msmtprc
@@ -0,0 +1,98 @@
+##
+## ~/.msmtprc
+## msmtp configuration
+##
+## Note:
+## * Get server information (e.g., certificate fingerprint):
+## $ msmtp --serverinfo --tls --tls-certcheck=off --host=<host>
+##
+## Reference:
+## [1] ArchWiki - msmtp
+## https://wiki.archlinux.org/index.php/Msmtp
+##
+## Aaron LI
+## Created: 2015-02-01
+## Updated: 2016-01-29
+##
+
+
+### Default settings for all accounts ###
+defaults
+auto_from off
+auth on
+port 587
+tls on
+tls_starttls on
+tls_certcheck on
+# Just use `tls_fingerprint' for better security.
+# If use `tls_trust_file', the `tls_crl_file' should also be used.
+#tls_trust_file ~/.private/ca-certificates.crt
+logfile ~/.msmtp/msmtp.log
+
+
+### Gmail - aaronly.me ###
+account gmail-aly
+host smtp.gmail.com
+# Fingerprint of a single certificate to accept for TLS
+# Validity: Wed 20 Jan 2016 07:49:35 PM CST - Tue 19 Apr 2016 08:00:00 AM CST
+tls_fingerprint BD:73:EF:CF:E2:A0:34:32:CE:3C:12:C2:34:B8:AC:6A:94:A9:20:76
+from aaronly.me@gmail.com
+user aaronly.me@gmail.com
+passwordeval "gpg2 --quiet --for-your-eyes-only --no-tty --decrypt ~/.private/gmail-aly.gpg"
+
+
+### Gmail - liweitianux ###
+account gmail-li
+host smtp.gmail.com
+# Validity: Wed 20 Jan 2016 07:49:35 PM CST - Tue 19 Apr 2016 08:00:00 AM CST
+tls_fingerprint BD:73:EF:CF:E2:A0:34:32:CE:3C:12:C2:34:B8:AC:6A:94:A9:20:76
+from liweitianux@gmail.com
+user liweitianux@gmail.com
+passwordeval "gpg2 --quiet --for-your-eyes-only --no-tty --decrypt ~/.private/gmail-li.gpg"
+
+
+### Outlook - aaronly.me ###
+account outlook-aly
+host smtp-mail.outlook.com
+# Fingerprint of a single certificate to accept for TLS
+# Validity: Wed 16 Dec 2015 06:26:11 AM CST - Fri 16 Dec 2016 06:26:11 AM CST
+tls_fingerprint C9:14:DD:96:6D:BD:09:12:C3:6E:C2:94:F8:3D:8D:3B:5A:43:47:29
+from aaronly.me@outlook.com
+user aaronly.me@outlook.com
+passwordeval "gpg2 --quiet --for-your-eyes-only --no-tty --decrypt ~/.private/outlook-aly.gpg"
+
+
+### Outlook - liweitianux ###
+account outlook-li
+host smtp-mail.outlook.com
+# Validity: Wed 16 Dec 2015 06:26:11 AM CST - Fri 16 Dec 2016 06:26:11 AM CST
+tls_fingerprint C9:14:DD:96:6D:BD:09:12:C3:6E:C2:94:F8:3D:8D:3B:5A:43:47:29
+from liweitianux@live.com
+user liweitianux@live.com
+passwordeval "gpg2 --quiet --for-your-eyes-only --no-tty --decrypt ~/.private/outlook-li.gpg"
+
+
+### SJTU - liweitianux ###
+account sjtu
+host smtp.sjtu.edu.cn
+# Validity: Thu 22 May 2014 08:46:47 AM CST - Thu 06 Apr 2017 02:54:22 PM CST
+tls_fingerprint B1:EC:0B:44:E7:AE:FB:98:3E:01:DB:C3:C7:43:2B:3A:AE:49:10:FE
+from liweitianux@sjtu.edu.cn
+user liweitianux@sjtu.edu.cn
+passwordeval "gpg2 --quiet --for-your-eyes-only --no-tty --decrypt ~/.private/sjtu.gpg"
+
+
+### Autistici ###
+account autistici
+host smtp.autistici.org
+#tls_trust_file ~/.private/ca-autistici.crt
+# Validity: Sat 23 May 2015 05:57:46 PM CST - Mon 22 May 2017 05:57:46 PM CST
+tls_fingerprint D2:85:4A:D7:33:88:48:E5:9B:6A:55:A9:06:3C:ED:76:88:88:69:6F
+from liweitianux@autistici.org
+user liweitianux@autistici.org
+passwordeval "gpg2 --quiet --for-your-eyes-only --no-tty --decrypt ~/.private/autistici.gpg"
+
+
+### Set the default account ###
+account default : outlook-aly
+
diff --git a/_offlineimaprc b/_offlineimaprc
new file mode 100644
index 0000000..5bfbea3
--- /dev/null
+++ b/_offlineimaprc
@@ -0,0 +1,448 @@
+##
+## ~/.offlineimaprc
+## OfflineIMAP configuration
+##
+## Reference:
+## [1] OfflineIMAP documentation
+## https://offlineimap.readthedocs.org/en/latest/index.html
+## [2] ArchWiki - OfflineIMAP
+## https://wiki.archlinux.org/index.php/OfflineIMAP
+## [3] The Homely Mutt / Steve Losh
+## http://stevelosh.com/blog/2012/10/the-homely-mutt/
+## [4] Gmail - How actions sync in IMAP
+## https://support.google.com/mail/answer/77657
+## [5] Gmail - Deleting IMAP messages
+## https://support.google.com/mail/answer/78755
+##
+## * How to rename a local OfflineIMAP managed folder
+## Credits: https://www.preining.info/blog/2015/09/rename-offlineimap-folder/
+##
+## Aaron LI <aaronly.me@gmail.com>
+## Created: 2015-02-03
+## Updated: 2016-01-29
+##
+
+
+[general]
+# Store metadata aside with maildir
+metadata = ~/mail/offlineimap
+# Function 'mailpasswd': invoke gpg2 to decrypt passwords.
+pythonfile = ~/.offlineimap/offlineimap.py
+#
+# List of accounts to be synced, separated by a comma.
+accounts = gmail-aly, gmail-li, outlook-aly, outlook-li, sjtu, autistici, foxmail
+#
+# Control how many accuonts may be synced simulaneously
+# NOTE: if you are using autorefresh and have more than one account,
+# your must set this number to be >= to the number of accounts you
+# have; since any given sync run never "finishes" due to a timer,
+# you will never sync your additional accounts if this is 1.
+maxsyncaccounts = 7
+#
+# UI: blinkenlights, ttyui, quiet (suppress anything but errors)
+ui = ttyui
+
+
+[Account example] ## {{{
+localrepository = example-local
+remoterepository = example-remote
+# Supported historical backend: plain, sqlite
+status_backend = sqlite
+# Minutes between sycns
+autorefresh = 15
+# Number of quick-syncs between autorefreshes.
+# Quick-syncs do not update if the only changes were to IMAP flags.
+quick = 5
+# pre and post sync hook to execute a external command.
+#presynchook = imapfilter
+#postsynchook = ~/.offlineimap/postsync.sh
+#
+[Repository example-local]
+# Supported local repository types: Maildir, GmailMaildir, IMAP
+type = Maildir
+localfolders = ~/mail/example
+# Translate local folder names to remote folder names
+#nametrans = ???
+#
+[Repository example-remote]
+# Remote repository type: IMAP, Gmail
+type = IMAP
+remotehost = imap.example.com
+remoteport = 993
+remoteuser = username@example.com
+#remotepass = password
+remotepasseval = mailpasswd("example")
+ssl = yes
+sslcacertfile = ~/.private/ca-certificates.crt
+#cert_fingerprint = <SHA1_40_hex_digits>[, ...]
+# Hold the connection open, instead of closing the connection once
+# a sync is complete. (unit: seconds)
+keepalive = 60
+# Keep connection open between refreshes.
+holdconnectionopen = yes
+# Disable remote folder creation to match the local repository
+#createfolders = True
+# Filter the IMAP folders to be sync'ed
+# NOTE: operates on the *untranslated* folder name (i.e., before nametrans)
+#folderfilter = ???
+# Translate remote folder names to local folder names
+# Do NOT forget the *reverse nametrans* for local repository
+#nametrans = ???
+## example }}}
+
+
+[Account gmail-aly] ## {{{
+localrepository = gmail-aly-local
+remoterepository = gmail-aly-remote
+status_backend = sqlite
+# Sync GMail labels with the local repository.
+synclabels = yes
+# Name of the header to use for label storage.
+# X-Label: space-separated
+# X-Keywords: comma-separated
+labelsheader = X-Keywords
+autorefresh = 30
+quick = 5
+#postsynchook = ~/.offlineimap/postsync.sh
+#
+[Repository gmail-aly-local]
+type = GmailMaildir
+localfolders = ~/mail/gmail-aly
+# Translate local folder names to remote folder names
+nametrans = lambda folder: {
+ 'inbox' : 'INBOX',
+ 'sent' : '[Gmail]/Sent Mail',
+ 'archive' : '[Gmail]/All Mail',
+ 'flagged' : '[Gmail]/Starred',
+ 'drafts' : '[Gmail]/Drafts',
+ 'junk' : '[Gmail]/Spam',
+ 'trash' : '[Gmail]/Trash',
+ }.get(folder, folder)
+#
+[Repository gmail-aly-remote]
+type = Gmail
+remoteuser = aaronly.me@gmail.com
+remotepasseval = mailpasswd("gmail-aly")
+keepalive = 60
+holdconnectionopen = yes
+ssl = yes
+sslcacertfile = ~/.private/ca-certificates.crt
+# Validity: Jan 20 12:35:31 2016 GMT - Apr 19 00:00:00 2016 GMT
+cert_fingerprint = 3d767a9418d07d2bc8655c14da03db47f0ace05d
+# Filter the IMAP folders to be sync'ed
+# NOTE: operates on the *untranslated* folder name (i.e., before nametrans)
+#folderfilter = lambda folder: folder in [
+# 'INBOX', '[Gmail]/Sent Mail', '[Gmail]/All Mail',
+# '[Gmail]/Starred', '[Gmail]/Drafts',
+# '[Gmail]/Spam', '[Gmail]/Trash',
+# 'aly', 'google', 'test'
+# ]
+# Sync 'All Mail'/' and handle tags/labels with notmuch;
+# also sync 'Spam' and 'Trash' to manage spam and message deletion.
+# NOTE: Gmail do NOT allow delete message from 'All Mail';
+# however, if a message deleted from 'Spam' or 'Trash', it will be
+# deleted permanently.
+folderfilter = lambda folder: folder in [
+ '[Gmail]/All Mail', '[Gmail]/Drafts',
+ '[Gmail]/Spam', '[Gmail]/Trash',
+ ]
+# Translate remote folder names to local folder names
+# Do NOT forget the *reverse nametrans* for local repository
+nametrans = lambda folder: {
+ 'INBOX' : 'inbox',
+ '[Gmail]/Sent Mail' : 'sent',
+ '[Gmail]/All Mail' : 'archive',
+ '[Gmail]/Starred' : 'flagged',
+ '[Gmail]/Drafts' : 'drafts',
+ '[Gmail]/Spam' : 'junk',
+ '[Gmail]/Trash' : 'trash',
+ }.get(folder, folder)
+## gmail-aly }}}
+
+
+[Account gmail-li] ## {{{
+localrepository = gmail-li-local
+remoterepository = gmail-li-remote
+status_backend = sqlite
+synclabels = yes
+labelsheader = X-Keywords
+autorefresh = 15
+quick = 5
+#postsynchook = ~/.offlineimap/postsync.sh
+#
+[Repository gmail-li-local]
+type = GmailMaildir
+localfolders = ~/mail/gmail-li
+nametrans = lambda folder: {
+ 'inbox' : 'INBOX',
+ 'sent' : '[Gmail]/Sent Mail',
+ 'archive' : '[Gmail]/All Mail',
+ 'flagged' : '[Gmail]/Starred',
+ 'drafts' : '[Gmail]/Drafts',
+ 'junk' : '[Gmail]/Spam',
+ 'trash' : '[Gmail]/Trash',
+ }.get(folder, folder)
+#
+[Repository gmail-li-remote]
+type = Gmail
+remoteuser = liweitianux@gmail.com
+remotepasseval = mailpasswd("gmail-li")
+keepalive = 60
+holdconnectionopen = yes
+ssl = yes
+sslcacertfile = ~/.private/ca-certificates.crt
+# Validity: Jan 20 12:35:31 2016 GMT - Apr 19 00:00:00 2016 GMT
+cert_fingerprint = 3d767a9418d07d2bc8655c14da03db47f0ace05d
+folderfilter = lambda folder: folder in [
+ '[Gmail]/All Mail', '[Gmail]/Drafts',
+ '[Gmail]/Spam', '[Gmail]/Trash',
+ ]
+nametrans = lambda folder: {
+ 'INBOX' : 'inbox',
+ '[Gmail]/Sent Mail' : 'sent',
+ '[Gmail]/All Mail' : 'archive',
+ '[Gmail]/Starred' : 'flagged',
+ '[Gmail]/Drafts' : 'drafts',
+ '[Gmail]/Spam' : 'junk',
+ '[Gmail]/Trash' : 'trash',
+ }.get(folder, folder)
+## gmail-li }}}
+
+
+[Account outlook-aly] ## {{{
+localrepository = outlook-aly-local
+remoterepository = outlook-aly-remote
+status_backend = sqlite
+autorefresh = 30
+quick = 5
+#postsynchook = ~/.offlineimap/postsync.sh
+#
+[Repository outlook-aly-local]
+type = Maildir
+localfolders = ~/mail/outlook-aly
+nametrans = lambda folder: {
+ 'inbox' : 'Inbox',
+ 'sent' : 'Sent',
+ 'drafts' : 'Drafts',
+ 'archive' : 'Archive',
+ 'junk' : 'Junk',
+ 'trash' : 'Deleted',
+ }.get(folder, folder)
+#
+[Repository outlook-aly-remote]
+type = IMAP
+remotehost = imap-mail.outlook.com
+remoteport = 993
+remoteuser = aaronly.me@outlook.com
+remotepasseval = mailpasswd("outlook-aly")
+ssl = yes
+sslcacertfile = ~/.private/ca-certificates.crt
+# Validity: Dec 15 22:26:11 2015 GMT - Dec 15 22:26:11 2016 GMT
+cert_fingerprint = c914dd966dbd0912c36ec294f83d8d3b5a434729
+keepalive = 60
+holdconnectionopen = yes
+folderfilter = lambda folder: folder in [
+ 'Inbox', 'Sent', 'Archive',
+ 'Drafts', 'Junk', 'Deleted',
+ 'FreeBSD', 'OpenBSD',
+ ]
+nametrans = lambda folder: {
+ 'Inbox' : 'inbox',
+ 'Sent' : 'sent',
+ 'Archive' : 'archive',
+ 'Drafts' : 'drafts',
+ 'Junk' : 'junk',
+ 'Deleted' : 'trash',
+ }.get(folder, folder)
+## outlook-aly }}}
+
+
+[Account outlook-li] ## {{{
+localrepository = outlook-li-local
+remoterepository = outlook-li-remote
+status_backend = sqlite
+autorefresh = 15
+quick = 5
+#postsynchook = ~/.offlineimap/postsync.sh
+#
+[Repository outlook-li-local]
+type = Maildir
+localfolders = ~/mail/outlook-li
+nametrans = lambda folder: {
+ 'inbox' : 'Inbox',
+ 'sent' : 'Sent',
+ 'drafts' : 'Drafts',
+ 'archive' : 'Archive',
+ 'junk' : 'Junk',
+ 'trash' : 'Deleted',
+ }.get(folder, folder)
+#
+[Repository outlook-li-remote]
+type = IMAP
+remotehost = imap-mail.outlook.com
+remoteport = 993
+remoteuser = liweitianux@live.com
+remotepasseval = mailpasswd("outlook-li")
+ssl = yes
+sslcacertfile = ~/.private/ca-certificates.crt
+# Validity: Dec 15 22:26:11 2015 GMT - Dec 15 22:26:11 2016 GMT
+cert_fingerprint = c914dd966dbd0912c36ec294f83d8d3b5a434729
+keepalive = 60
+holdconnectionopen = yes
+folderfilter = lambda folder: folder in [
+ 'Inbox', 'Sent', 'Archive',
+ 'Drafts', 'Junk', 'Deleted', 'Chats'
+ ]
+nametrans = lambda folder: {
+ 'Inbox' : 'inbox',
+ 'Sent' : 'sent',
+ 'Archive' : 'archive',
+ 'Drafts' : 'drafts',
+ 'Junk' : 'junk',
+ 'Deleted' : 'trash',
+ }.get(folder, folder)
+## outlook-li }}}
+
+
+[Account sjtu] ## {{{
+localrepository = sjtu-local
+remoterepository = sjtu-remote
+status_backend = sqlite
+autorefresh = 15
+quick = 5
+#postsynchook = ~/.offlineimap/postsync.sh
+#
+[Repository sjtu-local]
+type = Maildir
+localfolders = ~/mail/sjtu
+nametrans = lambda folder: {
+ 'inbox' : 'INBOX',
+ 'sent' : 'Sent',
+ 'drafts' : 'Drafts',
+ 'archive' : 'Archive',
+ 'junk' : 'Junk',
+ 'trash' : 'Trash',
+ }.get(folder, folder)
+#
+[Repository sjtu-remote]
+type = IMAP
+remotehost = imap.sjtu.edu.cn
+remoteport = 993
+remoteuser = liweitianux@sjtu.edu.cn
+remotepasseval = mailpasswd("sjtu")
+ssl = yes
+sslcacertfile = ~/.private/ca-certificates.crt
+# Validity: May 22 00:46:47 2014 GMT - Apr 6 06:54:22 2017 GMT
+cert_fingerprint = b1ec0b44e7aefb983e01dbc3c7432b3aae4910fe
+keepalive = 60
+holdconnectionopen = yes
+folderfilter = lambda folder: folder in [
+ 'INBOX', 'Sent', 'Archive',
+ 'Drafts', 'Junk', 'Trash'
+ ]
+nametrans = lambda folder: {
+ 'INBOX' : 'inbox',
+ 'Sent' : 'sent',
+ 'Archive' : 'archive',
+ 'Drafts' : 'drafts',
+ 'Junk' : 'junk',
+ 'Trash' : 'trash',
+ }.get(folder, folder)
+## sjtu }}}
+
+
+[Account autistici] ## {{{
+localrepository = autistici-local
+remoterepository = autistici-remote
+status_backend = sqlite
+autorefresh = 60
+quick = 5
+#postsynchook = ~/.offlineimap/postsync.sh
+#
+[Repository autistici-local]
+type = Maildir
+localfolders = ~/mail/autistici
+nametrans = lambda folder: {
+ 'inbox' : 'INBOX',
+ 'sent' : 'Sent',
+ 'drafts' : 'Drafts',
+ 'archive' : 'Archive',
+ 'junk' : 'Spam',
+ 'trash' : 'Trash',
+ }.get(folder, folder)
+#
+[Repository autistici-remote]
+type = IMAP
+remotehost = mail.autistici.org
+remoteport = 993
+remoteuser = liweitianux@autistici.org
+remotepasseval = mailpasswd("autistici")
+ssl = yes
+sslcacertfile = ~/.private/ca-autistici.crt
+# Validity: May 23 09:56:37 2015 GMT - May 22 09:56:37 2017 GMT
+cert_fingerprint = d59db2e0a7a8a0081d3111d3aaf51ccc7a3f20e2
+keepalive = 60
+holdconnectionopen = yes
+folderfilter = lambda folder: folder in [
+ 'INBOX', 'Sent', 'Archive',
+ 'Drafts', 'Spam', 'Trash'
+ ]
+nametrans = lambda folder: {
+ 'INBOX' : 'inbox',
+ 'Sent' : 'sent',
+ 'Archive' : 'archive',
+ 'Drafts' : 'drafts',
+ 'Spam' : 'junk',
+ 'Trash' : 'trash',
+ }.get(folder, folder)
+## autistici }}}
+
+
+[Account foxmail] ## {{{
+localrepository = foxmail-local
+remoterepository = foxmail-remote
+status_backend = sqlite
+autorefresh = 60
+quick = 5
+#postsynchook = ~/.offlineimap/postsync.sh
+#
+[Repository foxmail-local]
+type = Maildir
+localfolders = ~/mail/foxmail
+nametrans = lambda folder: {
+ 'inbox' : 'INBOX',
+ 'sent' : 'Sent Messages',
+ 'drafts' : 'Drafts',
+ 'archive' : 'Archive',
+ 'junk' : 'Junk',
+ 'trash' : 'Deleted Messages',
+ }.get(folder, folder)
+#
+[Repository foxmail-remote]
+type = IMAP
+remotehost = imap.qq.com
+remoteport = 993
+remoteuser = liweitianux@foxmail.com
+remotepasseval = mailpasswd("foxmail")
+ssl = yes
+sslcacertfile = ~/.private/ca-certificates.crt
+# Validity: Jan 27 00:00:00 2016 GMT - Oct 23 23:59:59 2016 GMT
+cert_fingerprint = 7a845668b97288ad8d265372f6e6e041c73e8d1e
+keepalive = 60
+holdconnectionopen = yes
+folderfilter = lambda folder: folder in [
+ 'INBOX', 'Sent Messages', 'Archive',
+ 'Drafts', 'Junk', 'Deleted Messages'
+ ]
+nametrans = lambda folder: {
+ 'INBOX' : 'inbox',
+ 'Sent Messages' : 'sent',
+ 'Archive' : 'archive',
+ 'Drafts' : 'drafts',
+ 'Junk' : 'junk',
+ 'Deleted Messages' : 'trash',
+ }.get(folder, folder)
+## foxmail }}}
+
+
+# vim: set ts=4 sw=4 tw=0 fenc=utf-8 ft=python: #