#!/bin/sh # This is an amateur script to decode 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-decode" in your path # 2. Make an action in Sylpheed-Claws: Configuration -> Actions: # Menu name: Mixminion/Mixminion-Decode-Surb # Command line: |syl-mixminion-decode # 3. Choose Tools -> Actions -> Mixminion ->Mixminion-Decode-Surb MIXTMP="/tmp/remail" SYLTMP="$MIXTMP/syltmp" # create queue in tmpfs dir. if [ ! -d $MIXTMP/queue ] ; then mkdir $MIXTMP/queue fi cat - > $SYLTMP PAS=`Xdialog --stdout \ --title "Mixminion - Decode" --buttons-style text \ --left --password --inputbox "Fill in your SURB Passphrase" 0 0` ret=$? case $ret in 0) MSG=`echo $PAS | mixminion decode --passphrase-fd=0 -i $SYLTMP` ;; 1) shred -uz $SYLTMP exit 1 ;; 255) echo "Box closed." ;; esac shred -uz $SYLTMP echo $MSG