Browse Source

python3

pull/4/head
Sascha Rommelfangen 4 years ago
parent
commit
09a4c83772
  1. 2
      MUA/Apple/Mail/MISP Mail Rule Action.txt
  2. 2
      MUA/Mozilla/Thunderbird/thunderbird_wrapper.sh

2
MUA/Apple/Mail/MISP Mail Rule Action.txt

@ -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

2
MUA/Mozilla/Thunderbird/thunderbird_wrapper.sh

@ -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"

Loading…
Cancel
Save