Skip to content

Instantly share code, notes, and snippets.

@inbasic
inbasic / designer.html
Last active August 29, 2015 14:12
designer
<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">
@inbasic
inbasic / designer.html
Last active August 29, 2015 14:12
designer
<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 {
#!/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 ]]
"reply": {
"accounts": [],
"action": "path-to/reply.sh \"[from]\" \"[to]\" \"[body]\" \"[subject]\" \"[in-reply-to]\" \"[references]\""
}
[data-tags=red] {
background-color: #fffafb !important;
color: #942335 !important;
font-weight: normal !important;
}
[data-tags=red] [data-tag] {
border: solid 1px #e6cbcb
}
[data-tag=replied] {
background-color: #ebdbde!important;
color: #662e37 !important;
}
#!/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
"commands": ["delete"],
"delete": {
"name": "Move deleted emails to Trash",
"action": "/path-to-the-trash-script/trash.sh",
"classList": [],
"alert": true,
"warn": "Are you sure?"
}
#!/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