#!/bin/bash # MIXMINMUA # Extra simple Mail User Agent (MUA) for Mixminion. # # Probs/questions? alster@indymediaD0Torg # set MIXMINMUAVERSION = "0.01" echo "M I X M I N M U A $MIXMINMUAVERSION" echo "" echo "" echo "*** COMPOSING MESSAGE ***" echo "" echo "COMPOSE EMAIL HEADER" echo "Please enter information for the email header." read -p " FROM: " ADDR_FROM read -p " TO: " ADDR_TO read -p " SUBJECT: " SUBJECT read -p " IN-REPLY-TO: " IN_REPLY_TO read -p " REFERENCES: " REFERENCES echo "" echo "COMPOSE EMAIL BODY" read -p "Please press ENTER to compose the message body (using your default system editor)." echo "" echo "Running editor..." editor /tmp/mixminmua.txt echo "" echo "Message composition complete." echo "" echo "" echo "*** MESSAGE DELIVERY ***" echo "" echo "UPDATE" echo "Please stand by while the server list is updating..." mixminion update-servers echo "" echo "QUEUE MESSAGE" read -p "Please press ENTER to initiate delivery of your message." echo "" mixminion send -i /tmp/mixminmua.txt -t "$ADDR_TO" --subject="$SUBJECT" --from="$ADDR_FROM" --in-reply-to="$IN_REPLY_TO" --references="$REFERENCES" echo "" echo "MAINTENANCE" echo "Please stand by while removing temporary files." rm /tmp/mixminmua.txt echo "" echo "" echo "*** COMPLETED ***" echo "Thank you for using Mixmin MUA." read -p "Please press any key to exit."