This file contains 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
package main | |
import ( | |
"fmt" | |
"strings" | |
"gopkg.in/yaml.v2" | |
) | |
var data = ` |
This file contains 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
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 |
This file contains 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
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 {} | |