[interchange-cvs] interchange - heins modified eg/gpg_display
interchange-core@icdevgroup.org
interchange-core@icdevgroup.org
Sat Oct 26 02:42:01 2002
User: heins
Date: 2002-10-26 06:41:50 GMT
Added: eg gpg_display
Log:
* Add cheesy little mailcap helper for decrypting credit cards via the web
Revision Changes Path
1.1 interchange/eg/gpg_display
rev 1.1, prev_rev 1.0
Index: gpg_display
===================================================================
#!/bin/sh
### Decrypt X mailcap -- use
###
### To enable, put this file in /usr/local/bin/gpg_display
### Then in $HOME/.mailcap put:
###
### application/pgp-encrypted;/usr/local/bin/gpg_display
###
### To add from Mozilla instead:
###
### Edit->Preferences->Helper Applications->New type
###
### Description PGP-encrypted content
### File Extension pgp,gpg
### MIME type application/pgp-encrypted
### Application to use /usr/local/bin/gpg_display
TERMCMD="xterm"
GPGCMD="gpg"
if test -n "$2"
then
$GPGCMD -d -o - $1 | less -e -c -Ps"Press any key to continue"
else
$TERMCMD -e $0 $1 1
fi