Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jmdelafe's full-sized avatar

JM jmdelafe

  • 03:48 (UTC -04:00)
View GitHub Profile
@jmdelafe
jmdelafe / parse-yaml.go
Last active September 30, 2022 15:11
parsing-yaml-go
package main
import (
"fmt"
"strings"
"gopkg.in/yaml.v2"
)
var data = `
@jmdelafe
jmdelafe / mail-sort-outlook.scpt
Created April 14, 2022 00:39
Script to sort mails in my Exchange account.
if application "Microsoft Outlook" is running then
tell application "Microsoft Outlook"
set caseMessages to messages in mail folder "Cases"
repeat with theMessage in caseMessages
set msgSubject to subject of theMessage as Unicode text
if (msgSubject contains "Support Survey") then
set theContent to content of theMessage
@jmdelafe
jmdelafe / mail-sorter-applemail.scpt
Last active April 14, 2022 00:37
Script to sort mails in my Exchange account (imported in Apple Mail)
if application "Mail" is running then
tell application "Mail"
set casesFolder to mailbox "Cases" of mailbox "Inbox" of account "Exchange"
set caseMessages to (every message of (casesFolder))
set createFolders to {}