#!/bin/sh # Submits a single kernel patch using GMail SMTP # During tests, this script emails itself (nothing secret in here) smtpemailfrom="leon.woestenberg@xxxxxxxxx" smtpdomain=sidebranch.com smtpserver=smtp.gmail.com smtplogin=leon.woestenberg@xxxxxxxxx recipients="linux-rt-users@xxxxxxxxxxxxxxx" patchemail=/tmp/patch.eml echo -n "Subject: " > $patchemail echo "[test - ignore] kernel patch submission script using msmtp/gmail" >> $patchemail echo "To: $recipients" >> $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 -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html