kernel patch submission script using msmtp/gmail
#!/bin/sh
# Submits a single kernel patch using GMail SMTP
# During tests, this script emails itself (nothing secret in here)
smtpemailfrom="[email protected]"
smtpdomain=sidebranch.com
smtpserver=smtp.gmail.com
[email protected]
recipients="[email protected]"
patchemail=/tmp/patch.eml
echo -n "Subject: " > $patchemail
echo "[test - ignore] kernel patch submission script using msmtp/gmail" >> $patchemail echo "" >> $patchemail
cat $0 >> $patchemail
msmtp --host=$smtpserver --auth=on --tls=on --port=587 \
--tls-certcheck=off -f $smtpemailfrom --user $smtplogin \
--maildomain $smtpdomain \
$recipients < $patchemail