#!/bin/sh # This is an amateur script to send cleartext mixminion messages with Sylpheed-Claws # from Kai Raven / OpenPGP: D6E995A0. # Maybe somebody with skills in scripting or graphical GUI design can # make a better one and/or a nice client. # License: GPL # # You need: # Sylpheed-Claws # http://claws.sylpheed.org/ # # Mixminion # http://www.mixminion.net/ # # Xdialog # http://xdialog.dyns.net/ # # a temp dir with tmpfs like this one (from fstab) or simply use /tmp # none /tmp/remail tmpfs defaults,size=1m 0 0 # Symlink: # 1. mkdir /tmp/remailer/queue # 2. ln -s /tmp/remail/queue ~/.mixminion/queue # # Usage: # 1. Save the script as "syl-mixminion-cleartext" in your path # 2. Make an action in Sylpheed-Claws: Configuration -> Actions: # Menu name: Mixminion/Mixminion # Command line: |syl-mixminion-cleartext # 3. Write a new message and choose Tools -> Actions -> Mixminion ->Mixminion-Cleartext MIXTMP="/tmp/remail" SYLTMP="$MIXTMP/syltmp" MIXS="mixminion send -t" # ask for message headers, Sylpheed can't supply HEADER=`Xdialog --stdout \ --title "Mixminion - Cleartext" --buttons-style text \ --left --ok-label Send --cancel-label Abort \ --3inputsbox "Fill in your pseudonym, recipient's e-mail address and subject" 0 0 \ "Pseudonym (nick's firstname surname):" "" \ "Recipient's e-mail address:" "" \ "Subject:" "" \ --no-close --no-cancel --no-buttons --infobox "Done" 0 0 1` ret=$? case $ret in 0) FROM=`echo $HEADER | awk --source 'BEGIN { FS="|" }' --source '{ print $1 }'` TO=`echo $HEADER | awk --source 'BEGIN { FS="|" }' --source '{ print $2 }'` SUBJ=`echo $HEADER | awk --source 'BEGIN { FS="|" }' --source '{ print $3 }'` ;; 1) shred -uz $MIXTMP/* exit 1 ;; 255) echo "Box closed." ;; esac # get message body from Sylpheed cat - > $SYLTMP # create queue in tmpfs dir. if [ ! -d $MIXTMP/queue ] ; then mkdir $MIXTMP/queue fi # send mixminion message together with two dummy messages echo "Sending first dummy message:" $MIXS drop echo "Sending your personal mixminion message:" $MIXS $TO --subject="$SUBJ" --from="$FROM" -i $SYLTMP echo "Sending second dummy message:" $MIXS drop # eliminate any evidence shred -uz $SYLTMP exit 0