#!/bin/sh # This is an amateur script to decrypt mixminion messages with # PGP/inline encrypted bodies for 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-decodegpg" in your path # 2. Make an action in Sylpheed-Claws: Configuration -> Actions: # Menu name: Mixminion/Mixminion-Decode-GPG # Command line: |syl-mixminion-decodegpg # 3. Choose Tools -> Actions -> Mixminion ->Mixminion-Decode-GPG MIXTMP="/tmp/remail" SYLTMP="$MIXTMP/syltmp" # create queue in tmpfs dir. if [ ! -d $MIXTMP/queue ] ; then mkdir $MIXTMP/queue fi # first decode to remove the mixminion quotation mixminion decode -i - > $SYLTMP # decrypt the encrypted GnuPG body with your passphrase PAS=`Xdialog --stdout \ --title "Mixminion - Decrypt GnuPG" --buttons-style text \ --left --password --inputbox "Fill in your GnuPG Passphrase" 0 0` ret=$? case $ret in 0) MSG=`echo $PAS | gpg --no-tty --command-fd 0 --passphrase-fd 0 --decrypt $SYLTMP` ;; 1) shred -uz $SYLTMP exit 1 ;; 255) echo "Box closed." ;; esac shred -uz $SYLTMP echo $MSG