mirror of https://github.com/MISP/mail_to_misp
python3
parent
c32eabbd4a
commit
09a4c83772
|
@ -18,7 +18,7 @@ using terms from application "Mail"
|
||||||
on error error_message
|
on error error_message
|
||||||
set this_content to "NO CONTENT"
|
set this_content to "NO CONTENT"
|
||||||
end try
|
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 repeat
|
||||||
end tell
|
end tell
|
||||||
end perform mail action with messages
|
end perform mail action with messages
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
MESSAGE=`cat $1`
|
MESSAGE=`cat $1`
|
||||||
SUBJECT=`head -n 1 $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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue