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
apt-get update | |
apt-get install -y libcurl3 opensc | |
curl https://developers.yubico.com/YubiHSM2/Releases/yubihsm2-sdk-1.0.1-ubuntu1604-amd64.tar.gz | tar zx -C ./ | |
dpkg -i yubihsm2-sdk/libyubihsm1_1.0.1-1_amd64.deb | |
dpkg -i yubihsm2-sdk/libyubihsm-dev_1.0.1-1_amd64.deb | |
dpkg -i yubihsm2-sdk/yubihsm-connector_1.0.1-1_amd64.deb | |
dpkg -i yubihsm2-sdk/yubihsm-shell_1.0.1-1_amd64.deb | |
dpkg -i yubihsm2-sdk/yhwrap_1.0.1-1_amd64.deb | |
dpkg -i yubihsm2-sdk/yubihsm-pkcs11_1.0.1-1_amd64.deb |
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
var labels = PropertiesService.getScriptProperties().getProperty('GMAIL_ARCHIVE_LABELS'); | |
function mail_to_archive() { | |
var labellist = labels.split(','); | |
labellist.forEach( | |
function to_archive(value) { | |
if (value) { | |
var label = GmailApp.getUserLabelByName(value); | |
if (label == null) { | |
GmailApp.createLabel(value); |
NewerOlder