.KEY foldername/A
.BRA {
.KET }

; Decrypts all crypted messages in the given folder.
; You may need to set $PGPPASS to your pass phrase.
;
; It doesn't matter if there are no encrypted messages in the folder
; or if encrypted and normal messages are mixed.

Echo "Decrypting all e-mail in folder UUMail:{foldername}"
RequestString PGPPASS "Please enter your PGP pass phrase:"
Copy "UUMail:{foldername}" "UUMail:{foldername}.bak"
PGPMore <"UUMail:{foldername}.bak" >"UUMail:{foldername}"
Echo "Done."

