A bunch of notmuch config, adding jrnl config, adding some vim plugins.
parent
14719d067a
commit
3c69b08ce5
@ -0,0 +1,16 @@
|
||||
{
|
||||
"default_hour": 9,
|
||||
"linewrap": 79,
|
||||
"encrypt": false,
|
||||
"default_minute": 0,
|
||||
"tagsymbols": "@",
|
||||
"editor": "vim -c Goyo -c startinsert",
|
||||
"timeformat": "%Y-%m-%d %H:%M",
|
||||
"highlight": true,
|
||||
"journals": {
|
||||
"default": {
|
||||
"journal": "/Users/dustinswan/Dropbox/journal.txt",
|
||||
"encrypt": true
|
||||
}
|
||||
}
|
||||
}
|
@ -1,10 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
# For mail my other MUAs has moved
|
||||
# IOCOM
|
||||
notmuch tag +iocom +inbox -- tag:new AND folder:iocom/INBOX
|
||||
notmuch tag +iocom +netmon -inbox -spam -- tag:new AND folder:iocom/INBOX.netmon
|
||||
notmuch tag +iocom +builder -spam -- tag:new AND folder:iocom/INBOX.builder
|
||||
notmuch tag +iocom +info -- tag:new AND folder:iocom/INBOX.info
|
||||
notmuch tag +iocom +bugzilla -- tag:new AND from:bugzilla-daemon@bugzilla.insors.net
|
||||
notmuch tag +iocom +draft -- tag:new AND folder:iocom/INBOX.Drafts
|
||||
notmuch tag +iocom +sent -- tag:new AND folder:iocom/INBOX.Sent
|
||||
notmuch tag +iocom +spam -- tag:new AND folder:iocom/INBOX.Spam
|
||||
notmuch tag +iocom +trash -- tag:new AND folder:iocom/INBOX.Trash
|
||||
notmuch tag +iocom -inbox -- folder:iocom/INBOX.Archive AND tag:inbox
|
||||
|
||||
# Look for archived mail that have inbox. Remove inbox.
|
||||
notmuch tag -inbox -- folder:INBOX.Archive tag:inbox
|
||||
notmuch tag -inbox -- tag:inbox AND tag:gmail NOT folder:gmail/INBOX
|
||||
# Gmail
|
||||
notmuch tag +gmail +inbox -- tag:new AND folder:gmail/INBOX
|
||||
notmuch tag +gmail +draft -- tag:new AND folder:gmail/drafts
|
||||
notmuch tag +gmail +sent -- tag:new AND folder:gmail/sent
|
||||
notmuch tag +gmail +spam -- tag:new AND folder:gmail/spam
|
||||
notmuch tag +gmail +trash -- tag:new AND folder:gmail/trash
|
||||
notmuch tag +gmail -inbox -- tag:inbox AND tag:gmail NOT folder:gmail/INBOX
|
||||
# TODO gmail tags
|
||||
|
||||
# Initial tagging for new mail
|
||||
afew --tag --new
|
||||
|
@ -1,18 +1,29 @@
|
||||
import subprocess
|
||||
#import subprocess
|
||||
import os
|
||||
import gnupg
|
||||
|
||||
home = os.environ['HOME']
|
||||
gpg = gnupg.GPG(gnupghome=home+"/.gnupg", use_agent=True)
|
||||
|
||||
def gmail_password():
|
||||
path = os.environ['HOME'] + "/.gmail-password.gpg"
|
||||
args = ["gpg", "-d", path]
|
||||
try:
|
||||
return subprocess.check_output(args).rstrip()
|
||||
except subprocess.CalledProcessError:
|
||||
return "".strip()
|
||||
#args = ["gpg", "-d", path]
|
||||
f = open(path, 'rb')
|
||||
decrypted = gpg.decrypt_file(f)
|
||||
return decrypted.data.strip()
|
||||
|
||||
#try:
|
||||
#return subprocess.check_output(args).rstrip()
|
||||
#except subprocess.CalledProcessError:
|
||||
#return "".strip()
|
||||
|
||||
def iocom_password():
|
||||
path = os.environ['HOME'] + "/.iocom-password.gpg"
|
||||
args = ["gpg", "-d", path]
|
||||
try:
|
||||
return subprocess.check_output(args).rstrip()
|
||||
except subprocess.CalledProcessError:
|
||||
return "".strip()
|
||||
f = open(path, 'rb')
|
||||
decrypted = gpg.decrypt_file(f)
|
||||
return decrypted.data.strip()
|
||||
#args = ["gpg", "-d", path]
|
||||
#try:
|
||||
#return subprocess.check_output(args).rstrip()
|
||||
#except subprocess.CalledProcessError:
|
||||
#return "".strip()
|
||||
|
Loading…
Reference in New Issue