Skip to content

Commit

Permalink
TODO: update your offlineimap and notmuch bindings
Browse files Browse the repository at this point in the history
Otherwise it won't work with gmail. See
https://github.com/OfflineIMAP/offlineimap/blob/master/offlineimap.conf#L764
for how to configure properly.

The related issue is here:
OfflineIMAP/offlineimap#228

The easy way out is to remove this check:
https://www.google.com/settings/security/lesssecureapps

Also I have setup notmuch and offlineimap in a more XDG compatible way.
  • Loading branch information
teto committed Feb 5, 2016
1 parent 71b52ff commit ca46ab7
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 15 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ pip:
wget https://bootstrap.pypa.io/get-pip.py /tmp/
python3.5 get-pip.py --user

keyring:
echo "Setup keyrings"
#keyring set

cache:
#mkdir -p $(shell echo "${XDG_CACHE_HOME:-$HOME/.cache}/less")
Expand Down
32 changes: 19 additions & 13 deletions config/i3/myStatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
# pkill -SIGUSR1 -f "python /home/user/.config/i3/pystatus.py"

import logging
# from i3pystatus.mail import notmuchmail
from i3pystatus.mail import notmuchmail
from i3pystatus.mail import maildir
#import keyring.backends.netrc as backend
from i3pystatus import Status
from i3pystatus.updates import aptget
Expand Down Expand Up @@ -149,18 +150,23 @@
)

# # print("alsa")
# res = status.register(
# "mail",
# backends=[
# # notmuchmail.Notmuch(account="lip6", query="tag:inbox and tag:unread"),
# notmuchmail.Notmuch(account="gmail", query="tag:inbox and tag:unread"),
# ],
# hide_if_null=False,
# interval=60,
# # on_clicks={'left', "urxvtc -e mutt"},
# on_leftclick=['/usr/bin/urxvtc', '-e', 'mutt'],
# log_level=logging.DEBUG
# )
res = status.register(
"mail",
backends=[
# my notmuch config is in a non standard place => I have to setup db_path
notmuchmail.Notmuch(account="lip6",
query="tag:inbox and tag:unread",
db_path="/home/teto/Maildir",
),
# # notmuchmail.Notmuch(account="gmail", query="tag:inbox and tag:unread"),
# maildir.MaildirMail(directory="/home/teto/Maildir/gmail/INBOX"),
],
hide_if_null=False,
interval=3600,
# on_clicks={'left', "urxvtc -e mutt"},
on_leftclick='urxvtc -e mutt',
log_level=logging.DEBUG
)

# res = status.register("github",
# username="teto",
Expand Down
File renamed without changes.
9 changes: 7 additions & 2 deletions config/nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,7 @@ nmap <leader>è <Plug>AirlineSelectTab7

"}}}

autocmd CompleteDone * pclose " close the popup on python completion

" {{{ Clever f
Expand Down Expand Up @@ -811,9 +812,13 @@ let g:peekaboo_delay = 750
let g:peekaboo_compact = 1
" }}}

" vimplug bindings {{{
nnoremap <leader>pi :PlugInstall<CR>
nnoremap <leader>pU :PlugUpgrade<CR>
nnoremap <leader>pu :PlugUpdate<CR>
" }}}


" {{{
" autosave {{{
let g:auto_save_in_insert_mode = 0
let g:auto_save_events = ['CursorHold', 'FocusLost']
" }}}
Expand Down

0 comments on commit ca46ab7

Please sign in to comment.