#!/bin/sh # This is an amateur script to send mixminion SURB 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-surb" in your path # 2. Make an action in Sylpheed-Claws: Configuration -> Actions: # Menu name: Mixminion/Mixminion-Surb # Command line: |syl-mixminion-surb # 3. Write a new message and choose Tools -> Actions -> Mixminion ->Mixminion-Surb MIXTMP="/tmp/remail" SYLTMP="$MIXTMP/syltmp" MIXS="mixminion send" # create queue in tmpfs dir. if [ ! -d $MIXTMP/queue ] ; then mkdir $MIXTMP/queue fi # get message body from Sylpheed cat - > $SYLTMP # ask for message headers, Sylpheed can't supply HEADER=`Xdialog --stdout \ --title "Mixminion - Cleartext" --buttons-style text \ --left --ok-label Send --cancel-label Abort \ --2inputsbox "Fill in your pseudonym, recipient's e-mail address and subject" 0 0 \ "Pseudonym (nick's firstname surname):" "" \ "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 }'` SUBJ=`echo $HEADER | awk --source 'BEGIN { FS="|" }' --source '{ print $2 }'` ;; 1) shred -uz $MIXTMP/* exit 1 ;; 255) echo "Box closed." ;; esac # ask for the SURB file to use. # adjust the path to your stored SURB files. SURB=`Xdialog --stdout \ --title "Choose SURB" --buttons-style text \ --left --ok-label Send --cancel-label Abort \ --fselect ~/.mixminion/surbs 0 0` ret=$? case $ret in 0) echo "Sending first dummy message:" $MIXS -t drop echo "Sending your personal mixminion message:" $MIXS --subject="$SUBJ" --from="$FROM" -i $SYLTMP -R $SURB echo "Sending second dummy message:" $MIXS -t drop ;; 1) shred -uz $MIXTMP/* exit 1 ;; 255) echo "Box closed." ;; esac # eliminate any evidence shred -uz $SYLTMP exit 0