summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--offlineimaprc97
-rw-r--r--vim/vimrc28
2 files changed, 111 insertions, 14 deletions
diff --git a/offlineimaprc b/offlineimaprc
new file mode 100644
index 0000000..2de50e8
--- /dev/null
+++ b/offlineimaprc
@@ -0,0 +1,97 @@
+[general]
+ui = ttyui
+pythonfile = /home/urbain/.offlineimap.py
+accounts = Imperial, Main, Hotmail, Gmail
+
+[Account Imperial]
+localrepository = Imperial-Local
+remoterepository = Imperial-Remote
+
+[Repository Imperial-Local]
+type = Maildir
+localfolders = ~/.mail/Imperial
+status_backend = sqlite
+nametrans = lambda folder : {'Imperial' : 'INBOX'}.get(folder, folder)
+
+[Repository Imperial-Remote]
+type = IMAP
+remotehost = exchange.imperial.ac.uk
+remoteuser = uv113
+remotepasseval = mailpasswd("imperial")
+ssl = yes
+nametrans = lambda folder : {'INBOX' : 'Imperial'}.get(folder, folder)
+folderfilter = lambda folder: folder in ['INBOX']
+Sslcacertfile = /etc/ssl/certs/ca-certificates.crt
+
+[Account Main]
+localrepository = Main-Local
+remoterepository = Main-Remote
+
+[Repository Main-Local]
+type = Maildir
+localfolders = ~/.mail/Main
+status_backend = sqlite
+nametrans = lambda folder : {'Main' : 'INBOX', 'Sent' : '[Gmail]/Sent Mail', 'Drafts' : '[Gmail]/Drafts'}.get(folder, folder)
+
+[Repository Main-Remote]
+type = Gmail
+remoteuser = urbain.p.vaes
+remotepasseval = mailpasswd("main")
+realdelete = no
+maxconnections = 3
+nametrans = lambda folder : {'INBOX' : 'Main', '[Gmail]/Sent Mail' : 'Sent', '[Gmail]/Drafts' : 'Drafts'}.get(folder, folder)
+folderfilter = lambda folder: folder in ['INBOX', '[Gmail]/Sent Mail', '[Gmail]/Drafts']
+sslcacertfile = /etc/ssl/certs/ca-certificates.crt
+
+
+[Account Hotmail]
+localrepository = Hotmail-Local
+remoterepository = Hotmail-Remote
+
+[Repository Hotmail-Local]
+type = Maildir
+localfolders = ~/.mail/Hotmail
+status_backend = sqlite
+nametrans = lambda folder : {'Hotmail' : 'Inbox'}.get(folder, folder)
+
+[Repository Hotmail-Remote]
+type = IMAP
+ssl = yes
+remotehost = imap-mail.outlook.com
+remoteport = 993
+remoteuser = urbainvaes@hotmail.com
+remotepasseval = mailpasswd("hotmail")
+realdelete = no
+maxconnections = 3
+nametrans = lambda folder : {'Inbox' : 'Hotmail'}.get(folder, folder)
+folderfilter = lambda folder: folder in ['Inbox']
+sslcacertfile = /etc/ssl/certs/ca-certificates.crt
+
+[Account Gmail]
+localrepository = Gmail-Local
+remoterepository = Gmail-Remote
+
+[Repository Gmail-Local]
+type = Maildir
+localfolders = ~/.mail/Gmail
+status_backend = sqlite
+nametrans = lambda folder : {'Gmail' : 'INBOX'}.get(folder, folder)
+
+[Repository Gmail-Remote]
+type = Gmail
+remoteuser = urbainvaes90
+remotepasseval = mailpasswd("gmail")
+realdelete = no
+maxconnections = 3
+nametrans = lambda folder: {'INBOX' : 'Gmail'}.get(folder, folder)
+folderfilter = lambda folder: folder in ['INBOX']
+sslcacertfile = /etc/ssl/certs/ca-certificates.crt
+
+
+[mbnames]
+enabled = yes
+filename = ~/.mutt/mailboxes
+header = "mailboxes "
+peritem = "+%(accountname)s/%(foldername)s"
+sep = " "
+footer = "\n"
diff --git a/vim/vimrc b/vim/vimrc
index cd4e1f4..481eec4 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -135,20 +135,20 @@ set encoding=utf-8
set mouse=a
"" Colorscheme
-function! UpdateColorscheme()
- try | colorscheme solarized | catch | endtry
- if strftime("%H") >= 8 && strftime("%H") < 21
- set background=light
- else
- set background=dark
- endif
-
- hi Cursor guifg=white guibg=blue
- hi iCursor guifg=black guibg=green
- hi! link conceal normal
- hi! link folded comment
-endfunction
-autocmd! BufNewFile,BufRead,BufWrite * :call UpdateColorscheme()
+try | colorscheme solarized | catch | endtry
+" function! UpdateColorscheme()
+" if strftime("%H") >= 8 && strftime("%H") < 21
+" set background=light
+" else
+" set background=dark
+" endif
+
+" hi Cursor guifg=white guibg=blue
+" hi iCursor guifg=black guibg=green
+" hi! link conceal normal
+" hi! link folded comment
+" endfunction
+" autocmd! BufNewFile,BufRead,BufWrite * :call UpdateColorscheme()
"" Custom mappings