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
|
#!/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.
|
# Gmail
|
||||||
notmuch tag -inbox -- folder:INBOX.Archive tag:inbox
|
notmuch tag +gmail +inbox -- tag:new AND folder:gmail/INBOX
|
||||||
notmuch tag -inbox -- tag:inbox AND tag:gmail NOT 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
|
afew --tag --new
|
||||||
|
@ -1,18 +1,29 @@
|
|||||||
import subprocess
|
#import subprocess
|
||||||
import os
|
import os
|
||||||
|
import gnupg
|
||||||
|
|
||||||
|
home = os.environ['HOME']
|
||||||
|
gpg = gnupg.GPG(gnupghome=home+"/.gnupg", use_agent=True)
|
||||||
|
|
||||||
def gmail_password():
|
def gmail_password():
|
||||||
path = os.environ['HOME'] + "/.gmail-password.gpg"
|
path = os.environ['HOME'] + "/.gmail-password.gpg"
|
||||||
args = ["gpg", "-d", path]
|
#args = ["gpg", "-d", path]
|
||||||
try:
|
f = open(path, 'rb')
|
||||||
return subprocess.check_output(args).rstrip()
|
decrypted = gpg.decrypt_file(f)
|
||||||
except subprocess.CalledProcessError:
|
return decrypted.data.strip()
|
||||||
return "".strip()
|
|
||||||
|
#try:
|
||||||
|
#return subprocess.check_output(args).rstrip()
|
||||||
|
#except subprocess.CalledProcessError:
|
||||||
|
#return "".strip()
|
||||||
|
|
||||||
def iocom_password():
|
def iocom_password():
|
||||||
path = os.environ['HOME'] + "/.iocom-password.gpg"
|
path = os.environ['HOME'] + "/.iocom-password.gpg"
|
||||||
args = ["gpg", "-d", path]
|
f = open(path, 'rb')
|
||||||
try:
|
decrypted = gpg.decrypt_file(f)
|
||||||
return subprocess.check_output(args).rstrip()
|
return decrypted.data.strip()
|
||||||
except subprocess.CalledProcessError:
|
#args = ["gpg", "-d", path]
|
||||||
return "".strip()
|
#try:
|
||||||
|
#return subprocess.check_output(args).rstrip()
|
||||||
|
#except subprocess.CalledProcessError:
|
||||||
|
#return "".strip()
|
||||||
|
Loading…
Reference in New Issue