]> git.rmz.io Git - dotfiles.git/commitdiff
offlineimap: remove since superseded by isync
authorSamir Benmendil <me@rmz.io>
Mon, 1 Jan 2018 23:17:17 +0000 (23:17 +0000)
committerSamir Benmendil <me@rmz.io>
Mon, 1 Jan 2018 23:17:17 +0000 (23:17 +0000)
offlineimap/config [deleted file]
offlineimap/utils.py [deleted file]
systemd/user/offlineimap.service [deleted file]

diff --git a/offlineimap/config b/offlineimap/config
deleted file mode 100644 (file)
index 8125475..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-[general]
-metadata = $XDG_DATA_HOME/offlineimap
-accounts = gmail
-maxsyncaccounts = 1
-#ui = basic
-#ignore-readonly = no
-pythonfile = $XDG_CONFIG_HOME/offlineimap/utils.py
-socktimeout = 120
-fsync = false
-
-[mbnames]
-enabled = yes
-filename = $my_config_dir/mailboxes
-header = "mailboxes "
-peritem = "+%(accountname)s/%(foldername)s"
-sep = " "
-footer = "\n"
-# sort_keyfunc = lambda d: (d['accountname'], d['foldername'])
-sort_keyfunc = sort_key
-
-[Account gmail]
-localrepository = gmail-local
-remoterepository = gmail-remote
-autorefresh = 10
-quick = -1
-# presynchook = imapfilter
-# postsynchook = notifysync.sh
-# presynchook = imapfilter -c someotherconfig.lua
-status_backend = sqlite
-# maxsize = 2000000
-# maxage = 10
-#maildir-windows-compatible = no
-synclabels = yes
-labelsheader = X-Label
-filterheaders = X-Label
-#ignorelabels = \Inbox, \Starred, \Sent, \Draft, \Spam, \Trash, \Important
-ignorelabels = \Draft, \Important
-
-[Repository gmail-local]
-type = GmailMaildir
-localfolders = $MAILDIR/gmail
-utime_from_headers = yes  # not sure if this is compatible with `quick = -1`
-filename_use_mail_timestamp = yes
-#sep = .
-#restoreatime = no
-nametrans = translocal
-
-[Repository gmail-remote]
-type = Gmail
-remoteuser = samir.benmendil@gmail.com
-nametrans = transremote
-# folderfilter = lambda foldername: foldername in ['[Google Mail]/All Mail', '[Google Mail]/Drafts', '[Google Mail]/Bin']
-sslcacertfile = /etc/ssl/certs/ca-certificates.crt
-trashfolder = '[Google Mail]/Bin'
-spamfolder = '[Google Mail]/Spam'
-usecompression = yes
-maxconnections = 3
-holdconnectionopen = yes
-keepalive = 60
-auth_mechanisms = GSSAPI, CRAM-MD5, PLAIN, LOGIN
-# readonly = True
diff --git a/offlineimap/utils.py b/offlineimap/utils.py
deleted file mode 100644 (file)
index 5b6976c..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-mapping = { 'INBOX':                   'inbox'
-          , '[Google Mail]/All Mail':  'archive'
-          , '[Google Mail]/Drafts':    'drafts'
-          , '[Google Mail]/Important': 'important'
-          , '[Google Mail]/Sent Mail': 'sent'
-          , '[Google Mail]/Spam':      'spam'
-          , '[Google Mail]/Starred':   'flagged'
-          , '[Google Mail]/Bin':       'bin'
- }
-
-r_mapping = { val: key for key, val in mapping.items() }
-
-def transremote(foldername):
-    return mapping.get(foldername, foldername)
-
-def translocal(foldername):
-    return r_mapping.get(foldername, foldername)
-
-top = [ 'inbox'
-      , 'flagged'
-      , 'chakra'
-      , 'unimaas'
-      , 'clementine'
-      , 'youtube'
-      , 'hotmail'
-      ]
-
-bot = [ 'archive'
-      , 'drafts'
-      , 'spam'
-      , 'bin'
-      ]
-
-def sort_key(d):
-    folder = d['foldername']
-    if folder in top:
-        return top.index(folder)
-    elif folder in bot:
-        return 21 + bot.index(folder)
-    return 20
diff --git a/systemd/user/offlineimap.service b/systemd/user/offlineimap.service
deleted file mode 100644 (file)
index e254008..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-[Unit]
-Description=Start offlineimap as a daemon
-After=network.target
-
-[Service]
-ExecStart=/usr/bin/offlineimap -u quiet
-KillSignal=SIGUSR2
-Restart=always
-
-[Install]
-WantedBy=default.target