#!/bin/bash # An attempt to make viewing PGP/MIME messages in Pine not so difficult. # Basically, this script must be run as a pipe from the Pine message viewer. # (Make sure you tell Pine to give it the raw text rather that what's shown!) # It doesn't actually output the message text, but rather uses # pgp-mime-handler.pl (many thanks to David Guembel!) to decipher the message # (and all its parts) and verify the signature, outputting it to a simple mbox # file that Pine can read. # Unfortunately this is not the most secure thing, as it actually writes # unencrypted mail to the disk, but Pine is too stupid to accept a filter that # actually modifies the raw message (it displays any output from a filter as # message text, rather than interpreting all the MIME properties properly). # So, be sure at least to delete the message or the mailbox when you're # finished reading it. If you're really paranoid, overwrite it with zeros # or random data first. :) echo "From john@supernova `date`" > $HOME/mail/temp pgp-mime-handler.pl <&0 >> $HOME/mail/temp echo "Now look in the 'temp' mailbox for your message."