This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ $# -eq 0 ]] ; then | |
echo 'no input query' >&2 | |
exit 1 | |
fi | |
/usr/local/bin/notmuch tag -unread $* | |
/usr/local/bin/notmuch search --output=files $* | xargs -I % sh -c 'mv % /Volumes/emails/archive/offline/archive.2018.02/cur/' | |
/usr/local/bin/notmuch new |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"commands": ["delete"], | |
"delete": { | |
"name": "Move deleted emails to Trash", | |
"action": "/path-to-the-trash-script/trash.sh", | |
"classList": [], | |
"alert": true, | |
"warn": "Are you sure?" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
/usr/local/bin/notmuch search --exclude=false --output=files tag:deleted | grep -v "offline/trash" | xargs -I % sh -c "mv % /Volumes/emails/archive/offline/trash/cur/" | |
/usr/local/bin/notmuch search --exclude=false --output=files tag:spam | grep -v "offline/spam" | xargs -I % sh -c "mv % /Volumes/emails/archive/offline/spam/cur/" | |
/usr/local/bin/notmuch tag -deleted --exclude=false path:offline/trash/** | |
/usr/local/bin/notmuch tag -spam --exclude=false path:offline/spam/** | |
/usr/local/bin/notmuch new |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[data-tag=replied] { | |
background-color: #ebdbde!important; | |
color: #662e37 !important; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[data-tags=red] { | |
background-color: #fffafb !important; | |
color: #942335 !important; | |
font-weight: normal !important; | |
} | |
[data-tags=red] [data-tag] { | |
border: solid 1px #e6cbcb | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"reply": { | |
"accounts": [], | |
"action": "path-to/reply.sh \"[from]\" \"[to]\" \"[body]\" \"[subject]\" \"[in-reply-to]\" \"[references]\"" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ $# -eq 0 ]] ; then | |
echo 'no input query' >&2 | |
exit 1 | |
fi | |
email=$(echo $1 | grep -i -o '[A-Z0-9._%+-]\+@[A-Z0-9.-]\+\.[A-Z]\{2,4\}') | |
if [[ $email == my_email_address ]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../paper-button/paper-button.html"> | |
<link rel="import" href="../paper-radio-group/paper-radio-group.html"> | |
<link rel="import" href="../paper-radio-button/paper-radio-button.html"> | |
<link rel="import" href="../ace-element/ace-element.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="../notification-elements/notification-alert.html" rel="import"> | |
<link href="../yt-video/yt-search-video.html" rel="import"> | |
<link href="../core-icon-button/core-icon-button.html" rel="import"> | |
<link href="../topeka-elements/category-images.html" rel="import"> | |
<link href="../core-icon/core-icon.html" rel="import"> | |
<link href="../core-icons/core-icons.html" rel="import"> | |
<link href="../core-icons/av-icons.html" rel="import"> | |
<link href="../paper-fab/paper-fab.html" rel="import"> | |
<link href="../ace-element/ace-element.html" rel="import"> |