URI: 
       Add prelim scripts for decrypting mailbox - postreich - Unnamed repository; edit this file 'description' to name the repository.
   DIR Log
   DIR Files
   DIR Refs
   DIR README
       ---
   DIR commit c09ca83bc7540c3e7ff1bdd1cb70f18434e9f642
   DIR parent 08b37b9c8f797be4ceb7ad8b0fcbe3f59e84fad2
  HTML Author: Scarlett McAllister <no+reply@roygbyte.com>
       Date:   Sat, 20 Jan 2024 18:58:08 -0400
       
       Add prelim scripts for decrypting mailbox
       
       Diffstat:
         M main.sh                             |       9 ++++++++-
       
       1 file changed, 8 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/main.sh b/main.sh
       @@ -8,6 +8,7 @@
        # before generating the key.
        
        create_mailbox_url="gopher://localhost/7/postoffice/mailbox/create"
       +get_mailbox_url="gopher://localhost/0/postoffice/mailbox/get"
        
        cupid_encryption() {
            #    printf "%s" $1 | \
       @@ -43,5 +44,11 @@ create_mailbox() {
            curl "$create_mailbox_url/$handle?$pub_key_contents"
        }
        
       -create_mailbox
       +open_mailbox() {
       +    result=$( curl "$get_mailbox_url/$1" -s \
       +                  | awk -F ',' '{ system("printf '%s' " $2 "| base64 -d | openssl pkeyutl -decrypt -inkey br_cupid.pem"); print "" }' )
       +    echo "$result"
       +}
       +
       +open_mailbox "$1"