dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 2f59d0ae176a234d0d5854ffca09da4fbbc652c4
parent 648c0981146fd010ddab2b277ad2720102e9d741
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri, 11 May 2018 13:50:00 -0400

Put github notifications in separate folder

Diffstat:
Mlinks/.imapfilter/adamsgaard.lua | 17++++-------------
Mlinks/.imapfilter/riseup.lua | 12------------
Mlinks/.mutt/muttrc | 1+
3 files changed, 5 insertions(+), 25 deletions(-)

diff --git a/links/.imapfilter/adamsgaard.lua b/links/.imapfilter/adamsgaard.lua @@ -1,18 +1,5 @@ -- see `man imapfilter_config` for info -------------- --- Options -- -------------- -options.timeout = 120 -options.subscribe = true ---options.namespace = false ---options.create = true - --- for debugging purposes -options.info = true - - - -- function to strip trailing newlines piped from ~/.mutt/offlineimap.py function trim(s) return (s:gsub("^%s*(.-)%s*$", "%1")) @@ -179,3 +166,7 @@ results:delete_messages() results = account.INBOX:contain_from('scholaralerts-noreply@google.com') results:move_messages(account['academic-alerts']) +-- Github -- +results = account.INBOX:contain_from('notifications@github.com') +results:move_messages(account['github']) + diff --git a/links/.imapfilter/riseup.lua b/links/.imapfilter/riseup.lua @@ -1,17 +1,5 @@ -- see `man imapfilter_config` for info -------------- --- Options -- -------------- -options.timeout = 120 -options.subscribe = true ---options.namespace = false ---options.create = true - --- for debugging purposes -options.info = true - - -- function to strip trailing newlines piped from ~/.mutt/offlineimap.py function trim(s) diff --git a/links/.mutt/muttrc b/links/.mutt/muttrc @@ -170,6 +170,7 @@ macro index \ a "<change-folder>=adamsgaard/academic-alerts/<enter>" "Go to adam macro index \ s "<change-folder>=adamsgaard/Spam/<enter>" "Go to adamsgaard/Spam" macro index \ ! "<change-folder>=adamsgaard/Sent/<enter>" "Go to adamsgaard/Sent" macro index \ g "<change-folder>=adamsgaard/geodatahub/<enter>" "Go to adamsgaard/GeoDataHub" +macro index \ G "<change-folder>=adamsgaard/github/<enter>" "Go to adamsgaard/github" macro index \ 5 "<change-folder>=geomail/INBOX/<enter>" "Go to Geomail inbox" macro index \ % "<change-folder>=geomail/Sent/<enter>" "Go to Geomail sent" macro index \ 6 "<change-folder>=ucsd/INBOX/<enter>" "Go to UCSD inbox"