pull/4/head
Sascha Rommelfangen 2017-05-24 15:49:49 +02:00
parent c32eabbd4a
commit 09a4c83772
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ using terms from application "Mail"
on error error_message
set this_content to "NO CONTENT"
end try
do shell script "/opt/local/bin/python2.7 /Users/rommelfs/Scripts/mail_to_misp/mail_to_misp.py " & quoted form of this_content & " " & quoted form of this_subject
do shell script "/Library/Frameworks/Python.framework/Versions/3.4/bin/python3 /Users/rommelfs/Scripts/mail_to_misp/mail_to_misp.py " & quoted form of this_content & " " & quoted form of this_subject
end repeat
end tell
end perform mail action with messages

View File

@ -1,5 +1,5 @@
#!/bin/bash
MESSAGE=`cat $1`
SUBJECT=`head -n 1 $1`
/opt/local/bin/python2.7 /Users/rommelfs/Scripts/mail_to_misp/mail_to_misp.py "$MESSAGE" "$SUBJECT"
/Library/Frameworks/Python.framework/Versions/3.4/bin/python3 /Users/rommelfs/Scripts/mail_to_misp/mail_to_misp.py "$MESSAGE" "$SUBJECT"